|
|
132690 |
<project name="plexus-container-default" default="jar" basedir=".">
|
|
|
132690 |
<property name="maven.build.output" value="target/classes"/>
|
|
|
132690 |
<property name="maven.build.directory" value="target"/>
|
|
|
132690 |
<property name="maven.build.final.name" value="plexus-container-default-1.0-alpha-30"/>
|
|
|
132690 |
<property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
|
|
|
132690 |
<property name="maven.test.output" value="target/test-classes"/>
|
|
|
132690 |
<property name="javadocdir" value="target/site/apidocs"></property>
|
|
|
132690 |
<target name="clean" description="Clean the output directory">
|
|
|
132690 |
<delete dir="${maven.build.directory}"/>
|
|
|
132690 |
</target>
|
|
|
132690 |
<target name="compile" description="Compile the code">
|
|
|
132690 |
<mkdir dir="${maven.build.output}"/>
|
|
|
132690 |
<javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
|
|
|
132690 |
<src>
|
|
|
132690 |
<pathelement location="src/main/java"/>
|
|
|
132690 |
</src>
|
|
|
132690 |
</javac>
|
|
|
132690 |
<copy todir="${maven.build.output}">
|
|
|
132690 |
<fileset dir="src/main/resources"/>
|
|
|
132690 |
</copy>
|
|
|
132690 |
</target>
|
|
|
132690 |
<target name="jar" depends="compile,test" description="Clean the JAR">
|
|
|
132690 |
<jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
|
|
|
132690 |
</target>
|
|
|
132690 |
<target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
|
|
|
132690 |
<mkdir dir="${maven.test.output}"/>
|
|
|
132690 |
<javac destdir="${maven.test.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
|
|
|
132690 |
<src>
|
|
|
132690 |
<pathelement location="src/test/java"/>
|
|
|
132690 |
</src>
|
|
|
132690 |
<classpath>
|
|
|
132690 |
<path refid="build.classpath"/>
|
|
|
132690 |
<pathelement location="${maven.build.output}"/>
|
|
|
132690 |
</classpath>
|
|
|
132690 |
</javac>
|
|
|
132690 |
<copy todir="${maven.test.output}">
|
|
|
132690 |
<fileset dir="src/test/resources"/>
|
|
|
132690 |
</copy>
|
|
|
132690 |
</target>
|
|
|
132690 |
<target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases">
|
|
|
132690 |
<mkdir dir="${maven.test.reports}"/>
|
|
|
132690 |
<junit printSummary="yes" haltonerror="true" haltonfailure="false" fork="true" dir=".">
|
|
|
132690 |
<sysproperty key="basedir" value="."/>
|
|
|
132690 |
<formatter type="xml"/>
|
|
|
132690 |
<formatter type="plain" usefile="false"/>
|
|
|
132690 |
<classpath>
|
|
|
132690 |
<path refid="build.classpath"/>
|
|
|
132690 |
<pathelement location="${maven.build.output}"/>
|
|
|
132690 |
<pathelement location="${maven.test.output}"/>
|
|
|
132690 |
</classpath>
|
|
|
132690 |
<batchtest todir="${maven.test.reports}">
|
|
|
132690 |
<fileset dir="src/test/java">
|
|
|
132690 |
<include name="**/*Test.java"/>
|
|
|
132690 |
<exclude name="**/*Abstract*Test.java"/>
|
|
|
132690 |
</fileset>
|
|
|
132690 |
</batchtest>
|
|
|
132690 |
</junit>
|
|
|
132690 |
</target>
|
|
|
132690 |
<target name="test-junit-present">
|
|
|
132690 |
<available classname="junit.framework.Test" property="junit.present"/>
|
|
|
132690 |
</target>
|
|
|
132690 |
<target name="junit-present" depends="test-junit-present" unless="junit.present">
|
|
|
132690 |
<echo>================================= WARNING ================================</echo>
|
|
|
132690 |
<echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo>
|
|
|
132690 |
<echo>==========================================================================</echo>
|
|
|
132690 |
</target>
|
|
|
132690 |
<target name="test-offline">
|
|
|
132690 |
<condition property="maven.mode.offline">
|
|
|
132690 |
<equals arg1="${build.sysclasspath}" arg2="only"/>
|
|
|
132690 |
</condition>
|
|
|
132690 |
</target>
|
|
|
132690 |
<target name="javadoc" description="o Generate javadoc" >
|
|
|
132690 |
<mkdir dir="${javadocdir}"></mkdir>
|
|
|
132690 |
<tstamp>
|
|
|
132690 |
<format pattern="-yyyy" property="year"></format>
|
|
|
132690 |
</tstamp>
|
|
|
132690 |
<property name="copyright" value="Copyright © . All Rights Reserved."></property>
|
|
|
132690 |
<property name="title" value="Plexus Container Default 1.0 API"></property>
|
|
|
132690 |
<javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/main/java" packagenames="org.codehaus.plexus.*">
|
|
|
132690 |
</javadoc>
|
|
|
132690 |
</target>
|
|
|
132690 |
</project>
|