Reviewers: scottb, Description: This change saves me about 4 minutes on a work-to-do build. The idea is that, if the default isn't good for people, they can set a local override in GWT_ROOT/local.ant.properties.
Please review this at http://gwt-code-reviews.appspot.com/36802 Affected files: samples/common.ant.xml Index: samples/common.ant.xml =================================================================== --- samples/common.ant.xml (revision 5537) +++ samples/common.ant.xml (working copy) @@ -3,6 +3,14 @@ <property name="project.tail" value="samples/${sample.root}" /> <import file="${gwt.root}/common.ant.xml" /> + <!-- + Number of localworkers for sample compilation. This depends on your + hardware, so it's a good candidate to specify in local.ant.properties + if this default isn't good for you. Ideally, it should approximate + the number of CPU cores in your machine. + --> + <property name="gwt.samples.localworkers" value="2" /> + <property name="sample.lower" value="${sample.root}" /> <property name="sample.upper" value="${sample.module}" /> @@ -47,9 +55,11 @@ <targetfiles path="${sample.build}/war/${sample.lower}/${sample.lower}.nocache.js" /> <sequential> <mkdir dir="${sample.build}/war" /> - <gwt.timer name="${sample.upper}"> + <gwt.timer name="${sample.upper} with ${gwt.samples.localworkers} localWorkers"> <java dir="${sample.build}" classname="com.google.gwt.dev.Compiler" classpath="src:${sample.build}/war/WEB-INF/classes:${gwt.user.jar}:${gwt.dev.jar}" fork="yes" failonerror="true"> <jvmarg value="-Xmx256M"/> + <arg value="-localWorkers" /> + <arg value="${gwt.samples.localworkers}" /> <arg value="-war" /> <arg file="${sample.build}/war" /> <arg value="com.google.gwt.sample.${sample.lower}.${sample.upper}" /> --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---