11<project name =" JPT" default =" all" basedir =" .." >
2- <description >
3- Build file for the Java Permutation Tools (JPT) API.
4- </description >
5- <!-- global properties for this build -->
6- <property name =" VERSION" value =" 2.0.1" />
7- <property name =" JDKVERSION" value =" 1.8" />
8- <property name =" junit" location =" build/junit-4.12.jar" />
9- <property name =" hamcrest" location =" build/hamcrest-core-1.3.jar" />
10- <property name =" src" location =" src" />
11- <property name =" bin" location =" bin" />
12- <property name =" testsrc" location =" tests" />
13- <property name =" testbin" location =" testbin" />
14- <property name =" dist" location =" dist" />
15- <property name =" examples" location =" examples" />
16- <property name =" replication" location =" replication" />
17- <property name =" examplebin" location =" exbin" />
18- <property name =" docdir" location =" docs/api" />
2+ <description >Build file for the Java Permutation Tools (JPT) API.
3+ </description >
4+ <!-- global properties for this build -->
5+ <property name =" VERSION" value =" 2.0.1" />
6+ <property name =" JDKVERSION" value =" 1.8" />
7+ <property name =" junit" location =" build/junit-4.12.jar" />
8+ <property name =" hamcrest" location =" build/hamcrest-core-1.3.jar" />
9+ <property name =" src" location =" src" />
10+ <property name =" bin" location =" bin" />
11+ <property name =" testsrc" location =" tests" />
12+ <property name =" testbin" location =" testbin" />
13+ <property name =" dist" location =" dist" />
14+ <property name =" examples" location =" examples" />
15+ <property name =" replication" location =" replication" />
16+ <property name =" examplebin" location =" exbin" />
1917
20- <target name =" init" >
21- <!-- Create the time stamp -->
22- <tstamp />
23- <!-- Create the build directory structure used by compile -->
24- <mkdir dir =" ${ bin } " />
25- <!-- Create the test directory structure-->
26- <mkdir dir =" ${ testbin } " />
27- <!-- Create the test directory structure-->
28- <mkdir dir =" ${ docdir } " />
29- </target >
18+ <target name =" init" >
19+ <!-- Create the time stamp -->
20+ <tstamp />
21+ <!-- Create the build directory structure used by compile -->
22+ <mkdir dir =" ${ bin } " />
23+ <!-- Create the test directory structure-->
24+ <mkdir dir =" ${ testbin } " />
25+ </target >
3026
31- <target name =" compile" depends =" init"
32- description =" compile the source" >
33- <!-- Compile the Java code from ${src} into ${bin} -->
34- <javac srcdir =" ${ src } " destdir =" ${ bin } " includeantruntime =" false"
35- source=" ${ JDKVERSION } " target =" ${ JDKVERSION } " >
36- <!--
37- <compilerarg value="-Xlint:unchecked"/>
38- -->
39- <compilerarg value =" -Xlint:deprecation" />
40- </javac >
41- <!-- Compile the JUnit tests from ${testsrc} into ${testbin} -->
42- <javac srcdir =" ${ testsrc } " destdir =" ${ testbin } " classpath =" ${ junit } ;${ bin } "
43- includeantruntime=" false" source =" ${ JDKVERSION } " target =" ${ JDKVERSION } " />
44- </target >
27+ <target name =" compile" depends =" init"
28+ description=" compile the source" >
29+ <!-- Compile the Java code from ${src} into ${bin} -->
30+ <javac srcdir =" ${ src } " destdir =" ${ bin } " includeantruntime =" false"
31+ source=" ${ JDKVERSION } " target =" ${ JDKVERSION } " >
32+ <!--
33+ <compilerarg value="-Xlint:unchecked"/>
34+ -->
35+ <compilerarg value =" -Xlint:deprecation" />
36+ </javac >
37+ <!-- Compile the JUnit tests from ${testsrc} into ${testbin} -->
38+ <javac srcdir =" ${ testsrc } " destdir =" ${ testbin } " classpath =" ${ junit } ;${ bin } "
39+ includeantruntime=" false" source =" ${ JDKVERSION } " target =" ${ JDKVERSION } " />
40+ </target >
4541
46- <target name =" test" depends =" compile"
47- description =" execute JUnit tests" >
48- <junit haltonfailure =" on" >
49- <formatter type =" plain" usefile =" false" />
50- <classpath >
51- <pathelement location =" ${ junit } " />
52- <pathelement location =" ${ hamcrest } " />
53- <pathelement location =" ${ bin } " />
54- <pathelement location =" ${ testbin } " />
55- </classpath >
56- <batchtest >
57- <fileset dir =" ${ testbin } " >
58- <include name =" **/*.class" />
59- <exclude name =" **/*$*" />
60- </fileset >
61- </batchtest >
62- </junit >
63- </target >
42+ <target name =" test" depends =" compile"
43+ description=" execute JUnit tests" >
44+ <junit haltonfailure =" on" >
45+ <formatter type =" plain" usefile =" false" />
46+ <classpath >
47+ <pathelement location =" ${ junit } " />
48+ <pathelement location =" ${ hamcrest } " />
49+ <pathelement location =" ${ bin } " />
50+ <pathelement location =" ${ testbin } " />
51+ </classpath >
52+ <batchtest >
53+ <fileset dir =" ${ testbin } " >
54+ <include name =" **/*.class" />
55+ <exclude name =" **/*$*" />
56+ </fileset >
57+ </batchtest >
58+ </junit >
59+ </target >
6460
65- <target name =" dist" depends =" compile,test"
66- description =" generate the distribution" >
67- <!-- Create the distribution directory -->
68- <mkdir dir =" ${ dist } " />
69- <!-- Put everything in ${bin} into the jpt${VERSION}.jar file -->
70- <jar jarfile =" ${ dist } /jpt-${ VERSION } .jar" basedir =" ${ bin } " />
71- </target >
61+ <target name =" dist" depends =" compile,test"
62+ description=" generate the distribution" >
63+ <!-- Create the distribution directory -->
64+ <mkdir dir =" ${ dist } " />
65+ <!-- Put everything in ${bin} into the jpt${VERSION}.jar file -->
66+ <jar jarfile =" ${ dist } /jpt-${ VERSION } .jar" basedir =" ${ bin } " />
67+ </target >
7268
73- <target name =" examples" depends =" dist"
69+ <target name =" examples" depends =" dist"
7470 description=" compiles example programs and experiment replication programs" >
75- <!-- Create directory for bin of examples and replication programs -->
76- <mkdir dir =" ${ examplebin } " />
77- <!-- Compile basic examples -->
78- <javac srcdir =" ${ examples } " destdir =" ${ examplebin } "
79- classpath=" ${ dist } /jpt-${ VERSION } .jar;${ examples } " includeantruntime =" false"
80- source=" ${ JDKVERSION } " target =" ${ JDKVERSION } " />
81- <!-- Compile experiment replication programs -->
82- <javac srcdir =" ${ replication } " destdir =" ${ examplebin } "
83- classpath=" ${ dist } /jpt-${ VERSION } .jar;${ replication } " includeantruntime =" false"
84- source=" ${ JDKVERSION } " target =" ${ JDKVERSION } " />
85- </target >
71+ <!-- Create directory for bin of examples and replication programs -->
72+ <mkdir dir =" ${ examplebin } " />
73+ <!-- Compile basic examples -->
74+ <javac srcdir =" ${ examples } " destdir =" ${ examplebin } "
75+ classpath=" ${ dist } /jpt-${ VERSION } .jar;${ examples } " includeantruntime =" false"
76+ source=" ${ JDKVERSION } " target =" ${ JDKVERSION } " />
77+ <!-- Compile experiment replication programs -->
78+ <javac srcdir =" ${ replication } " destdir =" ${ examplebin } "
79+ classpath=" ${ dist } /jpt-${ VERSION } .jar;${ replication } " includeantruntime =" false"
80+ source=" ${ JDKVERSION } " target =" ${ JDKVERSION } " />
81+ </target >
8682
87- <target name =" docs" depends =" dist"
88- description=" generates documentation via javadoc" >
89- <javadoc destdir =" ${ docdir } "
90- sourcepath=" ${ src } "
91- windowtitle=" JavaPermutationTools - A Java API for computation on permutations"
92- doctitle=" JavaPermutationTools - A Java API for computation on permutations"
93- overview=" src/overview.html"
94- author=" false"
95- version=" false"
96- additionalparam=" -notimestamp --no-module-directories"
97- source=" ${ JDKVERSION } " >
98- <link href =" https://docs.oracle.com/javase/8/docs/api/" packagelistLoc =" build/java-package-list" offline =" true" />
99- <bottom ><![CDATA[ Copyright © 2005-2019 Vincent A. Cicirello. <a href=\"https://www.cicirello.org/\" target=_top>https://www.cicirello.org/</a>]]> </bottom >
100- </javadoc >
101- </target >
10283
103- <target name =" all" depends =" dist,examples,docs " description =" compile everything including example programs and generates library jar" >
104- </target >
84+ <target name =" all" depends =" dist,examples" description =" compile everything including example programs and generates library jar" >
85+ </target >
10586
106- <target name =" clean"
107- description =" clean up" >
108- <!-- Delete the ${bin} and ${dist} directory trees -->
109- <delete dir =" ${ bin } " />
110- <delete dir =" ${ testbin } " />
111- <delete dir =" ${ examplebin } " />
112- <delete dir =" ${ docdir } " />
113- </target >
87+ <target name =" clean"
88+ description=" clean up" >
89+ <!-- Delete the ${bin} and ${dist} directory trees -->
90+ <delete dir =" ${ bin } " />
91+ <delete dir =" ${ testbin } " />
92+ <delete dir =" ${ examplebin } " />
93+ </target >
11494
11595</project >
0 commit comments