-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
38 lines (36 loc) · 2.1 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="buildJars" name="Create Jar for NetworkParser">
<!-- Change to JRE on Workspace -->
<import file="buildAnt.xml" as="Ant"/>
<target name="buildJars" depends="Ant.buildAnt">
<mkdir dir="build/bin16" />
<mkdir dir="build/bin17" />
<javac destdir="build/bin16" srcdir="src/main/java"
debug="${javac.debug}" nowarn="${javac.nowarn}" fork="true" verbose="${verbose}"
deprecation="${javac.deprecation}" source="1.6" target="1.6" includeantruntime="false" />
<javac destdir="build/bin17" srcdir="src/main/java"
debug="${javac.debug}" nowarn="${javac.nowarn}" fork="true" verbose="${verbose}"
deprecation="${javac.deprecation}" source="1.7" target="1.7" includeantruntime="false"/>
<taskdef name="CopyRightSetter" classname="de.uniks.networkparser.test.ant.CopyRightSetter" classpath="src/Ant:bin:NetworkParserAnt.jar"/>
<CopyRightSetter projectName="NetworkParser" source="src/main/java/de/uniks/networkparser/" file="src/Ant/de/uniks/networkparser/test/build/Licence.txt"/>
<jar destfile="./build/networkparser.jar" filesetmanifest="mergewithoutmain" manifest="build/MANIFEST.MF">
<fileset dir="./bin" excludes="de/uniks/networkparser/test/**" />
<fileset file="src/Ant/de/uniks/networkparser/test/ant/Licence.txt" id="Licence.txt" />
</jar>
<jar destfile="./build/networkparser-source.jar" filesetmanifest="mergewithoutmain" manifest="build/MANIFEST.MF">
<fileset dir="./bin" excludes="de/uniks/networkparser/test/**" />
<fileset dir="./src"/>
<fileset file="src/Ant/de/uniks/networkparser/test/ant/Licence.txt" id="Licence.txt" />
</jar>
<javadoc destdir="build/javadoc/" sourcepath="src/main/java">
<classpath>
<pathelement location="lib/jacoco-0.7.1.201405082137/junit.jar"/>
</classpath>
</javadoc>
<jar destfile="./build/networkparser-javadoc.jar" filesetmanifest="mergewithoutmain" manifest="build/MANIFEST.MF">
<fileset dir="build/javadoc/" />
<fileset file="src/Ant/de/uniks/networkparser/test/ant/Licence.txt" id="Licence.txt" />
</jar>
<delete dir="build/javadoc/"/>
</target>
</project>