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.7 by tdb, Fri May 18 01:32:15 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: cvs version build (including cleanup)
6  -->
7  
6    <!--
7      =====================================================
8        Initialisation & Configuration
# Line 31 | 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 <     install      - install server (use -Dprefix=/path/ switch)
49 <     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 54 | 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 77 | 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 94 | 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 181 | Line 190 | Class-Path: ${MFCLPATH}
190    <target name="clean" depends="config">
191      <delete dir="${IDLDIR}/${ROOTPKG}"/>
192      <delete dir="${BUILDDIR}/${ROOTPKG}"/>
184    <delete file="${BUILDDIR}/${SERVERJAR}"/>
185    <delete file="${BUILDDIR}/${UTILJAR}"/>
186    <delete file="${BUILDDIR}/${TARFILE}"/>
187    <delete file="${BUILDDIR}/${TARGZFILE}"/>
188    <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 293 | Line 307 | Class-Path: ${MFCLPATH}
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