gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
ant build za brzo testiranje kompajliranja svih primera
authorDoni Pracner <quinnuendo@gmail.com>
Wed, 24 Feb 2016 14:58:07 +0000 (15:58 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Wed, 24 Feb 2016 14:58:07 +0000 (15:58 +0100)
build.xml [new file with mode: 0644]

diff --git a/build.xml b/build.xml
new file mode 100644 (file)
index 0000000..919d34d
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,41 @@
+<project name="uup" default="compile-all">
+          <property name="java.source.version" value="1.7" />
+    <property name="java.target.version" value="1.7" />
+    <property name="java.bootstrap.classpath" location="${env.JAVA_HOME}/lib/rt.jar" />
+    <property name="temp.dir" value="temp" />
+
+
+      <target name="compile-single" depends="">
+       <basename property="src.dir" file="${src.dir.full}"/>
+       <echo message="${src.dir}"/>
+                               
+       <mkdir dir="${temp.dir}/${src.dir}"/>
+        <javac srcdir="${src.dir.full}"
+              destdir="${temp.dir}/${src.dir}"
+               source="${java.source.version}"
+               target="${java.target.version}"
+              classpath="${src.dir.full}"
+               bootclasspath="${java.bootstrap.classpath}"
+               includeAntRuntime="no"
+              failonerror="false"
+              includes="*.java">
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+
+      </target>
+
+      <target name="compile-all">
+        <taskdef resource="net/sf/antcontrib/antlib.xml" />
+       <mkdir dir="${temp.dir}" />
+        <foreach param="src.dir.full"
+                 target="compile-single">
+            <path>
+              <dirset dir='kodovi' >
+                 <type type="dir"/>
+                </dirset>
+            </path>
+        </foreach>
+
+      </target>
+
+</project>
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner