forked from tmyroadctfig/org.boris.pecoff4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
36 lines (34 loc) · 1.2 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
<project name="PECOFF4J" default="build">
<property name="release.dir" value="F:/Development/Releases/"/>
<property name="release.name" value="pecoff4j"/>
<property name="release.version" value="0.0.1"/>
<property name="deploy.dir" value="${release.dir}/${release.name}-${release.version}"/>
<target name="build">
<mkdir dir="${deploy.dir}"/>
<copy todir="${deploy.dir}" file="cpl-v10.html"/>
<mkdir dir="build"/>
<mkdir dir="build/org/boris/${release.name}"/>
<javac srcdir="java/src" destdir="build" source="5">
<classpath>
<pathelement location="build"/>
</classpath>
</javac>
<jar destfile="${deploy.dir}/${release.name}-${release.version}.jar">
<fileset dir="build">
<include name="**/*.class"/>
</fileset>
</jar>
<jar destfile="${deploy.dir}/${release.name}-${release.version}-src.zip">
<fileset dir="java/src">
<include name="**/*.java"/>
</fileset>
</jar>
<delete dir="build"/>
<zip destfile="${release.dir}/${release.name}-${release.version}.zip">
<fileset dir="${release.dir}/${release.name}-${release.version}">
<include name="**/*"/>
</fileset>
</zip>
<delete dir="${release.dir}/${release.name}-${release.version}"/>
</target>
</project>