-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
34 lines (28 loc) · 1.21 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="JPassport" default="jar.JPassport">
<property name="name" value="jpassport"/>
<property name="version" value="0.5.2"/>
<property name="home" value="jpassport"/>
<property name="src.home.jpassport" value="${home}/src/main/java"/>
<property name="resource.home.jpassport" value="${home}/src/main/resources"/>
<property name="build.home.jpassport" value="${home}/target/classes"/>
<target name="clean">
<deltree dir="${home}/target"/>
</target>
<target name="compile">
<mkdir dir="${build.home.jpassport}"/>
<javac srcdir="${src.home.jpassport}" destdir="${build.home.jpassport}" debug="true" target="17">
</javac>
<propertyfile file="${resource.home.jpassport}\jpassport\version.properties">
<entry key="version" value="${version}"/>
</propertyfile>
<copy todir="${build.home.jpassport}">
<fileset dir="${resource.home.jpassport}"/>
</copy>
</target>
<target name="jar.JPassport" depends="compile">
<jar file="${home}/target/${name}-${version}.jar">
<fileset dir="${build.home.jpassport}"/>
</jar>
</target>
</project>