1
+ <?xml version =" 1.0" encoding =" ISO-8859-1" ?>
2
+ <project name =" laf-plugin" default =" all" >
3
+ <property file =" local.build.properties" />
4
+ <property file =" build.properties" />
5
+
6
+ <!-- Compiler options -->
7
+ <patternset id =" javac.excluded" />
8
+ <patternset id =" javac.resources" >
9
+ <include name =" **/?*.properties" />
10
+ <include name =" **/?*.xml" />
11
+ <include name =" **/?*.gif" />
12
+ <include name =" **/?*.png" />
13
+ <include name =" **/?*.jpeg" />
14
+ <include name =" **/?*.jpg" />
15
+ <include name =" **/?*.ttf" />
16
+ <include name =" **/?*.license" />
17
+ </patternset >
18
+ <!-- JDK definitions -->
19
+
20
+ <path id =" jdk.classpath" >
21
+ <fileset dir =" ${ jdk.home } " >
22
+ <include name =" jre/lib/charsets.jar" />
23
+ <include name =" jre/lib/deploy.jar" />
24
+ <include name =" jre/lib/javaws.jar" />
25
+ <include name =" jre/lib/jce.jar" />
26
+ <include name =" jre/lib/jsse.jar" />
27
+ <include name =" jre/lib/plugin.jar" />
28
+ <include name =" jre/lib/rt.jar" />
29
+ <include name =" jre/lib/ext/dnsns.jar" />
30
+ <include name =" jre/lib/ext/localedata.jar" />
31
+ <include name =" jre/lib/ext/sunjce_provider.jar" />
32
+ <include name =" jre/lib/ext/sunpkcs11.jar" />
33
+ </fileset >
34
+ </path >
35
+
36
+ <property name =" project.jdk.home" value =" ${ jdk.home } " />
37
+ <property name =" project.jdk.classpath" value =" jdk.classpath" />
38
+ <!-- Project Libraries -->
39
+ <!-- Global Libraries -->
40
+
41
+ <dirname property =" module.laf-plugin.basedir" file =" ${ ant.file } " />
42
+
43
+ <property name =" javac.args.laf-plugin" value =" ${ javac.args } " />
44
+
45
+ <property name =" laf-plugin.build.dir" value =" ${ module.laf-plugin.basedir } /build/" />
46
+ <property name =" laf-plugin.output.dir" value =" ${ laf-plugin.build.dir } /classes" />
47
+ <property name =" laf-plugin.drop.dir" value =" ${ module.laf-plugin.basedir } /drop" />
48
+ <property name =" laf-plugin.lib.dir" value =" ${ module.laf-plugin.basedir } /lib" />
49
+ <property name =" laf-plugin.src.dir" value =" ${ module.laf-plugin.basedir } /src/" />
50
+ <property name =" laf-plugin.version" value =" 1.1final Landshark" />
51
+
52
+ <path id =" laf-plugin.module.bootclasspath" >
53
+ <!-- Paths to be included in compilation bootclasspath -->
54
+ </path >
55
+
56
+ <property name =" module.jdk.home.laf-plugin" value =" ${ project.jdk.home } " />
57
+ <property name =" module.jdk.classpath.laf-plugin" value =" ${ project.jdk.classpath } " />
58
+
59
+ <path id =" laf-plugin.module.classpath" >
60
+ <path refid =" ${ module.jdk.classpath.laf-plugin } " />
61
+ </path >
62
+
63
+ <patternset id =" excluded.from.module.laf-plugin" />
64
+
65
+ <patternset id =" excluded.from.compilation.laf-plugin" >
66
+ <patternset refid =" excluded.from.module.laf-plugin" />
67
+ <patternset refid =" javac.excluded" />
68
+ </patternset >
69
+
70
+ <path id =" laf-plugin.module.sourcepath" >
71
+ <dirset dir =" ${ laf-plugin.src.dir } " >
72
+ <include name =" org/pushingpixels/lafplugin" />
73
+ </dirset >
74
+ </path >
75
+
76
+ <target name =" compile.module.laf-plugin" depends =" compile.module.laf-plugin.production" description =" compile module laf-plugin" />
77
+
78
+ <target name =" compile.module.laf-plugin.production" description =" compile module laf-plugin production classes" >
79
+ <mkdir dir =" ${ laf-plugin.output.dir } " />
80
+ <javac source =" ${ javac.source } " target =" ${ javac.target } " encoding =" ${ javac.encoding } " destdir =" ${ laf-plugin.output.dir } " debug =" ${ javac.debug } " nowarn =" ${ javac.generate.no.warnings } " memoryMaximumSize =" ${ javac.max.memory } " fork =" true" executable =" ${ module.jdk.home.laf-plugin } /bin/javac" >
81
+ <compilerarg line =" ${ javac.args.laf-plugin } " />
82
+ <bootclasspath refid =" laf-plugin.module.bootclasspath" />
83
+ <classpath refid =" laf-plugin.module.classpath" />
84
+ <src refid =" laf-plugin.module.sourcepath" />
85
+ <patternset refid =" excluded.from.compilation.laf-plugin" />
86
+ </javac >
87
+ <copy todir =" ${ laf-plugin.output.dir } " >
88
+ <fileset dir =" ${ laf-plugin.src.dir } " >
89
+ <patternset refid =" javac.resources" />
90
+ <type type =" file" />
91
+ <patternset refid =" excluded.from.compilation.laf-plugin" />
92
+ </fileset >
93
+ </copy >
94
+ </target >
95
+
96
+ <target name =" clean.module.laf-plugin" description =" cleanup module" >
97
+ <delete dir =" ${ laf-plugin.output.dir } " />
98
+ </target >
99
+
100
+ <target name =" init" description =" Build initialization" >
101
+ <!-- Perform any build initialization in this target -->
102
+ </target >
103
+
104
+ <target name =" jar-bin" description =" create runtime jar" >
105
+ <mkdir dir =" ${ laf-plugin.drop.dir } " />
106
+ <delete file =" ${ laf-plugin.drop.dir } /laf-plugin.jar" />
107
+ <jar compress =" true" destfile =" ${ laf-plugin.drop.dir } /laf-plugin.jar" >
108
+ <fileset dir =" ${ laf-plugin.output.dir } /" />
109
+ <manifest >
110
+ <attribute name =" Laf-Plugin-Version" value =" ${ laf-plugin.version } " />
111
+ <attribute name =" Laf-Plugin-BuildStamp" value =" ${ build.time } " />
112
+ </manifest >
113
+ </jar >
114
+ <copy file =" ${ laf-plugin.drop.dir } /laf-plugin.jar" todir =" ${ module.laf-plugin.basedir } /../substance/lib/build" />
115
+ </target >
116
+
117
+ <target name =" distro" description =" create distribution" >
118
+ <delete file =" ${ module.laf-plugin.basedir } /laf-plugin-all.zip" />
119
+ <zip destfile =" ${ module.laf-plugin.basedir } /laf-plugin-all.zip" compress =" true" >
120
+ <fileset dir =" ${ module.laf-plugin.basedir } " >
121
+ <include name =" src/**" />
122
+ <include name =" build*.xml" />
123
+ <include name =" build*.properties" />
124
+ <!--
125
+ <include name="www/index.html" />
126
+ <include name="www/docs/**" />
127
+ <include name="www/images/**" />
128
+ <include name="docs/**" />
129
+ -->
130
+ </fileset >
131
+ </zip >
132
+ </target >
133
+
134
+ <target name =" timestamp" >
135
+ <tstamp >
136
+ <format property =" build.time" pattern =" MMMM d, yyyy hh:mm:ss z" />
137
+ </tstamp >
138
+ <echo message =" Beginning build: ${ build.time } " />
139
+ <echo message =" Java home: ${ java.home } " />
140
+ <echo message =" Java version: ${ ant.java.version } " />
141
+ <echo message =" Ant version: ${ ant.version } " />
142
+ <echo message =" JavaC home: ${ jdk.home } " />
143
+ </target >
144
+
145
+ <target name =" jar" depends =" jar-bin" description =" create all jars" />
146
+
147
+ <target name =" clean" depends =" clean.module.laf-plugin" description =" cleanup all" />
148
+
149
+ <target name =" all" depends =" timestamp, init, clean, compile.module.laf-plugin, jar" description =" build all" />
150
+ </project >
0 commit comments