-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
41 lines (31 loc) · 1.22 KB
/
build.xml
File metadata and controls
41 lines (31 loc) · 1.22 KB
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
39
40
41
<project name="cbmAntTasks" default="dist" basedir=".">
<property name="src.path" location="src/main" />
<property name="java.src.path" location="${src.path}/java" />
<property name="resources.src.path" location="${src.path}/resources" />
<property name="target.path" location="target" />
<property name="classes.target.path" location="${target.path}/classes" />
<target name="init">
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd" locale="en_US" />
</tstamp>
<mkdir dir="${classes.target.path}" />
</target>
<target name="compile" depends="init" description="compile the source ">
<javac srcdir="${java.src.path}" destdir="${classes.target.path}" target="1.11" />
<copy todir="${classes.target.path}">
<fileset dir="${resources.src.path}">
<include name="**/*" />
</fileset>
</copy>
</target>
<target name="dist" depends="compile" description="generate the distribution">
<jar jarfile="${target.path}/cbmAntTasks-${TODAY}.jar" basedir="${classes.target.path}">
<manifest>
<attribute name="Main-Class" value="org.cbm.ant.util.bitmap.CBMBitmapUtility" />
</manifest>
</jar>
</target>
<target name="clean" description="clean up">
<delete dir="${target.path}" />
</target>
</project>