ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/build.xml
(Generate patch)

Comparing projects/cms/source/server/build.xml (file contents):
Revision 1.1 by tdb, Mon May 7 16:22:54 2001 UTC vs.
Revision 1.5 by tdb, Fri May 18 01:01:11 2001 UTC

# Line 1 | Line 1
1   <!-- build file for server -->
2 < <project name="iscream-server" default="package">
2 > <project name="iscream-server" default="usage">
3    
4    <!--
5      TODO:
6      build/jar util package
6        install target
7        cvs version build (including cleanup)
8 <      javadoc
10 <      sql table generation
11 <      run target
12 <      distclean target
8 >      sql table generation -- to be removed
9    -->
10    
11    <!--
# Line 28 | Line 24
24    
25    <!--
26      =====================================================
27 <      Main targets (shortcuts essentially)
27 >      Usage
28      =====================================================
29    -->
30    
31 <  <target name="idl">
32 <    <antcall target="genidl"/>
31 >  <target name="usage">
32 >    <echo>
33 >    
34 >     These are the targets supported by this ANT build script:
35 >    
36 >     fetch        - fetch all the JAR library files
37 >     idl          - generate java source from IDL
38 >     build        - compile all source code
39 >     package      - generate JAR package and distributions
40 >     packageutil  - generate UTIL JAR package
41 >     javadoc      - generate javadoc API
42 >     clean        - clean all generated files
43 >     distclean    - remove 'fetched' libraries + clean
44 >     run          - run the server
45 >    </echo>
46    </target>
47    
48 <  <target name="build">
49 <    <antcall target="compile"/>
48 >  <target name="help">
49 >    <antcall target="usage"/>
50    </target>
51    
52 <  <target name="package">
53 <    <antcall target="makedist"/>
54 <  </target>
52 >  <!--
53 >    =====================================================
54 >      Fetch required libraries (not in dependency tree)
55 >    =====================================================
56 >  -->
57    
58 <  <target name="clean">
59 <    <antcall target="cleanup"/>
58 >  <!-- this uses static names, which is messy -->
59 >  <!-- fullcleanup target has same problem -->
60 >  <target name="fetch" depends="config">
61 >    <get
62 >      src="${LIBURL}/crimson.jar"
63 >      dest="${LIBDIR}/crimson.jar"
64 >      verbose="true" usetimestamp="true"
65 >    />
66 >    <get
67 >      src="${LIBURL}/idl.jar"
68 >      dest="${LIBDIR}/idl.jar"
69 >      verbose="true" usetimestamp="true"
70 >    />
71 >    <get
72 >      src="${LIBURL}/jacorb.jar"
73 >      dest="${LIBDIR}/jacorb.jar"
74 >      verbose="true" usetimestamp="true"
75 >    />
76 >    <get
77 >      src="${LIBURL}/jaxp.jar"
78 >      dest="${LIBDIR}/jaxp.jar"
79 >      verbose="true" usetimestamp="true"
80 >    />
81 >    <get
82 >      src="${LIBURL}/mm.mysql-2.0.4-bin.jar"
83 >      dest="${LIBDIR}/mm.mysql-2.0.4-bin.jar"
84 >      verbose="true" usetimestamp="true"
85 >    />
86 >    <!-- also get jacorb.properties? -->
87    </target>
88    
89    <!--
# Line 55 | Line 93
93    -->
94    
95    <!-- generate java code from idl files -->
96 <  <target name="genidl" depends="config">
96 >  <target name="idl" depends="config">
97      <echo message="Generating Java source from IDL"/>
98      <java classname="${IDLPARSER}">
99        <arg line="-d ${IDLDIR} ${IDLFILE}"/>
# Line 69 | Line 107
107      =====================================================
108    -->
109  
110 <  <target name="compileidl" depends="genidl">
110 >  <target name="buildidl" depends="idl">
111      <javac
112        srcdir="${IDLDIR}"
113        destdir="${BUILDDIR}"
# Line 81 | Line 119
119      />
120    </target>
121    
122 <  <target name="compile" depends="compileidl">
122 >  <target name="build" depends="buildidl">
123      <javac
124        srcdir="${SOURCEROOT}"
125        destdir="${BUILDDIR}"
# Line 99 | Line 137
137      =====================================================
138    -->
139    
140 <  <target name="makejar" depends="compile">
140 >  <target name="makejar" depends="build">
141      <echo file="${BUILDDIR}/MANIFEST_TMP"
142   >Manifest-Version: 1.0
143   Created-By: www.i-scream.org.uk
# Line 134 | Line 172 | Class-Path: ${MFCLPATH}
172      />
173    </target>
174    
175 <  <target name="makedist" depends="maketardist, makezipdist"/>
175 >  <target name="package" depends="maketardist, makezipdist"/>
176    
177    <!--
178      =====================================================
# Line 142 | Line 180 | Class-Path: ${MFCLPATH}
180      =====================================================
181    -->
182    
183 <  <target name="cleanup" depends="config">
183 >  <target name="clean" depends="config">
184      <delete dir="${IDLDIR}/${ROOTPKG}"/>
185      <delete dir="${BUILDDIR}/${ROOTPKG}"/>
186      <delete file="${BUILDDIR}/${SERVERJAR}"/>
187 +    <delete file="${BUILDDIR}/${UTILJAR}"/>
188      <delete file="${BUILDDIR}/${TARFILE}"/>
189      <delete file="${BUILDDIR}/${TARGZFILE}"/>
190      <delete file="${BUILDDIR}/${ZIPFILE}"/>
191 +    <delete dir="${JDOCDIR}"/>
192 +  </target>
193 +  
194 +  <target name="distclean" depends="clean">
195 +    <!-- this is messy, we should only delete specific jars -->
196 +    <delete>
197 +      <fileset dir="${LIBDIR}" includes="*.jar"/>
198 +    </delete>
199 +  </target>
200 +  
201 +  <!--
202 +    =====================================================
203 +      Running
204 +    =====================================================
205 +  -->
206 +  
207 +  <!-- is this really the best way to do this? no... -->
208 +  <target name="run" depends="config">
209 +    <java classname="${MFMAINCLASS}" dir="${BUILDDIR}" fork="yes">
210 +      <arg line="-f ${RUNFILTERNAME}"/>
211 +      <classpath path="${BUILDDIR}/${SERVERJAR}"/>
212 +    </java>
213 +  </target>
214 +  
215 +  <!--
216 +    =====================================================
217 +      Javadoc
218 +    =====================================================
219 +  -->
220 +  
221 +  <target name="javadoc" depends="config, idl">
222 +    <mkdir dir="${JDOCDIR}"/>
223 +    <!-- link in here requires a live net link! -->
224 +    <javadoc
225 +      packagenames="${JDOCPKGS}"
226 +      destdir="${JDOCDIR}"
227 +      classpath="${JCCLASSPATH}"
228 +      author="true"
229 +      version="true"
230 +      private="true"
231 +      use="true"
232 +      windowtitle="${JDOCTITLE}"
233 +      header="${JDOCHEADER}"
234 +      bottom="${JDOCBOTTOM}"
235 +      link="${JDOCJAPI}"
236 +    >
237 +      <!-- need to do idl generated source too -->
238 +      <sourcepath>
239 +        <pathelement path="${SOURCEROOT}"/>
240 +        <pathelement path="${IDLDIR}"/>
241 +      </sourcepath>
242 +    </javadoc>
243 +  </target>
244 +  
245 +  <!--
246 +    =====================================================
247 +      Util Package
248 +    =====================================================
249 +  -->
250 +  
251 +  <!-- MUST clean here to ensure util package is tidy -->
252 +  <target name="buildutil" depends="config, clean">
253 +    <javac
254 +      srcdir="${SOURCEROOT}"
255 +      destdir="${BUILDDIR}"
256 +      classpath="${JCCLASSPATH}"
257 +      includes="${UTILSRC}"
258 +      debug="${JCDEBUG}"
259 +      optimize="${JCOPTIM}"
260 +      deprecation="${JCDEPRE}"
261 +    />
262 +  </target>
263 +  
264 +  <target name="packageutil" depends="buildutil">
265 +    <jar
266 +      jarfile="${BUILDDIR}/${UTILJAR}"
267 +      basedir="${BUILDDIR}"
268 +      includes="uk/**/*.class"
269 +    />
270    </target>
271    
272   </project>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines