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.6 by tdb, Fri May 18 01:02:07 2001 UTC vs.
Revision 1.12 by tdb, Sat Feb 2 19:40:38 2002 UTC

# Line 1 | Line 1
1 < <!-- build file for server -->
1 > <!-- build file for i-scream CMS server -->
2 > <!-- $Id$ -->
3 >
4   <project name="iscream-server" default="usage">
5    
4  <!--
5    TODO:
6      install target
7      cvs version build (including cleanup)
8  -->
9  
6    <!--
7      =====================================================
8        Initialisation & Configuration
# Line 33 | Line 29
29       These are the targets supported by this ANT build script:
30      
31       fetch        - fetch all the JAR library files
32 +    
33       idl          - generate java source from IDL
34       build        - compile all source code
35       package      - generate JAR package and distributions
36       packageutil  - generate UTIL JAR package
37 +    
38 +     cvsbuild     - build from cvs tag
39 +                      use -Drev=TAG switch to specify cvs tag
40 +    
41       javadoc      - generate javadoc API
42 +     install      - install server
43 +                      use -Dprefix=/path/ switch to specify dest
44 +     run          - run the server
45 +    
46       clean        - clean all generated files
47       distclean    - remove 'fetched' libraries + clean
48 <     run          - run the server
48 >    
49 >     Recommend to run the following target order:
50 >    
51 >     fetch packageutil package javadoc install
52      </echo>
53    </target>
54    
# Line 55 | Line 63
63    -->
64    
65    <!-- this uses static names, which is messy -->
66 <  <!-- fullcleanup target has same problem -->
66 >  <!-- distclean target has same problem -->
67    <target name="fetch" depends="config">
68      <get
69        src="${LIBURL}/crimson.jar"
# Line 78 | Line 86
86        verbose="true" usetimestamp="true"
87      />
88      <get
89 <      src="${LIBURL}/mm.mysql-2.0.4-bin.jar"
90 <      dest="${LIBDIR}/mm.mysql-2.0.4-bin.jar"
89 >      src="${LIBURL}/mm.mysql-2.0.11-bin.jar"
90 >      dest="${LIBDIR}/mm.mysql-2.0.11-bin.jar"
91        verbose="true" usetimestamp="true"
92      />
93      <!-- also get jacorb.properties? -->
# Line 95 | Line 103
103    <target name="idl" depends="config">
104      <echo message="Generating Java source from IDL"/>
105      <java classname="${IDLPARSER}">
106 <      <arg line="-d ${IDLDIR} ${IDLFILE}"/>
106 >      <arg line="-sloppy_names -d ${IDLDIR} ${IDLFILE}"/>
107        <classpath path="${IDLPARSERJAR}"/>
108      </java>
109    </target>
# Line 182 | Line 190 | Class-Path: ${MFCLPATH}
190    <target name="clean" depends="config">
191      <delete dir="${IDLDIR}/${ROOTPKG}"/>
192      <delete dir="${BUILDDIR}/${ROOTPKG}"/>
185    <delete file="${BUILDDIR}/${SERVERJAR}"/>
186    <delete file="${BUILDDIR}/${UTILJAR}"/>
187    <delete file="${BUILDDIR}/${TARFILE}"/>
188    <delete file="${BUILDDIR}/${TARGZFILE}"/>
189    <delete file="${BUILDDIR}/${ZIPFILE}"/>
193      <delete dir="${JDOCDIR}"/>
194 +    <delete dir="${CVSBUILDTEMP}"/>
195 +    <delete>
196 +      <fileset dir="${BUILDDIR}">
197 +        <include name="${SERVERJAR}"/>
198 +        <include name="${UTILJAR}"/>
199 +        <include name="${ARCNAME}*${TAREXT}"/>
200 +        <include name="${ARCNAME}*${TARGZEXT}"/>
201 +        <include name="${ARCNAME}*${ZIPEXT}"/>
202 +      </fileset>
203 +    </delete>
204    </target>
205    
206    <target name="distclean" depends="clean">
# Line 266 | Line 279 | Class-Path: ${MFCLPATH}
279        basedir="${BUILDDIR}"
280        includes="uk/**/*.class"
281      />
282 +  </target>
283 +  
284 +  <!--
285 +    =====================================================
286 +      Install
287 +    =====================================================
288 +  -->
289 +  
290 +  <target name="install" depends="config, makejar">
291 +    <mkdir dir="${INSTALLDEST}"/>
292 +    <mkdir dir="${INSTALLDEST}/etc"/>
293 +    <mkdir dir="${INSTALLDEST}/lib"/>
294 +    <copy file="${BUILDDIR}/${SERVERJAR}" todir="${INSTALLDEST}"/>
295 +    <copy file="${BUILDDIR}/run.sh" todir="${INSTALLDEST}"/>
296 +    <copy file="${BUILDDIR}/run.bat" todir="${INSTALLDEST}"/>
297 +    <copy todir="${INSTALLDEST}/lib" >
298 +      <fileset dir="${LIBDIR}">
299 +        <include name="**/*.jar"/>
300 +        <exclude name="**/CVS/*"/>
301 +      </fileset>
302 +    </copy>
303 +    <copy todir="${INSTALLDEST}/etc" >
304 +      <fileset dir="${BUILDDIR}/etc">
305 +        <include name="**/*"/>
306 +        <exclude name="**/CVS/*"/>
307 +      </fileset>
308 +    </copy>
309 +    <copy file="${BUILDDIR}/README" todir="${INSTALLDEST}"/>
310 +  </target>
311 +  
312 +  <!--
313 +    =====================================================
314 +      CVS Build
315 +    =====================================================
316 +  -->
317 +  
318 +  <target name="cvsbuild" depends="config">
319 +    <mkdir dir="${CVSBUILDTEMP}"/>
320 +    <cvs
321 +      cvsRoot="${CVSROOT}"
322 +      command="export -d ${CVSBUILDTEMP}"
323 +      tag="${REVISION}"
324 +      package="${CVSMODULE}"
325 +    />
326 +    <!-- it would be IDEAL to use the ant target here.
327 +         BUT, it would need to use it's OWN properties.
328 +         exec is a poor substitute.
329 +         no idea about windows compatibility. -->
330 +    <exec executable="ant" dir="${CVSBUILDTEMP}">
331 +      <arg value="fetch"/>
332 +    </exec>
333 +    <exec executable="ant" dir="${CVSBUILDTEMP}">
334 +      <arg value="packageutil"/>
335 +    </exec>
336 +    <exec executable="ant" dir="${CVSBUILDTEMP}">
337 +      <arg value="package"/>
338 +    </exec>
339 +    <copy file="${CVSBUILDTEMP}/build/${TARGZFILE}"
340 +          tofile="${BUILDDIR}/${ARCNAME}-${REVISION}${TARGZEXT}"/>
341 +    <copy file="${CVSBUILDTEMP}/build/${ZIPFILE}"
342 +          tofile="${BUILDDIR}/${ARCNAME}-${REVISION}${ZIPEXT}"/>
343 +    <!-- should we be overwriting any old util jar here? -->
344 +    <copy file="${CVSBUILDTEMP}/build/${UTILJAR}" todir="${BUILDDIR}"/>
345    </target>
346    
347   </project>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines