summaryrefslogtreecommitdiff
blob: 011815eea7afa6755d51dc5217344460814580e8 (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
<?xml version="1.0"?>
<project name="proguard" basedir="." default="proguard">
	<target name="proguard">
		<tstamp />

		<mkdir dir="classes" />
		<javac srcdir="src" debug="false" destdir="classes">
			<include name="**/*.java" />
		</javac>
		
		<mkdir dir="dist" />

		<delete file="dist/retrace.jar"/>
		<jar jarfile="dist/retrace.jar" compress="true">
			<fileset dir="classes">
				<include name="proguard/retrace/**/*.*" />
			</fileset>
		</jar>

		<delete file="dist/proguardgui.jar"/>
		<jar jarfile="dist/proguardgui.jar" compress="true">
			<fileset dir="classes">
				<include name="proguard/gui/**/*.class" />
			</fileset>

			<fileset dir="src">
				<include name="proguard/gui/*.gif" />
				<include name="proguard/gui/*.pro" />
			</fileset>
		</jar>

		<delete file="dist/proguard.jar"/>
		<jar jarfile="dist/proguard.jar" compress="true">
			<fileset dir="classes">
				<exclude name="proguard/gui**" />
				<exclude name="proguard/retrace**" />
			</fileset>

			<fileset dir="src">
				<include name="proguard/ant/task.properties" />
				<include name="proguard/wtk/default.pro" />
			</fileset>
		</jar>

		<delete dir="classes" />
	</target>
</project>