forked from flowplayer/flash-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-anttask.xml
50 lines (40 loc) · 1.36 KB
/
build-anttask.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
39
40
41
42
43
44
45
46
47
48
49
<project name="Custom ant tasks" default="package" basedir=".">
<property name="build.home" value="build/anttask"/>
<path id="compile.classpath">
<fileset dir="${build.home}"/>
<fileset dir="/Users/api/Applications/apache-ant-1.9.2/lib">
<include name="*.jar"/>
</fileset>
</path>
<!-- prepare -->
<target name="prepare">
<mkdir dir="${build.home}"/>
</target>
<!-- clean -->
<target name="clean">
<delete dir="${build.home}"/>
</target>
<!-- compile -->
<target name="compile" depends="prepare">
<javac
srcdir="src"
destdir="${build.home}"
deprecation="true"
debug="on"
includes="**/*.java">
<classpath refid="compile.classpath"/>
</javac>
</target>
<target name="package" depends="compile">
<jar jarfile="lib/ant-task.jar">
<fileset dir="${build.home}"/>
<manifest>
<attribute name="Main-Class" value="org.flowplayer.ant.Flatten"/>
<!--<attribute name="Class-Path" value="./lib/piimaa.jar ./lib/commons-codec-1.3.jar ./lib/commons-logging-1.1.1.jar ./lib/json-0.10.jar ./lib/typica.jar ./lib/jargs.jar ./lib/commons-httpclient-3.1.jar ./lib/commons-io-1.4.jar ./lib/jets3t-0.7.1.jar ./lib/commons-net-2.0.jar ./lib/commons-net-ftp-2.0.jar ./lib/jsch-0.1.42.jar"/>-->
</manifest>
</jar>
</target>
<!-- shortcuts -->
<target name="c" depends="clean"/>
<target name="co" depends="compile"/>
</project>