gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
ant - added paralellisation to some tasks, but disabled by default since the logs...
authorDoni Pracner <quinnuendo@gmail.com>
Mon, 3 Nov 2014 22:19:24 +0000 (23:19 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Mon, 3 Nov 2014 22:19:24 +0000 (23:19 +0100)
build.xml

index 421377f..142a84b 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -14,6 +14,9 @@
     <property name="java.encoding" value="utf-8" />
     <taskdef resource="net/sf/antcontrib/antlib.xml"/>
     
+    <!-- when using multiple threads there is a problem with logging!-->
+    <property name="global.max.threads" value="1" />
+    
     <property name="mjc2wsl.class.dir" value="bin" />
     <property name="mjc2wsl.src.dir" value="src" />
     <property name="mjc2wsl.options" value="" />
     <target name="mjc2wsl-samples" depends="build,init-time" description="run the mjc2wsl tool on the samples">
         <record name="${log.file.mjc2wsl}${time}.txt" emacsmode="true" />
         <echo>Used options:${mjc2wsl.options}</echo>
-        <foreach param="filename" target="mjc2wsl">
+        <foreach param="filename" target="mjc2wsl"  parallel="true" maxthreads="${global.max.threads}">
             <path>
             <fileset dir='${samples.temp.dir}'>
                 <include name="*.obj"/>
     </target>
     
     <target name="mj-samples" description="run the mj compiler on the samples" depends="init">
-        <foreach param="filename" target="mj-compile">
+        <foreach param="filename" target="mj-compile"  parallel="true" maxthreads="${global.max.threads}">
             <path>
             <fileset dir='${samples.temp.dir}'>
                 <include name="*.mj"/>
     <target name="wsl-transf-samples" depends="init"
     description="transform (simplify) the wsl files generated by mjc2wsl" >
         <record name="${log.file.transformations}${time}.txt" emacsmode="true" />
-        <foreach param="transf.filename" target="wsl-transf">
+        <foreach param="transf.filename" target="wsl-transf" parallel="true" maxthreads="${global.max.threads}">
             <path>
             <fileset dir='${samples.temp.dir}'>
                 <patternset refid="non.transformed.sources"/>
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner