blob: ee83cf995f636a2046798659d346fe1fa3d7eab7 (
plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
<?xml version="1.0"?>
<!--
NOTE: You may need to set the ANT_OPTS="-Xmx512m" env prop in order to compile this project successfully.
-->
<project default="jar" name="Azureus" basedir=".">
<property name="root.dir" value="." /> <!-- REMINDER: this needs to be "." for public source -->
<property name="libs.dir" value="build/libs" />
<property name="dist.dir" value="dist" />
<property name="generic.excludes" value="**/*.jar **/*.txt **/*.jardesc **/.classpath **/.project **/aereg.lib **/aereg.dll" />
<property name="dist.jar.excludes" value="${generic.excludes} **/*.java " />
<!-- <property name="dist.source.excludes" value="${generic.excludes} **/*.class" /> -->
<target name="init" >
<echo message="Building Azureus2.jar..." />
<tstamp/>
<!-- <condition property="libs.dir" value="build/libs">
<not> <isset property="libs.dir" /> </not>
</condition> -->
<mkdir dir="${root.dir}/${dist.dir}" />
</target>
<target name="compile" depends="init" >
<path id="libs.classpath">
<fileset dir="${root.dir}/${libs.dir}" includes="**/*.jar" />
</path>
<javac srcdir="${root.dir}" destdir="${root.dir}" nowarn="yes" source="1.4" target="1.4" includeAntRuntime="no" debug="true" debuglevel="lines,vars,source" >
<classpath refid="libs.classpath" />
</javac>
</target>
<target name="jar" depends="compile" >
<jar destfile="${root.dir}/${dist.dir}/Azureus2.jar" basedir="${root.dir}" excludes="${dist.jar.excludes}" >
<manifest>
<attribute name="Main-Class" value="org.gudy.azureus2.ui.common.Main" />
<attribute name="Class-Path" value="Azureus2.jar apple-extensions.jar commons-cli.jar log4j.jar swt.jar swt-win32.jar swt-osx.jar" />
</manifest>
</jar>
<!-- <zip destfile="${dist.dir}/Azureus2_source.zip" basedir="." excludes="${dist.source.excludes}" /> -->
</target>
<target name="clean" >
<delete quiet="true" >
<fileset dir="${root.dir}/com" includes="**/*.class"/>
<fileset dir="${root.dir}/org" includes="**/*.class"/>
</delete>
<delete dir="${root.dir}/${dist.dir}" />
</target>
</project>
|