Skip to content

Commit

Permalink
xml ajang
Browse files Browse the repository at this point in the history
made ajang.xml
  • Loading branch information
Jangsta committed Feb 16, 2013
1 parent 8910a7e commit af7b805
Showing 1 changed file with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions M4/ajang6.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>

<project name="m4" default="all" basedir=".">

<target name="init">
<property name="src.dir" value="src" />
<property name="build.dir" value="build" />
<property name="lib.dir" value="lib" />
<property name="javadoc.dir" value="apidoc" />
<property name="jar.name" value="AntLabRun.jar" />
</target>


<!-- prepare our folders and all that goodness -->
<target name="prepare" depends="init">
<mkdir dir="${build.dir}" />

<path id="master-classpath">
<fileset dir="${build.dir}" includes="**/*.class"/>
<fileset dir="${lib.dir}" includes="*.jar" />

<pathelement path="${java.class.path}" />
</path>
</target>

<!-- compile the code -->
<target name="compile" depends="prepare">
<javac srcdir="${src.dir}"
destdir="${build.dir}"
includeantruntime="false">

<classpath refid="master-classpath" />
</javac>
</target>

<!-- create javadoc -->
<target name="javadoc" depends="compile">
<mkdir dir="${javadoc.dir}"/>

<javadoc
sourcepath="${src.dir}"
destdir="${javadoc.dir}"
classpathref="master-classpath"
author="true"
version="true"
use="true"
windowtitle="antlab API"
doctitle="&lt;h1&gt;ANTLAB&lt;/h1&gt;"
/>
</target>

<!-- create a jar -->
<target name="jar" depends="javadoc">
<jar destfile="${jar.name}"
basedir="${build.dir}"
includes="**/*.class">
<manifest>
<attribute name="Main-Class" value="edu.gatech.oad.antlab.pkg1.AntLabMain" />
<attribute name="Class-Path" value="lib/resources.jar"/>
</manifest>
</jar>
</target>

<!-- run the application -->
<target name="run" depends="jar">
<java jar="${jar.name}"
classpathref="master-classpath"
fork="true"
/>
</target>


<!-- clean up all files generated by the build -->
<target name="clean" depends="init" >
<delete dir="${build.dir}" />
<delete dir="${javadoc.dir}" />
<delete file="${jar.name}" />
</target>

<!-- run all tasks except cleanup -->
<target name="all" depends="run" />

</project>

0 comments on commit af7b805

Please sign in to comment.