| 1615 |
mhunt |
1 |
<project name="jants" default="package" basedir="." >
|
|
|
2 |
|
|
|
3 |
<description>JATS/ANT Build System</description>
|
|
|
4 |
|
|
|
5 |
<property name="env" environment="env" value="not used"/>
|
|
|
6 |
<property name="jats.home" value="${env.JATS_HOME}"/>
|
|
|
7 |
<property name="jats.package.project" value="mas"/>
|
|
|
8 |
<property name="build.version" value="3.0.0.mas"/>
|
|
|
9 |
|
|
|
10 |
<target name="compile" >
|
|
|
11 |
<mkdir dir="build/classes"/>
|
|
|
12 |
<javac srcdir="src" destdir="build/classes" classpath="${using.clearcase.basedir}/jar/clearcase.jar;${env.XDOCLET_HOME}\lib\xdoclet-xdoclet-module-1.2b2.jar;${env.XDOCLET_HOME}\lib\xdoclet-1.2b2.jar"/>
|
|
|
13 |
</target>
|
|
|
14 |
|
|
|
15 |
<target name="package" depends="compile">
|
|
|
16 |
<jar jarfile="build/jants.jar">
|
|
|
17 |
<fileset dir="build/classes"/>
|
|
|
18 |
<fileset dir="${basedir}" includes="**/xdoclet.xml"/>
|
|
|
19 |
<fileset dir="src" includes="jats.properties"/>
|
|
|
20 |
<manifest>
|
|
|
21 |
<attribute name="Built-By" value="${user.name}"/>
|
|
|
22 |
<attribute name="Implementation-Title" value="${ant.project.name}"/>
|
|
|
23 |
<attribute name="Implementation-Version" value="${build.version}"/>
|
|
|
24 |
<attribute name="Implementation-Vendor" value="ERG Transit Systems"/>
|
|
|
25 |
</manifest>
|
|
|
26 |
</jar>
|
|
|
27 |
</target>
|
|
|
28 |
|
|
|
29 |
<target name="doc">
|
|
|
30 |
<mkdir dir="build/classes"/>
|
|
|
31 |
|
|
|
32 |
<property name="xdoclet.home" value="${env.XDOCLET_HOME}"/>
|
|
|
33 |
<path id="xdoclet.path">
|
|
|
34 |
<fileset dir="${basedir}/build">
|
|
|
35 |
<include name="*.jar"/>
|
|
|
36 |
</fileset>
|
|
|
37 |
|
|
|
38 |
<fileset dir="${xdoclet.home}/lib">
|
|
|
39 |
<include name="*.jar"/>
|
|
|
40 |
</fileset>
|
|
|
41 |
<fileset dir="${xdoclet.home}/samples/lib">
|
|
|
42 |
<include name="*.jar"/>
|
|
|
43 |
</fileset>
|
|
|
44 |
<pathelement location="${env.ANT_HOME}/lib/ant.jar" />
|
|
|
45 |
<pathelement location="${xdoclet.home}/lib/xdoclet-1.2b2.jar}" />
|
|
|
46 |
<pathelement location="${jboss.client}/log4j.jar" />
|
|
|
47 |
|
|
|
48 |
</path>
|
|
|
49 |
<taskdef name="doclet" classname="xdoclet.DocletTask">
|
|
|
50 |
<classpath refid="xdoclet.path"/>
|
|
|
51 |
</taskdef>
|
|
|
52 |
<taskdef name="xjavadoc" classname="xjavadoc.ant.XJavadocTask">
|
|
|
53 |
<classpath refid="xdoclet.path"/>
|
|
|
54 |
</taskdef>
|
|
|
55 |
|
|
|
56 |
<doclet destdir="build/doc">
|
|
|
57 |
<fileset dir="${basedir}/src">
|
|
|
58 |
<include name="**/*.java"/>
|
|
|
59 |
</fileset>
|
|
|
60 |
|
|
|
61 |
<antdocs/>
|
|
|
62 |
<!--<antdocshtml destinationFile="{0}.html" templateFile="antdoc.xdt"/>-->
|
|
|
63 |
|
|
|
64 |
<!--<antdocs templateURL="jar:file:C:\Java\xdoclet-1.2b2\lib\xdoclet-xdoclet-module-1.2b2.jar!/xdoclet/modules/doc/resources/antdoc.xdt"/>-->
|
|
|
65 |
</doclet>
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
<xjavadoc destdir="build/xjavadoc">
|
|
|
69 |
<fileset dir="build/doc">
|
|
|
70 |
<include name="**/*.xml"/>
|
|
|
71 |
</fileset>
|
|
|
72 |
</xjavadoc>
|
|
|
73 |
|
|
|
74 |
</target>
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
<target name="fmpp">
|
|
|
78 |
|
|
|
79 |
<taskdef name="fmpp" classname="fmpp.tools.AntTask">
|
|
|
80 |
<classpath>
|
|
|
81 |
<fileset dir="C:\Java\fmpp_0.8.11\lib">
|
|
|
82 |
<include name="**/*.jar"/>
|
|
|
83 |
</fileset>
|
|
|
84 |
</classpath>
|
|
|
85 |
</taskdef>
|
|
|
86 |
|
|
|
87 |
<fmpp sourceroot = "${basedir}/build/template"
|
|
|
88 |
outputroot = "${basedir}/build/doc"
|
|
|
89 |
data = "root:xml(../xdoc/com/erggroup/mass/ant/taskdefs/JarSrc.xml)"/>
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
</target>
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
<target name="site" description="Generates static HTML documentation">
|
|
|
96 |
|
|
|
97 |
<property name="forrest.home" location="C:\Java\apache-forrest-0.4-bin"/>
|
|
|
98 |
<property name="project.home" location="${basedir}"/>
|
|
|
99 |
<property name="project.content-dir" value="build\doc"/>
|
|
|
100 |
|
|
|
101 |
<ant antfile="${forrest.home}/forrest.antproxy.xml" target="site"/>
|
|
|
102 |
|
|
|
103 |
</target>
|
|
|
104 |
|
|
|
105 |
<target name="anakia">
|
|
|
106 |
<taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask">
|
|
|
107 |
<classpath>
|
|
|
108 |
<fileset dir="C:\Java\velocity-1.3.1-rc2\build\lib">
|
|
|
109 |
<include name="**/*.jar"/>
|
|
|
110 |
</fileset>
|
|
|
111 |
<fileset dir="C:\Java\velocity-1.3.1-rc2\bin">
|
|
|
112 |
<include name="**/*.jar"/>
|
|
|
113 |
</fileset>
|
|
|
114 |
</classpath>
|
|
|
115 |
</taskdef>
|
|
|
116 |
<anakia basedir="./build/anakia" destdir="./build/anakia-site"
|
|
|
117 |
extension=".html" style="./site.vsl"
|
|
|
118 |
projectFile="./stylesheets/project.xml"
|
|
|
119 |
excludes="**/stylesheets/**"
|
|
|
120 |
includes="**/*.xml"
|
|
|
121 |
lastModifiedCheck="true"
|
|
|
122 |
templatePath="./build/anakia/stylesheets">
|
|
|
123 |
</anakia>
|
|
|
124 |
|
|
|
125 |
</target>
|
|
|
126 |
|
|
|
127 |
|
|
|
128 |
<target name="deploy" depends="package">
|
|
|
129 |
<copy file="build/jants.jar" todir="${env.ANT_HOME}/lib"/>
|
|
|
130 |
</target>
|
|
|
131 |
|
|
|
132 |
<target name="test" depends="deploy">
|
|
|
133 |
<ant antfile="test.xml"/>
|
|
|
134 |
</target>
|
|
|
135 |
|
|
|
136 |
</project>
|