Subversion Repositories DevTools

Rev

Rev 2000 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2000 Rev 2012
Line -... Line 1...
-
 
1
<?xml version="1.0"?>
-
 
2
<!--
1
<project name="cpptasks" default="build" basedir=".">
3
Copyright 2001-2006 The Ant-Contrib project
2
 
4
 
3
	<property name="env" environment="env" value="not used"/>
5
   Licensed under the Apache License, Version 2.0 (the "License");
-
 
6
   you may not use this file except in compliance with the License.
-
 
7
   You may obtain a copy of the License at
4
 
8
 
5
	<import file="auto.xml"/>
9
       http://www.apache.org/licenses/LICENSE-2.0
6
 
10
 
-
 
11
   Unless required by applicable law or agreed to in writing, software
7
	<!-- Use the rules defined in the 'build' package -->
12
   distributed under the License is distributed on an "AS IS" BASIS,
-
 
13
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-
 
14
   See the License for the specific language governing permissions and
8
	<import file="build.xml"/>
15
   limitations under the License.
9
 
16
 
-
 
17
-->
-
 
18
<project name="cpptasks" basedir=".">
-
 
19
 
-
 
20
	<property name="env" environment="env" value="not used" />
-
 
21
 
-
 
22
	<import file="auto.xml" optional="true" />
-
 
23
	<import file="${ant.project.name}depends.xml" />
-
 
24
	<import file="${env.GBE_DPKG}/ant-using/${ant-using}/ant-using.xml" />
-
 
25
 
-
 
26
	<property name="Name" value="cpptasks"/>
-
 
27
	<property name="name" value="cpptasks"/>
-
 
28
	<property name="version" value="${packageversion}"/>
-
 
29
 
-
 
30
	<property name="debug" value="true" />
-
 
31
	<property name="deprecation" value="false" />
-
 
32
	<property name="optimize" value="true" />
-
 
33
	<property name="junit.fork" value="false" />
-
 
34
	<property name="ant-src.dir" location="/ant-src/ant"/>
-
 
35
	<property name="xdocs.dir" location="${ant-src.dir}/proposal/xdocs"/>
-
 
36
  	<property name="javac.source" value="1.3"/>
-
 
37
  	<property name="javac.target" value="1.1"/>
-
 
38
 
-
 
39
	<!--
-
 
40
	   ===================================================================
-
 
41
		 Set the properties related to the source tree
-
 
42
	   ===================================================================
-
 
43
	-->
-
 
44
	<property name="src.dir" value="src"/>
-
 
45
	<property name="java.dir" value="src"/>
-
 
46
	<property name="tests.java.dir" value="test/junit"/>
-
 
47
 
-
 
48
	<!--
-
 
49
	  ===================================================================
-
 
50
	  Set the properties for the build area
-
 
51
	  ===================================================================
-
 
52
	-->
-
 
53
	<property name="build.dir" value="build"/>
-
 
54
	<property name="build.classes" value="${build.dir}/classes"/>
-
 
55
	<property name="tests.build.classes" value="${build.dir}/tests"/>
-
 
56
	<property name="tests.build.lib" value="${build.dir}/lib"/>
-
 
57
	<property name="build.lib" value="${build.dir}/lib"/>
-
 
58
	<property name="build.javadocs" value="${build.dir}/javadocs"/>
-
 
59
	<property name="lib.dir" value="lib"/>
-
 
60
 
-
 
61
 	<!--
-
 
62
       ===================================================================
-
 
63
         Set up properties for the distribution area
-
 
64
       ===================================================================
-
 
65
  	-->
-
 
66
  	<property name="dist.name" value="${name}-${version}"/>
-
 
67
  	<property name="dist.base" value="dist"/>
-
 
68
  	<property name="dist.dir" value="${dist.base}/${dist.name}"/>
-
 
69
  	<property name="dist.javadocs" value="${dist.dir}/docs/manual/api"/>
-
 
70
 
-
 
71
	<!--
-
 
72
       ===================================================================
-
 
73
         Prepare the build
-
 
74
       ===================================================================
-
 
75
  	-->
-
 
76
  	<target name="prepare">
-
 
77
    	<tstamp>
-
 
78
      	<format property="year" pattern="yyyy" />
-
 
79
    	</tstamp>
-
 
80
    	<filterset id="build.filters">
-
 
81
      		<filter token="VERSION" value="${version}" />
-
 
82
      		<filter token="DATE" value="${TODAY}" />
-
 
83
      		<filter token="TIME" value="${TSTAMP}" />
-
 
84
    	</filterset>
-
 
85
    	<available property="junit-available" classname="junit.framework.TestCase"/>
-
 
86
  	</target>
-
 
87
 
-
 
88
 
-
 
89
  	<!--
-
 
90
       ===================================================================
-
 
91
         Build the code
-
 
92
       ===================================================================
-
 
93
  	-->
-
 
94
  	<target name="build"
-
 
95
          depends="prepare"
-
 
96
          description="--> compiles the source code">
-
 
97
  		
-
 
98
    	<mkdir dir="${build.classes}"/>
-
 
99
  		
-
 
100
    	<javac srcdir="${java.dir}"
-
 
101
           destdir="${build.classes}"
-
 
102
           debug="${debug}"
-
 
103
           target="${javac.target}"
-
 
104
           source="${javac.source}"
-
 
105
           deprecation="${deprecation}"
-
 
106
           optimize="${optimize}" >
-
 
107
    		
-
 
108
    		<classpath>
-
 
109
				<path location="${ant.home}/lib/ant.jar" />
-
 
110
    			<path location="${ant.home}/lib/xercesImpl.jar" />
-
 
111
    		</classpath>
-
 
112
    	</javac>
-
 
113
  	</target>
-
 
114
 
-
 
115
  	<!--
-
 
116
       ===================================================================
-
 
117
         Create the jar
-
 
118
       ===================================================================
-
 
119
  	-->
-
 
120
  	<target name="jars"
-
 
121
          depends="build"
-
 
122
          description="--> creates the jar">
-
 
123
  		
-
 
124
    	<mkdir dir="${build.lib}"/>
-
 
125
    	<jar jarfile="${build.lib}/${name}.jar" manifest="${src.dir}/cpptasks.mf">
-
 
126
        	<fileset dir="." includes="LICENSE NOTICE"/>
-
 
127
         	<fileset dir="${build.classes}"/>
-
 
128
            <fileset dir="${src.dir}" includes="cpptasks.tasks,cpptasks.types,net/sf/antcontrib/cpptasks/antlib.xml"/>
-
 
129
    	</jar>
-
 
130
  	</target>
-
 
131
 
-
 
132
    <target name="junit-warning" depends="prepare" unless="junit-available">
-
 
133
        <fail message="junit.jar is required in Ant's lib directory to build this target.  Download from http://www.junit.org"/>
-
 
134
    </target>
-
 
135
 
-
 
136
 
-
 
137
  	<target name="build-tests" depends="jars,junit-warning">
-
 
138
    	<mkdir dir="${tests.build.classes}"/>
-
 
139
    	<mkdir dir="${tests.build.lib}"/>
-
 
140
  		
-
 
141
    	<javac srcdir="${tests.java.dir}"
-
 
142
           destdir="${tests.build.classes}"
-
 
143
           debug="true"
-
 
144
           deprecation="false"
-
 
145
           target="${javac.target}"
-
 
146
           source="${javac.source}"
-
 
147
           optimize="false"
-
 
148
           classpath="${build.lib}/${name}.jar;${java.class.path}"/>
-
 
149
  		
-
 
150
    	<jar jarfile="${tests.build.lib}/${name}_test.jar">
-
 
151
            <fileset dir="." includes="NOTICE LICENSE"/>
-
 
152
            <fileset dir="${tests.build.classes}"/>
-
 
153
    	</jar>
-
 
154
  	</target>
-
 
155
 
-
 
156
  	<target name="run-tests"  depends="build-tests" description="Run tests">
-
 
157
        <junit printsummary="false"
-
 
158
                fork="true"
-
 
159
                dir="${tests.java.dir}">
-
 
160
        	
-
 
161
            <classpath>
-
 
162
                <pathelement location="${tests.build.lib}/${name}_test.jar" />
-
 
163
                <pathelement location="${build.lib}/${name}.jar" />
-
 
164
            </classpath>
-
 
165
 
-
 
166
            <test name="net.sf.antcontrib.cpptasks.TestAllClasses" outfile="result">
-
 
167
                <formatter type="xml" />
-
 
168
                <formatter type="brief" usefile="false" />
-
 
169
            </test>
-
 
170
 
-
 
171
        </junit>
-
 
172
  	</target>
-
 
173
 
-
 
174
	
-
 
175
  	<target name="run-devstudio-tests"  depends="build-tests">
-
 
176
        <junit printsummary="true" haltonfailure="true">
-
 
177
            <classpath>
-
 
178
                <pathelement location="${tests.build.lib}/${name}_test.jar" />
-
 
179
                <pathelement location="${build.lib}/${name}.jar" />
-
 
180
            </classpath>
-
 
181
 
-
 
182
            <test name="net.sf.antcontrib.cpptasks.devstudio.TestInstalledDevStudio"
-
 
183
                haltonfailure="true" outfile="result">
-
 
184
                <formatter type="xml" />
-
 
185
                        <formatter type="brief" usefile="false" />
-
 
186
            </test>
-
 
187
 
-
 
188
        </junit>
-
 
189
  	</target>
-
 
190
	
-
 
191
  	<!--
-
 
192
       ===================================================================
-
 
193
         Create the jar and javadocs
-
 
194
       ===================================================================
-
 
195
  	-->
-
 
196
  	<target name="gump" depends="jars, javadocs"
-
 
197
          description="--> creates the jar and javadocs" />
-
 
198
 
-
 
199
 	<!--
-
 
200
       ===================================================================
-
 
201
         Create the complete distribution
-
 
202
       ===================================================================
-
 
203
  	-->
-
 
204
  	<target name="dist" depends="jars, javadocs, xdocs" description="--> creates a complete distribution">
-
 
205
    
-
 
206
  		<delete dir="${dist.dir}"/>
-
 
207
  		
-
 
208
    	<mkdir dir="${dist.dir}/src"/>
-
 
209
    		
-
 
210
    	<copy todir="${dist.dir}">
-
 
211
      		<fileset dir="${build.lib}" includes="cpptasks.jar"/>
-
 
212
      		<fileset dir=".">
-
 
213
        		<include name="build.xml"/>
-
 
214
      		</fileset>
-
 
215
    	</copy>
-
 
216
  		
-
 
217
    	<copy todir="${dist.dir}/src">
-
 
218
        	<fileset dir="${src.dir}">
-
 
219
            	<include name="net/**/*.java"/>
-
 
220
             	<include name="cpptasks.types"/>
-
 
221
             	<include name="cpptasks.tasks"/>
-
 
222
             	<include name="cpptasks.mf"/>
-
 
223
        	</fileset>
-
 
224
    	</copy>
-
 
225
  			
-
 
226
    	<mkdir dir="${dist.dir}/samples"/>
-
 
227
  		
-
 
228
    	<copy todir="${dist.dir}/samples">
-
 
229
        	<fileset dir="samples" includes="*.ant"/>
-
 
230
    	</copy>
-
 
231
  		
-
 
232
    	<mkdir dir="${dist.javadocs}"/>
-
 
233
  		
-
 
234
    	<copy todir="${dist.javadocs}" overwrite="true">
-
 
235
      		<fileset dir="${build.javadocs}"/>
-
 
236
    	</copy>
-
 
237
 
-
 
238
    	<mkdir dir="${dist.dir}/docs"/>
-
 
239
  		
-
 
240
    	<copy todir="${dist.dir}/docs" overwrite="true">
-
 
241
      		<fileset dir="${build.dir}/xdocs/docs/manual/other"/>
-
 
242
    	</copy>
-
 
243
 
-
 
244
    	<copy todir="${dist.dir}" overwrite="true">
-
 
245
            <fileset dir="." includes="LICENSE NOTICE"/>
-
 
246
    	</copy>
-
 
247
 
-
 
248
    	<delete file="${dist.base}/${dist.name}.zip"/>
-
 
249
  		
-
 
250
    	<zip zipfile="${dist.base}/${dist.name}.zip">
-
 
251
        	<fileset dir="${dist.base}" includes="${dist.name}/**"/>
-
 
252
    	</zip>
-
 
253
  		
-
 
254
    	<delete file="${dist.base}/${dist.name}.tar.gz"/>
-
 
255
  		
-
 
256
    	<tar tarfile="${dist.base}/${dist.name}.tar.gz" compression="gzip">
-
 
257
        	<tarfileset dir="${dist.base}" includes="${dist.name}/**"/>
-
 
258
    	</tar>
-
 
259
  	</target>
-
 
260
 
-
 
261
  	<!--
-
 
262
       ===================================================================
-
 
263
         Cleans up build and distribution directories
-
 
264
       ===================================================================
-
 
265
  	-->
-
 
266
  	<target name="clean"
-
 
267
          description="--> cleans up build and dist directories">
-
 
268
  		
-
 
269
    	<delete dir="${build.dir}" />
-
 
270
    	<delete dir="${dist.base}" />
-
 
271
    	<delete dir="${dist.dir}" />
-
 
272
    	<delete><fileset dir="." includes="cpptasks.db*"/></delete>
-
 
273
  	</target>
-
 
274
 
-
 
275
  	<!--
-
 
276
       ===================================================================
-
 
277
         Creates the API documentation
-
 
278
       ===================================================================
-
 
279
  	-->
-
 
280
  	<target name="javadoc_check">
-
 
281
    	<uptodate property="javadoc.notrequired"
-
 
282
              targetfile="${build.javadocs}/packages.html" >
-
 
283
        	<srcfiles dir= "${java.dir}" includes="**/*.java"/>
-
 
284
    	</uptodate>
-
 
285
  	</target>
-
 
286
 
-
 
287
  	<target name="javadocs" depends="prepare, javadoc_check"
-
 
288
          unless="javadoc.notrequired"
-
 
289
          description="--> creates the API documentation">
-
 
290
  		
-
 
291
    	<mkdir dir="${build.javadocs}"/>
-
 
292
    	<javadoc packagenames="net.sf.antcontrib.*"
-
 
293
             useexternalfile="yes"
-
 
294
             sourcepath="${java.dir}"
-
 
295
             destdir="${build.javadocs}"
-
 
296
             author="true"
-
 
297
             version="true"
-
 
298
             windowtitle="${Name} API"
-
 
299
             doctitle="${Name}">
-
 
300
      	<group title="CCTasks" packages="net.sf.antcontrib.cpptasks" />
-
 
301
 
-
 
302
      	<bottom>Copyright &#169; 2001-${year} Ant-Contrib project. All Rights Reserved.</bottom>
-
 
303
    	</javadoc>
-
 
304
  	</target>
-
 
305
 
-
 
306
 
-
 
307
  	<target name="detab" depends="prepare" description="detabs java files">
-
 
308
     	<replace token="&#9;" value="    " dir="src" includes="**/*.java"/>
-
 
309
      	<replace token="&#9;" value="    " dir="test" includes="**/*.java"/>
-
 
310
 
-
 
311
  	</target>
-
 
312
 
-
 
313
  	<target name="checkstyle-all" depends="prepare" description="Checks style of all source">
-
 
314
    	<!--   requires checkstyle-all-2.1.jar or later in lib directory
-
 
315
                download from http://checkstyle.sourceforge.net  -->
-
 
316
    	<taskdef resource="checkstyletask.properties"/>
-
 
317
 
-
 
318
    	<checkstyle config="sun_checks.xml">
-
 
319
        	<fileset dir="${java.dir}" includes="**/*.java"/>
-
 
320
    	</checkstyle>
-
 
321
  	</target>
-
 
322
 
-
 
323
  	<target name="checkstyle" depends="prepare" description="Checks style of cleaned up source">
-
 
324
    	<!--   requires checkstyle-all-3.3.jar or later in lib directory
-
 
325
                download from http://checkstyle.sourceforge.net  -->
-
 
326
   	 	<taskdef resource="checkstyletask.properties"/>
-
 
327
 
-
 
328
        <!-- only includes files that pass Sun checks   -->
-
 
329
    <checkstyle config="sun_checks.xml">
-
 
330
        <fileset dir="${java.dir}/net/sf/antcontrib/cpptasks/parser"
-
 
331
                  includes="CaseInsensitiveLetterState.java
-
 
332
                            FortranParser.java
-
 
333
                          LetterState.java
-
 
334
                          WhitespaceOrLetterState.java
-
 
335
                          WhitespaceOrCaseInsensitiveLetterState.java"/>
-
 
336
        <fileset dir="${java.dir}">
-
 
337
                <include name="net/sf/antcontrib/cpptasks/types/VersionInfo.java"/>
-
 
338
                <include name="net/sf/antcontrib/cpptasks/Distributer*.java"/>
-
 
339
                <include name="net/sf/antcontrib/cpptasks/TargetDef.java"/>
-
 
340
                <include name="net/sf/antcontrib/cpptasks/CPUEnum.java"/>
-
 
341
                <include name="net/sf/antcontrib/cpptasks/ArchEnum.java"/>
-
 
342
                <include name="net/sf/antcontrib/cpptasks/OSFamilyEnum.java"/>
-
 
343
                <include name="net/sf/antcontrib/cpptasks/OptimizationEnum.java"/>
-
 
344
        	    <include name="net/sf/antcontrib/cpptasks/WarningLevelEnum.java"/>
-
 
345
        	    <include name="net/sf/antcontrib/cpptasks/trolltech/*.java"/>
-
 
346
        	    <include name="net/sf/antcontrib/cpptasks/mozilla/*.java"/>
-
 
347
        	    <include name="net/sf/antcontrib/cpptasks/openwatcom/*.java"/>
-
 
348
        	    <include name="net/sf/antcontrib/cpptasks/platforms/*.java"/>
-
 
349
        	    <include name="net/sf/antcontrib/cpptasks/platforms/*.java"/>
-
 
350
        	    <include name="net/sf/antcontrib/cpptasks/ide/*.java"/>
-
 
351
        	    <include name="net/sf/antcontrib/cpptasks/borland/CBuilderXProjectWriter.java"/>
-
 
352
        	    <include name="net/sf/antcontrib/cpptasks/devstudio/DevStudioProjectWriter.java"/>
-
 
353
        	    <include name="net/sf/antcontrib/cpptasks/devstudio/VisualStudioNETProjectWriter.java"/>
-
 
354
        </fileset>
-
 
355
            <fileset dir="${tests.java.dir}">
-
 
356
                    <include name="net/sf/antcontrib/cpptasks/parser/TestFortranParser.java"/>
-
 
357
                    <include name="net/sf/antcontrib/cpptasks/MockFileCollector.java"/>
-
 
358
                    <include name="net/sf/antcontrib/cpptasks/TestProcessorDef.java"/>
-
 
359
                    <include name="net/sf/antcontrib/cpptasks/TestCompilerDef.java"/>
-
 
360
                    <include name="net/sf/antcontrib/cpptasks/TestLinkerDef.java"/>
-
 
361
                    <include name="net/sf/antcontrib/cpptasks/types/TestLibrarySet.java"/>
-
 
362
                    <include name="net/sf/antcontrib/cpptasks/types/TestLibrarySet.java"/>
-
 
363
            	    <include name="net/sf/antcontrib/cpptasks/TestCCTask.java"/>
-
 
364
        	    <include name="net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectParser.java"/>
-
 
365
        	    <include name="net/sf/antcontrib/cpptasks/mozilla/*.java"/>
-
 
366
        	    <include name="net/sf/antcontrib/cpptasks/openwatcom/*.java"/>
-
 
367
            	<include name="net/sf/antcontrib/cpptasks/platforms/*.java"/>
-
 
368
            </fileset>
-
 
369
    </checkstyle>
-
 
370
  </target>
-
 
371
 
-
 
372
  <target name="xdocs-init">
-
 
373
        <available property="cctask-available" classname="net.sf.antcontrib.cpptasks.CCTask"/>
-
 
374
        <available property="xdocs.build-available" file="${xdocs.dir}/build.xml"/>
-
 
375
  </target>
-
 
376
 
-
 
377
  <target name="xdocs-cctask-warning" depends="xdocs-init" unless="cctask-available">
-
 
378
        <fail>cpptasks.jar must be in the classpath, SET CLASSPATH=${build.dir}\lib\cpptasks.jar before running ant.</fail>
-
 
379
  </target>
-
 
380
 
-
 
381
  <target name="xdocs-build-warning" depends="xdocs-init" unless="xdocs.build-available">
-
 
382
        <fail message="Could not locate &quot;${xdocs.dir}/build.xml&quot;, specify value for xdocs.dir that points to Ant's proposal/xdocs directory."/>
-
 
383
  </target>
-
 
384
 
-
 
385
  <!--
-
 
386
        cpptasks.jar must be on path
-
 
387
 
-
 
388
  -->
-
 
389
  <target name="xdocs" depends="xdocs-cctask-warning,xdocs-build-warning">
-
 
390
 
-
 
391
        <condition property="shellcmd" value="cmd">
-
 
392
            <os family="windows"/>
-
 
393
         </condition>
-
 
394
         <property name="shellcmd" value="sh"/>
-
 
395
 
-
 
396
        <mkdir dir="${build.dir}/xdocs"/>
-
 
397
        <ant dir="${xdocs.dir}" target="gen" inheritAll="false">
-
 
398
            <property name="src.dir" location="${src.dir}/net/sf/antcontrib/cpptasks"/>
-
 
399
            <property name="src.root" location="${src.dir}"/>
-
 
400
            <property name="build.dir" location="${build.dir}/xdocs"/>
-
 
401
        </ant>
-
 
402
 
-
 
403
        <!--   the docs task doesn't like running here
-
 
404
                  will run it in Ant's xdoc build directory
-
 
405
                  and copy results back   -->
-
 
406
        <delete dir="${xdocs.dir}/build"/>
-
 
407
        <copy todir="${xdocs.dir}/build">
-
 
408
            <fileset dir="${build.dir}/xdocs" includes="**/*.xml"/>
-
 
409
        </copy>
-
 
410
        <!--
-
 
411
        <ant dir="${xdocs.dir}" target="docs" inheritAll="false">
-
 
412
            <property name="src.dir" location="${src.dir}/net/sf/antcontrib/cpptasks"/>
-
 
413
            <property name="src.root" location="${src.dir}"/>
-
 
414
            <property name="build.dir" location="${build.dir}/xdocs"/>
-
 
415
        </ant>
-
 
416
        -->
-
 
417
        <exec dir="${xdocs.dir}" executable="${shellcmd}">
-
 
418
            <arg value="ant"/>
-
 
419
            <arg value="docs"/>
-
 
420
        </exec>
-
 
421
        <copy todir="${build.dir}/xdocs">
-
 
422
            <fileset dir="${xdocs.dir}/build" includes="**/*.html"/>
-
 
423
        </copy>
-
 
424
 
-
 
425
        <!--  Replace Apache Software copyright notice with Ant-Contrib  -->
10
</project>
426
        <property name="nontask.html" value="compilerarg.html,linkerarg.html,compiler.html,fileset.html,includepath.html,sysincludepath.html,define.html,undefine.html,defineset.html,libset.html,syslibset.html,linker.html,precompile.html,except.html,versioninfo.html,target.html,distributer.html,map.html,project.html"/>
-
 
427
        <property name="all.html" value="cc.html,${nontask.html}"/>
-
 
428
        <property name="doc.dir" value="${build.dir}/xdocs/docs/manual/other"/>
-
 
429
 
-
 
430
        <move file="${doc.dir}/compilerargument.html" tofile="${doc.dir}/compilerarg.html"/>
-
 
431
        <move file="${doc.dir}/linkerargument.html" tofile="${doc.dir}/linkerarg.html"/>
-
 
432
        <move file="${doc.dir}/compilerdef.html" tofile="${doc.dir}/compiler.html"/>
-
 
433
        <move file="${doc.dir}/targetdef.html" tofile="${doc.dir}/target.html"/>
-
 
434
        <move file="${doc.dir}/distributerdef.html" tofile="${doc.dir}/distributer.html"/>
-
 
435
        <move file="${doc.dir}/conditionalfileset.html" tofile="${doc.dir}/fileset.html"/>
-
 
436
        <move file="${doc.dir}/defineargument.html" tofile="${doc.dir}/define.html"/>
-
 
437
        <move file="${doc.dir}/undefineargument.html" tofile="${doc.dir}/undefine.html"/>
-
 
438
        <move file="${doc.dir}/libraryset.html" tofile="${doc.dir}/libset.html"/>
-
 
439
        <move file="${doc.dir}/systemlibraryset.html" tofile="${doc.dir}/syslibset.html"/>
-
 
440
        <move file="${doc.dir}/linkerdef.html" tofile="${doc.dir}/linker.html"/>
-
 
441
        <move file="${doc.dir}/precompiledef.html" tofile="${doc.dir}/precompile.html"/>
-
 
442
        <move file="${doc.dir}/systemincludepath.html" tofile="${doc.dir}/sysincludepath.html"/>
-
 
443
        <move file="${doc.dir}/precompileexceptdef.html" tofile="${doc.dir}/except.html"/>
-
 
444
        <move file="${doc.dir}/distributermap.html" tofile="${doc.dir}/map.html"/>
-
 
445
        <move file="${doc.dir}/projectdef.html" tofile="${doc.dir}/project.html"/>
-
 
446
 
-
 
447
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
448
            includes="${all.html}"
-
 
449
            token="2000-2003, Apache Software Foundation"
-
 
450
            value="2001-2005, Ant-Contrib Project"/>
-
 
451
 
-
 
452
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
453
            includes="${all.html}"
-
 
454
            token="http://jakarta.apache.org/ant/"
-
 
455
            value="http://sourceforge.net"/>
-
 
456
 
-
 
457
 
-
 
458
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
459
            includes="${all.html}"
-
 
460
            token='../../images/ant_logo_large.gif'
-
 
461
            value='http://sourceforge.net/sflogo.php?group_id=36177&amp;amp;type=4'/>
-
 
462
 
-
 
463
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
464
            includes="${all.html}"
-
 
465
            token='alt="Apache Ant"'
-
 
466
            value='alt="SourceForge logo"'/>
-
 
467
 
-
 
468
 
-
 
469
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
470
            includes="${all.html}"
-
 
471
            token="&lt;strong&gt;compilerarg&lt;/strong&gt; (net.sf.antcontrib.cpptasks.types.CompilerArgument)"
-
 
472
            value='&lt;strong&gt;&lt;a href="compilerarg.html" style="color: white"&gt;compilerarg&lt;/a&gt;&lt;/strong&gt;'/>
-
 
473
 
-
 
474
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
475
            includes="${all.html}"
-
 
476
            token="&lt;strong&gt;linkerarg&lt;/strong&gt; (net.sf.antcontrib.cpptasks.types.LinkerArgument)"
-
 
477
            value='&lt;strong&gt;&lt;a href="linkerarg.html" style="color: white"&gt;linkerarg&lt;/a&gt;&lt;/strong&gt;'/>
-
 
478
 
-
 
479
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
480
            includes="${all.html}"
-
 
481
            token="&lt;strong&gt;compiler&lt;/strong&gt; (net.sf.antcontrib.cpptasks.CompilerDef)"
-
 
482
            value='&lt;strong&gt;&lt;a href="compiler.html" style="color: white"&gt;compiler&lt;/a&gt;&lt;/strong&gt;'/>
-
 
483
 
-
 
484
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
485
            includes="${all.html}"
-
 
486
            token="&lt;strong&gt;linker&lt;/strong&gt; (net.sf.antcontrib.cpptasks.LinkerDef)"
-
 
487
            value='&lt;strong&gt;&lt;a href="linker.html" style="color: white"&gt;linker&lt;/a&gt;&lt;/strong&gt;'/>
-
 
488
 
-
 
489
 
-
 
490
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
491
            includes="${all.html}"
-
 
492
            token="&lt;strong&gt;defineset&lt;/strong&gt; (net.sf.antcontrib.cpptasks.types.DefineSet)"
-
 
493
            value='&lt;strong&gt;&lt;a href="defineset.html" style="color: white"&gt;defineset&lt;/a&gt;&lt;/strong&gt;'/>
-
 
494
 
-
 
495
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
496
            includes="${all.html}"
-
 
497
            token="&lt;strong&gt;fileset&lt;/strong&gt; (net.sf.antcontrib.cpptasks.types.ConditionalFileSet)"
-
 
498
            value='&lt;strong&gt;&lt;a href="fileset.html" style="color: white"&gt;fileset&lt;/a&gt;&lt;/strong&gt;'/>
11
 
499
 
-
 
500
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
501
            includes="${all.html}"
-
 
502
            token="&lt;strong&gt;libset&lt;/strong&gt; (net.sf.antcontrib.cpptasks.types.LibrarySet)"
-
 
503
            value='&lt;strong&gt;&lt;a href="libset.html" style="color: white"&gt;libset&lt;/a&gt;&lt;/strong&gt;'/>
12
 
504
 
-
 
505
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
506
            includes="${all.html}"
-
 
507
            token="&lt;strong&gt;syslibset&lt;/strong&gt; (net.sf.antcontrib.cpptasks.types.SystemLibrarySet)"
-
 
508
            value='&lt;strong&gt;&lt;a href="syslibset.html" style="color: white"&gt;syslibset&lt;/a&gt;&lt;/strong&gt;'/>
-
 
509
 
-
 
510
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
511
            includes="${all.html}"
-
 
512
            token="&lt;strong&gt;includepath&lt;/strong&gt; (net.sf.antcontrib.cpptasks.types.IncludePath)"
-
 
513
            value='&lt;strong&gt;&lt;a href="includepath.html" style="color: white"&gt;includepath&lt;/a&gt;&lt;/strong&gt;'/>
-
 
514
 
-
 
515
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
516
            includes="${all.html}"
-
 
517
            token="&lt;strong&gt;sysincludepath&lt;/strong&gt; (net.sf.antcontrib.cpptasks.types.SystemIncludePath)"
-
 
518
            value='&lt;strong&gt;&lt;a href="sysincludepath.html" style="color: white"&gt;sysincludepath&lt;/a&gt;&lt;/strong&gt;'/>
-
 
519
 
-
 
520
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
521
            includes="${all.html}"
-
 
522
            token="&lt;strong&gt;precompile&lt;/strong&gt; (net.sf.antcontrib.cpptasks.PrecompileDef)"
-
 
523
            value='&lt;strong&gt;&lt;a href="precompile.html" style="color: white"&gt;precompile&lt;/a&gt;&lt;/strong&gt;'/>
-
 
524
 
-
 
525
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
526
            includes="precompile.html"
-
 
527
            token="&lt;strong&gt;except&lt;/strong&gt; (net.sf.antcontrib.cpptasks.PrecompileExceptDef)"
-
 
528
            value='&lt;strong&gt;&lt;a href="except.html" style="color: white"&gt;except&lt;/a&gt;&lt;/strong&gt;'/>
-
 
529
 
-
 
530
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
531
            includes="defineset.html"
-
 
532
            token="&lt;strong&gt;define&lt;/strong&gt; (net.sf.antcontrib.cpptasks.types.DefineArgument)"
-
 
533
            value='&lt;strong&gt;&lt;a href="define.html" style="color: white"&gt;define&lt;/a&gt;&lt;/strong&gt;'/>
-
 
534
 
-
 
535
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
536
            includes="defineset.html"
-
 
537
            token="&lt;strong&gt;undefine&lt;/strong&gt; (net.sf.antcontrib.cpptasks.types.UndefineArgument)"
-
 
538
            value='&lt;strong&gt;&lt;a href="undefine.html" style="color: white"&gt;undefine&lt;/a&gt;&lt;/strong&gt;'/>
-
 
539
 
-
 
540
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
541
            includes="${all.html}"
-
 
542
            token="&lt;strong&gt;distributer&lt;/strong&gt; (net.sf.antcontrib.cpptasks.DistributerDef)"
-
 
543
            value='&lt;strong&gt;&lt;a href="distributer.html" style="color: white"&gt;distributer&lt;/a&gt;&lt;/strong&gt;'/>
-
 
544
 
-
 
545
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
546
            includes="${all.html}"
-
 
547
            token="&lt;strong&gt;target&lt;/strong&gt; (net.sf.antcontrib.cpptasks.TargetDef)"
-
 
548
            value='&lt;strong&gt;&lt;a href="target.html" style="color: white"&gt;target&lt;/a&gt;&lt;/strong&gt;'/>
-
 
549
 
-
 
550
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
551
            includes="${all.html}"
-
 
552
            token="&lt;strong&gt;versioninfo&lt;/strong&gt; (net.sf.antcontrib.cpptasks.VersionInfo)"
-
 
553
            value='&lt;strong&gt;&lt;a href="versioninfo.html" style="color: white"&gt;versioninfo&lt;/a&gt;&lt;/strong&gt;'/>
-
 
554
 
-
 
555
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
556
            includes="${all.html}"
-
 
557
            token="&lt;strong&gt;map&lt;/strong&gt; (net.sf.antcontrib.cpptasks.DistributerMap)"
-
 
558
            value='&lt;strong&gt;&lt;a href="map.html" style="color: white"&gt;map&lt;/a&gt;&lt;/strong&gt;'/>
-
 
559
 
-
 
560
       <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
561
            includes="${all.html}"
-
 
562
            token="&lt;strong&gt;project&lt;/strong&gt; (net.sf.antcontrib.cpptasks.ide.ProjectDef)"
-
 
563
            value='&lt;strong&gt;&lt;a href="project.html" style="color: white"&gt;project&lt;/a&gt;&lt;/strong&gt;'/>
-
 
564
 
-
 
565
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
566
             includes="${all.html}"
-
 
567
             token="&lt;strong&gt;debug&lt;/strong&gt; (net.sf.antcontrib.cpptasks.ide.DebugDef)"
-
 
568
             value='&lt;strong&gt;&lt;a href="debug.html" style="color: white"&gt;debug&lt;/a&gt;&lt;/strong&gt;'/>
-
 
569
 
-
 
570
  	
-
 
571
        <!--   remove Task from the title of everything but cc.html   -->
-
 
572
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
573
            includes="${nontask.html}"
-
 
574
            token="Task&lt;/strong"
-
 
575
            value="&lt;/strong"/>
-
 
576
 
-
 
577
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
578
            includes="cc.html"
-
 
579
            token="Cc"
-
 
580
            value="cc"/>
-
 
581
 
-
 
582
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
583
            includes="compilerarg.html"
-
 
584
            token="Compilerargument"
-
 
585
            value="compilerarg"/>
-
 
586
 
-
 
587
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
588
            includes="linkerarg.html"
-
 
589
            token="Linkerargument"
-
 
590
            value="linkerarg"/>
-
 
591
 
-
 
592
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
593
            includes="compiler.html"
-
 
594
            token="Compilerdef"
-
 
595
            value="compiler"/>
-
 
596
 
-
 
597
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
598
            includes="fileset.html"
-
 
599
            token="Conditionalfileset"
-
 
600
            value="fileset"/>
-
 
601
 
-
 
602
 
-
 
603
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
604
            includes="includepath.html"
-
 
605
            token="Includepath"
-
 
606
            value="includepath"/>
-
 
607
 
-
 
608
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
609
            includes="sysincludepath.html"
-
 
610
            token="Systemincludepath"
-
 
611
            value="sysincludepath"/>
-
 
612
 
-
 
613
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
614
            includes="defineargument.html"
-
 
615
            token="Defineargument"
-
 
616
            value="define"/>
-
 
617
 
-
 
618
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
619
            includes="undefineargument.html"
-
 
620
            token="Undefineargument"
-
 
621
            value="undefine"/>
-
 
622
 
-
 
623
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
624
            includes="defineset.html"
-
 
625
            token="Defineset"
-
 
626
            value="defineset"/>
-
 
627
 
-
 
628
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
629
            includes="libset.html"
-
 
630
            token="Libraryset"
-
 
631
            value="libset"/>
-
 
632
 
-
 
633
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
634
            includes="syslibset.html"
-
 
635
            token="Systemlibraryset"
-
 
636
            value="syslibset"/>
-
 
637
 
-
 
638
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
639
            includes="linker.html"
-
 
640
            token="Linkerdef"
-
 
641
            value="linker"/>
-
 
642
 
-
 
643
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
644
            includes="precompile.html"
-
 
645
            token="Precompiledef"
-
 
646
            value="precompile"/>
-
 
647
 
-
 
648
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
649
            includes="define.html"
-
 
650
            token="Defineargument"
-
 
651
            value="define"/>
-
 
652
 
-
 
653
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
654
            includes="undefine.html"
-
 
655
            token="Undefineargument"
-
 
656
            value="undefine"/>
-
 
657
 
-
 
658
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
659
            includes="except.html"
-
 
660
            token="Precompileexceptdef"
-
 
661
            value="except"/>
-
 
662
 
-
 
663
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
664
            includes="target.html"
-
 
665
            token="Targetdef"
-
 
666
            value="target"/>
-
 
667
 
-
 
668
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
669
            includes="distributer.html"
-
 
670
            token="Distributerdef"
-
 
671
            value="distributer"/>
-
 
672
 
-
 
673
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
674
            includes="versioninfo.html"
-
 
675
            token="Versioninfodef"
-
 
676
            value="versioninfo"/>
-
 
677
 
-
 
678
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
679
            includes="map.html"
-
 
680
            token="Distributermap"
-
 
681
            value="map"/>
-
 
682
 
-
 
683
 
-
 
684
        <replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
685
            includes="project.html"
-
 
686
            token="Projectdef"
-
 
687
            value="project"/>
-
 
688
 
-
 
689
 
-
 
690
    	<replace dir="${build.dir}/xdocs/docs/manual/other"
-
 
691
        	includes="debug.html"
-
 
692
        	token="Debugdef"
-
 
693
        	value="debug"/>
-
 
694
  	
-
 
695
  	</target>
-
 
696
 
-
 
697
	<target name="check-sfuser" unless="sfuser">
-
 
698
			<fail message="Please specify SourceForge user name using -Dsfuser=joeuser"/>
-
 
699
	</target>
-
 
700
 
-
 
701
	<target name="submit-xdocs" depends="check-sfuser" description="updates project web site">
-
 
702
		<!-- requires scp with project admin private keys available and sfuser set   -->
-
 
703
 
-
 
704
				  <exec executable="scp">
-
 
705
						  <arg line="${build.dir}/xdocs/docs/manual/other/*.html ${sfuser}@shell.sourceforge.net:/home/groups/a/an/ant-contrib/htdocs"/>
-
 
706
				  </exec>
-
 
707
	</target>
-
 
708
 
-
 
709
 
-
 
710
 
-
 
711
	<target name="xdocs-clean"
-
 
712
		  description="--> cleans up xdocs directories">
-
 
713
 
-
 
714
		<delete dir="${build.dir}/xdocs" />
-
 
715
	
-
 
716
	</target>
-
 
717
 
-
 
718
	<!-- ====================================================================================== -->
-
 
719
 
-
 
720
	<!-- Setup the ERG specific rules for packaging -->
-
 
721
 
-
 
722
	<target name="run_tests"/>
-
 
723
 
-
 
724
	<target name="make_package"
-
 
725
			depends     = "jars"
-
 
726
			description = "Perform release tasks.">
-
 
727
 
-
 
728
		<delete dir="build/pkg"/>
-
 
729
		<mkdir dir="build/pkg"/>
-
 
730
 
-
 
731
		<mkdir dir="build/pkg/jar"/>
-
 
732
		<copy todir="build/pkg/jar">
-
 
733
			<fileset dir="${basedir}/build/lib"/>
-
 
734
		</copy>
-
 
735
 
-
 
736
		<!-- The ant-cpptasks package is an anttasks compontent, not a cpptasks component -->
-
 
737
		<!-- copy todir="build/pkg" file="ant/ant-cpptasks.xml"/ -->
-
 
738
 
-
 
739
		<summarise-manifest />
-
 
740
	</target>
-
 
741
 
-
 
742
    <target name="release"
-
 
743
            depends="ant-release-task.release"
-
 
744
            description="Manually release the project to dpkg_archive (used 'undo-release' if it fails)." />
-
 
745
 
-
 
746
 
-
 
747
</project>