-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made ajang.xml
- Loading branch information
Showing
1 changed file
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="<h1>ANTLAB</h1>" | ||
/> | ||
</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> |