ZZZ: build speedups
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 10 Mar 2010 08:36:08 +0000 (10 09:36 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Sun, 14 Mar 2010 00:20:22 +0000 (14 01:20 +0100)
build/scripts/dist.gant
rungant.sh

index c86653a..ab884ea 100644 (file)
@@ -39,7 +39,7 @@ target(compile: "Compile project") {
   loadProject()
 
   project.stage("Cleaning up sandbox folder")
-  ant.delete(dir: paths.sandbox)
+//  ant.delete(dir: paths.sandbox)
 
   [paths.sandbox, paths.distWin, paths.distAll, paths.distUnix, paths.distMac, paths.artifacts].each {
     ant.mkdir(dir: it)
@@ -51,7 +51,7 @@ target(compile: "Compile project") {
 
   project["javac"] = "$jdk/bin/javac"
   project.targetFolder = "$out/classes"
-  project.clean()
+//  project.clean()
   project.makeProduction()
 }
 
@@ -91,9 +91,9 @@ public def layoutAll(Map args, String home, String out) {
 
   ant.copy(file: "$home/LICENSE.txt", todir: "$paths.distAll", preservelastmodified: "true")
 
-  layoutMac(args, home, paths)
+//  layoutMac(args, home, paths)
   layoutLinux(args, home, paths)
-  layoutWin(args, home, paths)
+//  layoutWin(args, home, paths)
 }
 
 boolean isEap() {
dissimilarity index 100%
index 763da77..0bbc5c0 100644 (file)
@@ -1,5 +1,9 @@
-#java '-Xms64m' '-Xmx512m' '-Dgant.script=/home/lkundrak/src/idea/build/scripts/dist.gant' '-classpath' '/usr/share/java/gant.jar:/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/groovy.jar:/usr/share/java/objectweb-asm/asm.jar:/usr/share/java/antlr.jar:/usr/share/java/commons-cli.jar:/home/lkundrak/src/idea/build/lib/gant/lib/jps.jar' 'org.apache.tools.ant.Main' '-f' '/home/lkundrak/src/idea/build/gant.xml'
-
-#CLASSPATH=$PWD/build/lib/gant/lib/jps.jar gant -f /home/lkundrak/src/idea/build/scripts/dist.gant "$@" compile
-#CLASSPATH=/home/lkundrak/src/JPS/build/deploy/jps.jar gant -d -v -f /home/lkundrak/src/idea/build/scripts/dist.gant "$@" compile
-CLASSPATH=/usr/share/java/jgoodies-forms.jar:/usr/share/java/jdom.jar:/usr/share/java/objectweb-asm/asm-commons.jar:/usr/share/java/idea/javac2.jar:/home/lkundrak/src/JPS/build/deploy/jps.jar gant -d -v -f /home/lkundrak/src/idea/build/scripts/dist.gant "$@" compile
+#CLASSPATH=$(build-classpath jgoodies-forms jdom objectweb-asm/asm-commons idea/javac2 jps) gant -d -v -f $PWD/build/scripts/dist.gant "$@" compile
+#CLASSPATH=$(build-classpath jgoodies-forms jdom objectweb-asm/asm-commons idea/javac2 jps) gant -d -v -f $PWD/build/scripts/dist.gant "$@" 
+find -name 'NotificationComponent*.class' -delete
+#CLASSPATH=$PWD/out/classes/production/forms-compiler:$(build-classpath idea/javac2 jgoodies-forms jdom objectweb-asm/asm-commons jps) gant -f $PWD/build/scripts/dist.gant "$@" 
+#CLASSPATH=$PWD/out/dist.all.ce/lib/javac2.jar:$(build-classpath idea/javac2 jgoodies-forms jdom objectweb-asm/asm-commons jps) gant -f $PWD/build/scripts/dist.gant "$@" 
+#CLASSPATH=$PWD/out/classes/production/javac2:$(build-classpath idea/javac2 jgoodies-forms jdom objectweb-asm/asm-commons jps) gant -f $PWD/build/scripts/dist.gant "$@" 
+JGOODIES=$([ -f /etc/redhat-release ] && echo jgoodies-)
+CLASSPATH=$(build-classpath ${JGOODIES}forms jdom objectweb-asm/asm-commons brokenc2 jps) gant -d -v -f $PWD/build/scripts/dist.gant "$@" 
+find -name 'NotificationComponent*.class' |xargs -r ls -l