-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·174 lines (164 loc) · 6.21 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!-- $Id: build.xml,v 1.17 2011/01/27 19:38:46 jklett Exp $ -->
<project name="UpperBlip" default="build" basedir=".">
<taskdef name="jsmoothgen" classname="net.charabia.jsmoothgen.ant.JSmoothGen" classpath="jsmooth/lib/jsmoothgen-ant.jar" />
<taskdef name="jarbundler" classpath="jarbundler/lib/jarbundler.jar" classname="net.sourceforge.jarbundler.JarBundler" />
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="lib/ant-contrib.jar"/>
</classpath>
</taskdef>
<property name="appinfo" value="UpperBlip, Copyright (c) 2006 Blip Networks, Inc." />
<property name="src" value="src" />
<property name="build" value="classes" />
<property name="buildnumfile" value="build.number" />
<property name="lib" value="lib" />
<property name="etc" value="etc" />
<property name="icons" value="etc/icons" />
<property name="now" value="" />
<property name="jarfile" value="upper.jar" />
<property name="usenprops" value="com-blipnetworks-upperblip_en_US.properties" />
<property name="blipprops" value="upperblip.properties" />
<property name="bliplibprops" value="bliplib.properties" />
<property name="mailaddressmap" value="javamail.address.map" />
<property name="mailproviders" value="javamail.default.providers" />
<property name="mailprops" value="mail_properties" />
<!--
<property name="wizardprops" value="org-pietschy-wizard.properties" />
-->
<property name="filedropjar" value="filedrop*.jar" />
<property name="commonjars" value="commons-*.jar" />
<property name="xercesjar" value="xerces*.jar" />
<!--
<property name="wizardjar" value="wizard*.jar" />
-->
<property name="launcherjar" value="BrowserLauncher*.jar" />
<property name="bliplibjar" value="bliplib*.jar" />
<property name="activationjar" value="activation.jar" />
<property name="mailjar" value="mail.jar" />
<property name="metainf" value="**/META-INF/" />
<target name="init">
<!-- expand library jars -->
<unjar dest="${build}">
<patternset>
<exclude name="${metainf}" />
</patternset>
<fileset dir="${lib}">
<include name="**/${filedropjar}" />
</fileset>
</unjar>
<unjar dest="${build}">
<patternset>
<exclude name="${metainf}" />
</patternset>
<fileset dir="${lib}">
<include name="**/${commonjars}" />
</fileset>
</unjar>
<!--
<unjar dest="${build}">
<patternset>
<exclude name="${metainf}" />
</patternset>
<fileset dir="${lib}">
<include name="**/${wizardjar}" />
</fileset>
</unjar>
-->
<unjar dest="${build}">
<patternset>
<exclude name="${metainf}" />
</patternset>
<fileset dir="${lib}">
<include name="**/${xercesjar}" />
</fileset>
</unjar>
<unjar dest="${build}">
<patternset>
<exclude name="${metainf}" />
</patternset>
<fileset dir="${lib}">
<include name="**/${launcherjar}" />
</fileset>
</unjar>
<unjar dest="${build}">
<patternset>
<exclude name="${metainf}" />
</patternset>
<fileset dir="${lib}">
<include name="**/${bliplibjar}" />
</fileset>
</unjar>
<unjar dest="${build}">
<patternset>
<exclude name="${metainf}" />
</patternset>
<fileset dir="${lib}">
<include name="**/${activationjar}" />
</fileset>
</unjar>
<unjar dest="${build}">
<patternset>
<exclude name="${metainf}" />
</patternset>
<fileset dir="${lib}">
<include name="**/${mailjar}" />
</fileset>
</unjar>
</target>
<target name="compile" depends="init">
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" debug="on" deprecation="on" target="1.5" source="1.5" />
</target>
<target name="package" depends="compile">
<cvs command="edit build.number"/>
<buildnumber/>
<cvs>
<commandline>
<argument value="commit"/>
<argument value="-m"/>
<argument value="newbuild"/>
<argument value="build.number"/>
</commandline>
</cvs>
<copy file="${buildnumfile}" tofile="${build}/${buildnumfile}" />
<!-- copy icons dir -->
<copy todir="${build}/icons">
<fileset dir="${icons}">
<exclude name="**/*CVS*" />
</fileset>
</copy>
<!-- copy properties files -->
<!--
<copy file="${etc}/help.html" tofile="${build}/help.html" />
-->
<copy file="${etc}/${usenprops}" tofile="${build}/${usenprops}" />
<copy file="${etc}/${blipprops}" tofile="${build}/${blipprops}" />
<copy file="${etc}/${bliplibprops}" tofile="${build}/${bliplibprops}" />
<copy file="${etc}/${mailaddressmap}" tofile="${build}/${mailaddressmap}" />
<copy file="${etc}/${mailproviders}" tofile="${build}/${mailproviders}" />
<copy file="${etc}/${mailprops}" tofile="${build}/${mailprops}" />
<!--
<copy file="${etc}/${wizardprops}" tofile="${build}/${wizardprops}" />
-->
<!-- jar it up -->
<jar destfile="${jarfile}" basedir="${build}" manifest="${etc}/MainClass" />
<!-- Make a Windows .exe -->
<jsmoothgen project="jsmooth/UpperBlipProject.jsmooth" skeletonroot="jsmooth/skeletons"/>
<!-- Make a Mac OS X .app -->
<if>
<os family="mac" />
<then>
<delete dir="app/UpperBlip.app" />
<mkdir dir="app" />
<jarbundler dir="app" name="UpperBlip" mainclass="com.blipnetworks.upperblip.Main" jars="${jarfile}" extraclasspath="$JAVAROOT/upper.jar" version="1.2 (Build ${build.number})" infostring="${appinfo}" jvmversion="1.5+" icon="etc/upperbliposxicon.icns" />
</then>
</if>
</target>
<target name="build" depends="package" />
<target name="clean">
<delete dir="${build}" />
<delete file="jsmooth/UpperBlip.exe" />
</target>
</project>