PageRenderTime 20ms CodeModel.GetById 11ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/groovylab/build.xml

http://groovylab.googlecode.com/
XML | 61 lines | 45 code | 10 blank | 6 comment | 0 complexity | 9ce1a4bc3f8ae14ea3bffe6ae9f7327c MD5 | raw file
 1
 2<project name="groovylab" default="dist" basedir=".">
 3    <description>
 4        jmathio, java math I/O library
 5    </description>
 6	<!-- set global properties for this build -->
 7    <property name="src" location="src" />
 8    <property name="build" location="build" />
 9    <property name="dist" location="dist" />
10    <property name="lib" location="lib" />
11		
12    <target name="init">
13		<!-- Create the time stamp -->
14        <tstamp />
15		<!-- Create the build directory structure used by compile -->
16        <mkdir dir="${build}" />
17    </target>
18
19    <target name="resource">
20        <copy todir="${build}">
21            <fileset dir="${src}">
22                <include name="**/*.java" />
23            </fileset>
24        </copy>
25    </target>
26	
27    <target name="compile" depends="init" description="compile the source ">
28		<!-- Compile the java code from ${src} into ${build} -->
29        <javac srcdir="${src}" destdir="${build}"  source="1.5" target="1.5"/>
30    </target>
31
32    <target name="dist" depends="compile,resource" description="generate the distribution">
33		<!-- Create the distribution directory -->
34        <mkdir dir="${dist}/" />
35        <jar jarfile="${dist}/${ant.project.name}.jar" basedir="${src}" />
36    </target>
37	
38    <target name="clean" description="clean up">
39		<!-- Delete the ${build} and ${dist} directory trees -->
40        <delete dir="${build}" />
41        <delete dir="${dist}" includes="*.jar"/>
42    </target>
43	
44    <target name="doc">
45        <taskdef name="groovydoc" classname="org.codehaus.groovy.ant.Groovydoc"  classpath="groovy-all.jar"/> 
46        <groovydoc
47    destdir="doc"
48    sourcepath="${src}"
49    packagenames="**.*"
50    use="true"
51    private="false">
52            <link packages="java.,org.xml.,javax.,org.xml." href="http://java.sun.com/j2se/1.5.0/docs/api"/>
53            <link packages="org.apache.ant.,org.apache.tools.ant." href="http://www.dpml.net/api/ant/1.7.0"/>
54            <link packages="org.junit.,junit.framework." href="http://junit.sourceforge.net/junit3.8.1/javadoc/"/>
55            <link packages="groovy.,org.codehaus.groovy." href="http://groovy.codehaus.org/api/"/>
56        </groovydoc>
57    </target>
58
59
60
61</project>