gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
ant build - added descriptions to the main targets
[mjc2wsl.git] / build.xml
index 93d03ce..3772894 100644 (file)
--- a/build.xml
+++ b/build.xml
         <mkdir dir="${compiler.class.dir}"/>
         <mkdir dir="${samples.temp.dir}"/>
         <copy todir="${samples.temp.dir}">
-               <fileset dir="${samples.main.dir}">
-                       <include name="*.mj"/>
-               </fileset>
+            <fileset dir="${samples.main.dir}">
+                <include name="*.mj"/>
+            </fileset>
         </copy>
     </target>
 
-    <target name="build" depends="init">
+    <target name="build" depends="init" description="build the mjv2wsl tool">
         <javac srcdir="${mjc2wsl.src.dir}" destdir="${mjc2wsl.class.dir}" includeAntRuntime='no' />
     </target>
 
-    <target name="mj-build" depends="init">
+    <target name="mj-build" depends="init" description="build the mj compiler">
         <javac srcdir="${compiler.src.dir}" destdir="${compiler.class.dir}" includeAntRuntime='no' />
     </target>
     
         </java>
     </target>
     
-    <target name="mj-samples" depends="build">
+    <target name="mj-samples" depends="build" description="run the mj compiler on the samples">
         <foreach param="filename" target="mj-compile">
             <path>
             <fileset dir='${samples.temp.dir}'>
-               <include name="*.mj"/>
+                <include name="*.mj"/>
             </fileset>
             </path>
         </foreach>
@@ -63,7 +63,7 @@
 
     <target name="mj-samples1" depends="mj-build">
     <!-- simplistic version when antlib (foreach) is not available -->
-       <antcall target="mj-compile">
+        <antcall target="mj-compile">
             <param name="filename" value="samples-temp/sample.mj" />
         </antcall>
         <antcall target="mj-compile">
@@ -86,7 +86,7 @@
         <foreach param="filename" target="mjc2wsl">
             <path>
             <fileset dir='${samples.temp.dir}'>
-               <include name="*.obj"/>
+                <include name="*.obj"/>
             </fileset>
             </path>
         </foreach>
         </antcall>
     </target>
     
-    <target name="all" depends='mj-samples,mjc2wsl-samples'>
+    <target name="all" depends='mj-samples,mjc2wsl-samples' description="build the tools, run them on the samples to check">
     
     </target>
     
-    <target name="clean" >
+    <target name="clean" description="clean up all the generated content">
         <delete includeemptydirs="true">
             <fileset dir=".">
                 <include name="${mjc2wsl.class.dir}/*.class"/>
             </dirset>
         </delete>
     </target>
-
+    
+    <!-- jedit specific flags; needs to be the first or the last 10 lines
+    :noTabs=true:
+    -->
 </project>
\ No newline at end of file
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner