-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
52 lines (45 loc) · 1.26 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<project name="YUI Compressor Task" default="compile" basedir=".">
<description>
Build file for YUI compressor Ant task.
</description>
<property environment="env"/>
<property file="build.properties"/>
<path id="javac.classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
</target>
<target name="compile" depends="init">
<mkdir dir="${build.dir}/classes"/>
<javac
srcdir="${src.dir}"
destdir="${build.dir}/classes"
includeantruntime="true"
deprecation="off"
debug="true"
source="1.6">
<classpath refid="javac.classpath"/>
</javac>
</target>
<target name="package" depends="compile">
<mkdir dir="${build.dir}/jar"/>
<copy todir="${build.dir}/jar">
<fileset dir="${build.dir}/classes" includes="**/*.class"/>
<fileset dir="${config.dir}"/>
</copy>
<jar jarfile="${dist.dir}/${jar.name}" basedir="${build.dir}/jar">
<!--
<manifest>
<attribute name="Class-Path" value="yuicompressor-2.4.2.jar" />
</manifest>
-->
</jar>
</target>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
</project>