From 5b6e9ffc6e34b0cb8e1a2f5a324a7650435b9909 Mon Sep 17 00:00:00 2001 From: nik Date: Mon, 10 Apr 2017 14:25:57 +0300 Subject: [PATCH] build scripts: use new standard options, output and temp directory in Ant script for IDEA Community Previously output directory was set to '$home/out' by default, but this directory is used as the project compiler output in idea-community project, so calling dist.gant from idea-community project cleared the compiled classes. --- build.xml | 48 ++++++++++++++--------------------------- build/scripts/dist.gant | 13 +---------- 2 files changed, 17 insertions(+), 44 deletions(-) diff --git a/build.xml b/build.xml index 27e0335454e0..40671823724e 100644 --- a/build.xml +++ b/build.xml @@ -1,33 +1,16 @@ - + - - - - - - - - - - - - - - - - - - - - @@ -35,6 +18,10 @@ + + + + @@ -43,13 +30,9 @@ - - - - - + @@ -67,6 +50,9 @@ + + + @@ -74,6 +60,4 @@ - - diff --git a/build/scripts/dist.gant b/build/scripts/dist.gant index 499e152e2a96..adb7c6850840 100644 --- a/build/scripts/dist.gant +++ b/build/scripts/dist.gant @@ -21,21 +21,12 @@ import static org.jetbrains.jps.idea.IdeaProjectLoader.guessHome includeTargets << new File("${guessHome(this)}/build/scripts/utils.gant") -requireProperty("out", "$home/out") - -// "out" has to be canonical, otherwise the ant build fails -// with mysterious errors -String out = new File(out).getCanonicalPath() - target(compile: "Compile project") { - def options = new BuildOptions() - options.outputRootPath = out - new IdeaCommunityBuilder(home, binding, options).compileModules() + new IdeaCommunityBuilder(home, binding).compileModules() } target('default': 'The default target') { def options = new BuildOptions() - options.outputRootPath = out options.buildNumber = null //we cannot provide consistent build number for IDEA Community if it's built separately so use *.SNAPSHOT number to avoid confusion new IdeaCommunityBuilder(home, binding, options).buildDistributions() } @@ -43,14 +34,12 @@ target('default': 'The default target') { //todo[nik] do we really need this target? update.xml calls layout.gant directly target('build-dist-jars' : 'Target to build jars from locally compiled classes') { def options = new BuildOptions() - options.outputRootPath = out options.useCompiledClassesFromProjectOutput = true new IdeaCommunityBuilder(home, binding, options).buildDistJars() } target('build-intellij-core' : 'Build intellij-core.zip') { def options = new BuildOptions() - options.outputRootPath = out new IdeaCommunityBuilder(home, binding, options).buildIntelliJCore() }