">
Download presentation
Presentation is loading. Please wait.
1
Creating your Java Docs
<target name="doc"> <mkdir dir="${jmethod.app.dir}/docs"/> <mkdir dir="${jmethod.app.dir}/docs/api"/> <javadoc packagenames="org.*" sourcepath="${jmethod.app.dir}/src" defaultexcludes="yes" destdir="${jmethod.app.dir}/docs/api" author="true" version="true" use="true" windowtitle=“Test Title"> <doctitle><![CDATA[<h1>Test Header</h1>]]></doctitle> <bottom> <![CDATA[<i>Copyright © 2002 Test All Rights Reserved.</i>]]> </bottom> </javadoc> <jar jarfile="${jmethod.dist.dir}/${jmethod.app.name}_docs.jar"> <fileset dir="${jmethod.app.dir}/docs/api" includes="**/*"/> </jar> </target>
2
Automated Check Out <target name="build-checkout">
<tstamp> <format property="TODAY_US" pattern="d-MMMM-yyyy" locale="en"/> </tstamp> <mkdir dir="${jmethod.build.dir}"/> <!--Creating the build directory--> <cvs command="rtag ${myenv.BUILD_LABEL} jmethod"/> <!--Creating the build tag--> <!--Checking out files by the build tag--> <cvs cvsRoot="${myenv.CVSROOT}" package="jmethod/apps/${jmethod.app.name}" dest="${jmethod.build.dir}" tag="${myenv.BUILD_LABEL}"/> </target>
3
Automating Unit Tests <target name="build-test" depends="build-compile"> <junit printsummary="yes" haltonfailure="yes"> <sysproperty key="renewals.properties“ value="${jmethod.build.dir}/jmethod/apps/${jmethod.app.name}/config/Renewals.properties"/> <classpath> <pathelement path="${myenv.CLASSPATH}"/> <pathelement location= "${jmethod.build.dir}/jmethod/apps/${jmethod.app.name}/classes"/> </classpath> <formatter type="plain"/> <batchtest fork="yes" todir="$/tmp"> <fileset dir="${jmethod.build.dir}/jmethod/apps/${jmethod.app.name}/src"> <include name="**/*Test*.java"/> </fileset> </batchtest> </junit> </target>
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.