[Batchserver-cvs] batchserver build_framework.xml,NONE,1.1
Brought to you by:
suresh_pragada
From: Suresh <sur...@us...> - 2006-09-19 02:19:00
|
Update of /cvsroot/batchserver/batchserver In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17723 Added Files: build_framework.xml Log Message: no message --- NEW FILE: build_framework.xml --- <project name="framework" default="dist" basedir="."> <!-- ===================== Property Definitions =========================== --> <property name="app.version" value="1.0"/> <property name="app.name" value="batch_framework"/> <!-- ==================== File and Directory Names ======================== --> <property name="build.home" value="${basedir}/build"/> <property name="dist.home" value="${basedir}/dist"/> <property name="docs.home" value="${basedir}/docs"/> <property name="src.home" value="${basedir}/src"/> <property name="lib.home" value="${basedir}/lib"/> <property name="test.home" value="${basedir}/test"/> <property name="reports.home" value="${basedir}/reports"/> <!-- ==================== Compilation Control Options ==================== --> <property name="compile.debug" value="true"/> <property name="compile.deprecation" value="false"/> <property name="compile.optimize" value="true"/> <!-- ======= Pattern Sets, File Sets, Application Classpaths ======= --> <patternset id="app.resources"> <include name="**/*.properties"/> <include name="**/*.xml"/> </patternset> <path id="compile.classpath"> <!-- Include all JAR files that will be required to compile application --> <pathelement location="${lib.home}/xml/xml_apis.jar"/> <pathelement location="${lib.home}/xml/apache/resolver_2.7.1.jar"/> <pathelement location="${lib.home}/xml/apache/xerces_impl_2.7.1.jar"/> <pathelement location="${lib.home}/stax/stax_api_1.0.zip"/> <pathelement location="${lib.home}/stax/ri/stax_impl_1.2.zip"/> <pathelement location="${lib.home}/log4j/log4j_1.2.13.jar"/> </path> <property name="compile.classpath" refid="compile.classpath"/> <path id="runtime.classpath"> <path location="${build.home}/src"/> <path refid="compile.classpath"/> </path> <property name="runtime.classpath" refid="runtime.classpath"/> <path id="test.compile.classpath"> <path refid="runtime.classpath"/> <path location="${lib.home}/junit/junit_1.0.jar"/> </path> <property name="test.compile.classpath" refid="test.compile.classpath"/> <path id="test.runtime.classpath"> <path refid="test.compile.classpath"/> <pathelement location="${build.home}/test"/> </path> <property name="test.runtime.classpath" refid="test.runtime.classpath"/> <!-- ==================== Source-Clean-Compile Target ====================================== --> <target name="source-clean-compile" depends="source-clean,source-compile" description="Clean and compile the source"/> <!-- ==================== Source-Clean Target ==================================== --> <target name="source-clean" description="Delete old source build directories"> <delete dir="${build.home}/src"/> </target> <!-- ==================== Source-Compile Target ================================== --> <target name="source-compile" description="Compile Java sources"> <!-- Compile Java classes as necessary --> <mkdir dir="${build.home}/src"/> <echo message="Classpath for compilation : ${compile.classpath}"/> <javac srcdir="${src.home}" destdir="${build.home}/src" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"> <classpath refid="compile.classpath"/> </javac> <!-- Copy application resources --> <copy todir="${build.home}/src"> <fileset dir="${src.home}"> <patternset refid="app.resources"/> </fileset> </copy> </target> <!-- ==================== Test-Clean-Compile Target ====================================== --> <target name="test-clean-compile" depends="test-clean,test-compile" description="Clean and compile the test classes"/> <!-- ==================== Test-Clean Target ==================================== --> <target name="test-clean" description="Delete old test build directories"> <delete dir="${build.home}/test"/> </target> <!-- ==================== Test-Compile Target ================================== --> <target name="test-compile" depends="source-compile" description="Compile Test Java sources"> <!-- Compile Test Java classes as necessary --> <mkdir dir="${build.home}/test"/> <echo message="Classpath for test compilation : ${test.compile.classpath}"/> <javac srcdir="${test.home}" destdir="${build.home}/test" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"> <classpath refid="test.compile.classpath"/> </javac> <!-- Copy application resources --> <copy todir="${build.home}/test"> <fileset dir="${test.home}"> <patternset refid="app.resources"/> </fileset> </copy> </target> <!-- ==================== Run Framework Test Suite Target ===================================== --> <target name="run-framework-test-suite" depends="test-compile" description="Run Framework Test Suite"> <!-- Make sure you have junit jar and junit ant jar in ant lib directory --> <echo message="Running Framework Test Suite"/> <echo message="Classpath to run test suite : ${test.runtime.classpath}"/> <delete dir="${reports.home}"/> <mkdir dir="${reports.home}"/> <junit printsummary="true"> <classpath refid="test.runtime.classpath"/> <!-- To generate the test reports use the below xml formatter instead of plain formmater --> <formatter type="xml" usefile="true"/> <!-- <formatter type="plain" usefile="false"/> --> <test name="org.jmonks.batchserver.framework.FrameworkTestSuite" todir="${reports.home}"/> </junit> </target> <!-- ==================== Run All Tests Target ===================================== --> <target name="run-all-tests" depends="test-compile" description="Run all the tests available in project"> <!-- Make sure you have junit jar and junit ant jar in ant lib directory --> <echo message="Running All JUnit Tests"/> <echo message="Classpath for run all tests : ${test.runtime.classpath}"/> <delete dir="${reports.home}"/> <mkdir dir="${reports.home}"/> <junit printsummary="true"> <classpath refid="test.runtime.classpath"/> <!-- To run all the JUnit Test classes --> <formatter type="xml" usefile="true"/> <batchtest todir="${reports.home}"> <fileset dir="${build.home}/test" includes="**/*Test.class"/> </batchtest> </junit> </target> <!-- ==================== JUnit Reports Format Target ===================================== --> <target name="run-format-framework-test-suite" depends="run-framework-test-suite" description="Run the unittests and format the test results into html docs"> <!-- Make sure you have junit jar and junit ant jar in ant lib directory --> <junitreport todir="${reports.home}"> <fileset dir="${reports.home}"> <include name="*.xml"/> </fileset> <report format="frames" todir="${reports.home}/html"/> </junitreport> </target> <target name="run-format-all-tests-results" depends="run-all-tests" description="Run the unittests and format the test results into html docs"> <!-- Make sure you have junit jar and junit ant jar in ant lib directory --> <junitreport todir="${reports.home}"> <fileset dir="${reports.home}"> <include name="*.xml"/> </fileset> <report format="frames" todir="${reports.home}/html"/> </junitreport> </target> <!-- ==================== Dist Target ===================================== --> <target name="dist" depends="source-clean-compile,javadoc" description="Create binary distribution"> <!-- Copy documentation subdirectories --> <mkdir dir="${dist.home}/docs"/> <copy todir="${dist.home}/docs"> <fileset dir="${docs.home}"/> </copy> <!-- Create application JAR file --> <jar jarfile="${dist.home}/${app.name}-${app.version}.jar" basedir="${build.home}/src"/> </target> <!-- ==================== Javadoc Target ================================== --> <target name="javadoc" depends="source-clean-compile" description="Create Javadoc API documentation"> <delete dir="${docs.home}"/> <mkdir dir="${docs.home}"/> <javadoc sourcepath="${src.home}" destdir="${docs.home}" packagenames="*" author="true" version="true" use="true"> <classpath refid="compile.classpath"/> </javadoc> </target> </project> |