Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

<project name="jants" default="package" basedir="." >

        <description>JATS/ANT Build System</description>

        <property name="env" environment="env" value="not used"/>
        <property name="jats.home"             value="${env.JATS_HOME}"/>
        <property name="jats.package.project"  value="mas"/>
        <property name="build.version" value="3.0.0.mas"/>

        <target name="compile" >
                <mkdir dir="build/classes"/>
                <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"/>
        </target>

        <target name="package" depends="compile">
                <jar jarfile="build/jants.jar">
                        <fileset dir="build/classes"/>
                        <fileset dir="${basedir}" includes="**/xdoclet.xml"/>
                        <fileset dir="src" includes="jats.properties"/>
                        <manifest>
                                <attribute name="Built-By" value="${user.name}"/>
                                <attribute name="Implementation-Title" value="${ant.project.name}"/>
                                <attribute name="Implementation-Version" value="${build.version}"/>
                                <attribute name="Implementation-Vendor" value="ERG Transit Systems"/>
                        </manifest>
                </jar>
        </target>

        <target name="doc">
                <mkdir dir="build/classes"/>

                <property name="xdoclet.home" value="${env.XDOCLET_HOME}"/>
                <path id="xdoclet.path">
                                        <fileset dir="${basedir}/build">
                                                <include name="*.jar"/>
                                        </fileset>

                        <fileset dir="${xdoclet.home}/lib">
                                <include name="*.jar"/>
                        </fileset>
                        <fileset dir="${xdoclet.home}/samples/lib">
                                <include name="*.jar"/>
                        </fileset>
                        <pathelement location="${env.ANT_HOME}/lib/ant.jar" />
                        <pathelement location="${xdoclet.home}/lib/xdoclet-1.2b2.jar}" />
                        <pathelement location="${jboss.client}/log4j.jar" />

                </path>
                <taskdef name="doclet" classname="xdoclet.DocletTask">
                 <classpath refid="xdoclet.path"/>
                </taskdef>
<taskdef name="xjavadoc" classname="xjavadoc.ant.XJavadocTask">
                 <classpath refid="xdoclet.path"/>
                </taskdef>

                <doclet destdir="build/doc">
                        <fileset dir="${basedir}/src">
                                <include name="**/*.java"/>
                        </fileset>

                        <antdocs/>
                        <!--<antdocshtml destinationFile="{0}.html" templateFile="antdoc.xdt"/>-->

                        <!--<antdocs templateURL="jar:file:C:\Java\xdoclet-1.2b2\lib\xdoclet-xdoclet-module-1.2b2.jar!/xdoclet/modules/doc/resources/antdoc.xdt"/>-->
                </doclet>


                <xjavadoc destdir="build/xjavadoc">
                        <fileset dir="build/doc">
                                <include name="**/*.xml"/>
                        </fileset>
                </xjavadoc>

        </target>


        <target name="fmpp">

                <taskdef name="fmpp" classname="fmpp.tools.AntTask">
                        <classpath>
                                <fileset dir="C:\Java\fmpp_0.8.11\lib">
                                        <include name="**/*.jar"/>
                                </fileset>
                        </classpath>
                </taskdef>

                <fmpp sourceroot = "${basedir}/build/template"
                      outputroot = "${basedir}/build/doc"
                      data       = "root:xml(../xdoc/com/erggroup/mass/ant/taskdefs/JarSrc.xml)"/>


        </target>


        <target name="site" description="Generates static HTML documentation">

                <property name="forrest.home"        location="C:\Java\apache-forrest-0.4-bin"/>
                <property name="project.home"        location="${basedir}"/>
                <property name="project.content-dir" value="build\doc"/>

                <ant antfile="${forrest.home}/forrest.antproxy.xml" target="site"/>

        </target>

        <target name="anakia">
                <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask">
                        <classpath>
                                <fileset dir="C:\Java\velocity-1.3.1-rc2\build\lib">
                                        <include name="**/*.jar"/>
                                </fileset>
                                <fileset dir="C:\Java\velocity-1.3.1-rc2\bin">
                                        <include name="**/*.jar"/>
                                </fileset>
                        </classpath>
                </taskdef>
                <anakia basedir="./build/anakia" destdir="./build/anakia-site"
                             extension=".html" style="./site.vsl"
                             projectFile="./stylesheets/project.xml"
                             excludes="**/stylesheets/**"
                             includes="**/*.xml"
                             lastModifiedCheck="true"
                             templatePath="./build/anakia/stylesheets">
                </anakia>

        </target>


        <target name="deploy" depends="package">
                <copy file="build/jants.jar" todir="${env.ANT_HOME}/lib"/>
        </target>

        <target name="test" depends="deploy">
                <ant antfile="test.xml"/>
        </target>

</project>