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.5 by tdb, Fri May 18 01:01:11 2001 UTC vs.
Revision 1.10 by tdb, Tue May 29 17:02:24 2001 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      sql table generation -- to be removed
9  -->
10  
6    <!--
7      =====================================================
8        Initialisation & Configuration
# Line 34 | 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 56 | 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 183 | Line 190 | Class-Path: ${MFCLPATH}
190    <target name="clean" depends="config">
191      <delete dir="${IDLDIR}/${ROOTPKG}"/>
192      <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}"/>
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 267 | 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