2003-11-14 16:46:30 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
2008-04-24 10:40:29 -04:00
|
|
|
<!--build.xml generated by maven from project.xml version 1.2-RC2
|
|
|
|
on date April 24 2008, time 1634-->
|
2003-11-14 16:46:30 -05:00
|
|
|
|
|
|
|
<project default="jar" name="commons-math" basedir=".">
|
2008-04-24 10:40:29 -04:00
|
|
|
<property name="defaulttargetdir" value="target">
|
2005-08-09 03:07:20 -04:00
|
|
|
</property>
|
2008-04-24 10:40:29 -04:00
|
|
|
<property name="libdir" value="target/lib">
|
2004-06-01 19:55:31 -04:00
|
|
|
</property>
|
2008-04-24 10:40:29 -04:00
|
|
|
<property name="classesdir" value="target/classes">
|
2004-06-01 19:55:31 -04:00
|
|
|
</property>
|
2008-04-24 10:40:29 -04:00
|
|
|
<property name="testclassesdir" value="target/test-classes">
|
2004-06-01 19:55:31 -04:00
|
|
|
</property>
|
2008-04-24 10:40:29 -04:00
|
|
|
<property name="testclassesdir" value="target/test-classes">
|
2004-06-01 19:55:31 -04:00
|
|
|
</property>
|
2008-04-24 10:40:29 -04:00
|
|
|
<property name="testreportdir" value="target/test-reports">
|
2004-06-23 09:43:23 -04:00
|
|
|
</property>
|
2008-04-24 10:40:29 -04:00
|
|
|
<property name="distdir" value="dist">
|
2004-06-01 19:55:31 -04:00
|
|
|
</property>
|
2008-04-24 10:40:29 -04:00
|
|
|
<property name="javadocdir" value="dist/docs/api">
|
2004-06-01 19:55:31 -04:00
|
|
|
</property>
|
2008-04-24 10:40:29 -04:00
|
|
|
<property name="final.name" value="commons-math-1.2-RC2">
|
2004-06-01 19:55:31 -04:00
|
|
|
</property>
|
2004-08-15 16:23:33 -04:00
|
|
|
<path id="build.classpath">
|
2008-04-24 10:40:29 -04:00
|
|
|
<fileset dir="${libdir}">
|
|
|
|
<include name="**/*.jar">
|
|
|
|
</include>
|
|
|
|
</fileset>
|
2004-08-15 16:23:33 -04:00
|
|
|
</path>
|
2003-11-14 16:46:30 -05:00
|
|
|
<target name="init" description="o Initializes some properties">
|
2004-06-01 19:55:31 -04:00
|
|
|
<mkdir dir="${libdir}">
|
|
|
|
</mkdir>
|
2003-11-14 16:46:30 -05:00
|
|
|
<condition property="noget">
|
|
|
|
<equals arg2="only" arg1="${build.sysclasspath}">
|
|
|
|
</equals>
|
|
|
|
</condition>
|
2004-08-15 16:23:33 -04:00
|
|
|
<!--Test if JUNIT is present in ANT classpath-->
|
|
|
|
|
|
|
|
<available property="Junit.present" classname="junit.framework.Test">
|
|
|
|
</available>
|
2003-11-14 16:46:30 -05:00
|
|
|
</target>
|
|
|
|
<target name="compile" description="o Compile the code" depends="get-deps">
|
2004-06-01 19:55:31 -04:00
|
|
|
<mkdir dir="${classesdir}">
|
|
|
|
</mkdir>
|
2003-11-14 16:46:30 -05:00
|
|
|
<javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
|
|
|
|
<src>
|
2008-04-24 10:40:29 -04:00
|
|
|
<pathelement location="src/java">
|
2004-06-02 10:47:03 -04:00
|
|
|
</pathelement>
|
2003-11-14 16:46:30 -05:00
|
|
|
</src>
|
2004-08-15 16:23:33 -04:00
|
|
|
<classpath refid="build.classpath">
|
2003-11-14 16:46:30 -05:00
|
|
|
</classpath>
|
|
|
|
</javac>
|
2004-12-12 23:53:25 -05:00
|
|
|
<mkdir dir="${classesdir}/META-INF">
|
|
|
|
</mkdir>
|
|
|
|
<copy todir="${classesdir}/META-INF">
|
2008-04-24 10:40:29 -04:00
|
|
|
<fileset dir=".">
|
2004-12-12 23:53:25 -05:00
|
|
|
<include name="NOTICE.txt">
|
|
|
|
</include>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
2003-11-14 16:46:30 -05:00
|
|
|
</target>
|
2004-06-01 19:55:31 -04:00
|
|
|
<target name="jar" description="o Create the jar" depends="compile,test">
|
2004-06-23 09:43:23 -04:00
|
|
|
<jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}">
|
2004-06-01 19:55:31 -04:00
|
|
|
</jar>
|
2003-11-14 16:46:30 -05:00
|
|
|
</target>
|
|
|
|
<target name="clean" description="o Clean up the generated directories">
|
2004-06-01 19:55:31 -04:00
|
|
|
<delete dir="${defaulttargetdir}">
|
|
|
|
</delete>
|
|
|
|
<delete dir="${distdir}">
|
|
|
|
</delete>
|
2003-11-14 16:46:30 -05:00
|
|
|
</target>
|
|
|
|
<target name="dist" description="o Create a distribution" depends="jar, javadoc">
|
2004-06-01 19:55:31 -04:00
|
|
|
<mkdir dir="dist">
|
|
|
|
</mkdir>
|
2003-11-14 16:46:30 -05:00
|
|
|
<copy todir="dist">
|
2004-06-01 19:55:31 -04:00
|
|
|
<fileset dir="${defaulttargetdir}" includes="*.jar">
|
|
|
|
</fileset>
|
|
|
|
<fileset dir="${basedir}" includes="LICENSE*, README*">
|
|
|
|
</fileset>
|
2003-11-14 16:46:30 -05:00
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
<target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
|
2004-06-01 19:55:31 -04:00
|
|
|
<fail message="There were test failures.">
|
|
|
|
</fail>
|
2003-11-14 16:46:30 -05:00
|
|
|
</target>
|
2004-08-15 16:23:33 -04:00
|
|
|
<target name="internal-test" if="Junit.present" depends="junit-present,compile-tests">
|
2004-06-01 19:55:31 -04:00
|
|
|
<mkdir dir="${testreportdir}">
|
|
|
|
</mkdir>
|
2008-04-24 10:40:29 -04:00
|
|
|
<junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
|
2004-06-01 19:55:31 -04:00
|
|
|
<sysproperty key="basedir" value=".">
|
|
|
|
</sysproperty>
|
|
|
|
<formatter type="xml">
|
|
|
|
</formatter>
|
|
|
|
<formatter usefile="false" type="plain">
|
|
|
|
</formatter>
|
2003-11-14 16:46:30 -05:00
|
|
|
<classpath>
|
2004-08-15 16:23:33 -04:00
|
|
|
<path refid="build.classpath">
|
|
|
|
</path>
|
2004-06-01 19:55:31 -04:00
|
|
|
<pathelement path="${testclassesdir}">
|
|
|
|
</pathelement>
|
|
|
|
<pathelement path="${classesdir}">
|
|
|
|
</pathelement>
|
2003-11-14 16:46:30 -05:00
|
|
|
</classpath>
|
|
|
|
<batchtest todir="${testreportdir}">
|
2008-04-24 10:40:29 -04:00
|
|
|
<fileset dir="src/test">
|
2004-06-01 19:55:31 -04:00
|
|
|
<include name="**/*Test.java">
|
|
|
|
</include>
|
|
|
|
<exclude name="**/*AbstractTest.java">
|
|
|
|
</exclude>
|
2003-11-14 16:46:30 -05:00
|
|
|
</fileset>
|
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
</target>
|
2004-08-15 16:23:33 -04:00
|
|
|
<target name="junit-present" unless="Junit.present" depends="init">
|
|
|
|
<echo>================================= WARNING ================================</echo>
|
|
|
|
<echo>Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed.</echo>
|
|
|
|
<echo>==========================================================================</echo>
|
|
|
|
</target>
|
|
|
|
<target name="compile-tests" if="Junit.present" depends="junit-present,compile">
|
2004-06-01 19:55:31 -04:00
|
|
|
<mkdir dir="${testclassesdir}">
|
|
|
|
</mkdir>
|
2003-11-14 16:46:30 -05:00
|
|
|
<javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
|
|
|
|
<src>
|
2008-04-24 10:40:29 -04:00
|
|
|
<pathelement location="src/test">
|
2004-06-02 10:47:03 -04:00
|
|
|
</pathelement>
|
2003-11-14 16:46:30 -05:00
|
|
|
</src>
|
|
|
|
<classpath>
|
2004-08-15 16:23:33 -04:00
|
|
|
<path refid="build.classpath">
|
|
|
|
</path>
|
2004-06-01 19:55:31 -04:00
|
|
|
<pathelement path="${classesdir}">
|
|
|
|
</pathelement>
|
2003-11-14 16:46:30 -05:00
|
|
|
</classpath>
|
|
|
|
</javac>
|
2004-06-23 09:43:23 -04:00
|
|
|
<copy todir="${testclassesdir}">
|
2008-04-24 10:40:29 -04:00
|
|
|
<fileset dir="src/test">
|
2004-06-23 09:43:23 -04:00
|
|
|
<include name="**/*.xml">
|
|
|
|
</include>
|
|
|
|
<include name="**/*.txt">
|
|
|
|
</include>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
2003-11-14 16:46:30 -05:00
|
|
|
</target>
|
2004-08-15 16:23:33 -04:00
|
|
|
<target name="javadoc" description="o Generate javadoc" depends="get-deps">
|
2004-06-01 19:55:31 -04:00
|
|
|
<mkdir dir="${javadocdir}">
|
|
|
|
</mkdir>
|
2003-11-14 16:46:30 -05:00
|
|
|
<tstamp>
|
2004-06-01 19:55:31 -04:00
|
|
|
<format pattern="2003-yyyy" property="year">
|
|
|
|
</format>
|
2003-11-14 16:46:30 -05:00
|
|
|
</tstamp>
|
2004-06-01 19:55:31 -04:00
|
|
|
<property name="copyright" value="Copyright &copy; The Apache Software Foundation. All Rights Reserved.">
|
|
|
|
</property>
|
2008-04-24 10:40:29 -04:00
|
|
|
<property name="title" value="Math 1.2-RC2 API">
|
2004-06-01 19:55:31 -04:00
|
|
|
</property>
|
2008-04-24 10:40:29 -04:00
|
|
|
<javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java" packagenames="org.apache.commons.math.*">
|
2003-11-14 16:46:30 -05:00
|
|
|
<classpath>
|
2004-08-15 16:23:33 -04:00
|
|
|
<path refid="build.classpath">
|
|
|
|
</path>
|
2003-11-14 16:46:30 -05:00
|
|
|
</classpath>
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
2008-04-24 10:40:29 -04:00
|
|
|
<target name="get-deps" unless="noget" depends="init">
|
2004-08-15 16:23:33 -04:00
|
|
|
<!--Proxy settings works only with a JDK 1.2 and higher.-->
|
|
|
|
|
2005-08-09 03:07:20 -04:00
|
|
|
<echo>Proxy used :</echo>
|
|
|
|
<echo>Proxy host [${proxy.host}]</echo>
|
|
|
|
<echo>Proxy port [${proxy.port}]</echo>
|
|
|
|
<echo>Proxy user [${proxy.username}]</echo>
|
|
|
|
<setproxy proxyuser="${proxy.username}" proxyport="${proxy.port}" proxypassword="${proxy.password}" proxyhost="${proxy.host}">
|
2004-08-15 16:23:33 -04:00
|
|
|
</setproxy>
|
2008-04-24 10:40:29 -04:00
|
|
|
<get dest="${libdir}/maven-cobertura-plugin-1.1.1.jar" usetimestamp="true" ignoreerrors="true" src="http://repo1.maven.org/maven/maven-plugins/plugins/maven-cobertura-plugin-1.1.1.jar">
|
|
|
|
</get>
|
|
|
|
<get dest="${libdir}/maven-xdoc-plugin-1.9.2.jar" usetimestamp="true" ignoreerrors="true" src="http://repo1.maven.org/maven/maven/plugins/maven-xdoc-plugin-1.9.2.jar">
|
|
|
|
</get>
|
2005-08-09 03:07:20 -04:00
|
|
|
</target>
|
|
|
|
<target name="noProxy" unless="useProxy" depends="init">
|
|
|
|
<echo>Proxy not used.</echo>
|
2004-06-01 19:55:31 -04:00
|
|
|
</target>
|
|
|
|
<target name="install-maven">
|
|
|
|
<get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar">
|
|
|
|
</get>
|
|
|
|
<unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar">
|
|
|
|
</unjar>
|
2003-11-14 16:46:30 -05:00
|
|
|
</target>
|
2004-08-15 16:23:33 -04:00
|
|
|
</project>
|