/[packages]/cauldron/classworlds/current/SOURCES/classworlds-1.1-build.xml
ViewVC logotype

Contents of /cauldron/classworlds/current/SOURCES/classworlds-1.1-build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 487055 - (show annotations) (download) (as text)
Thu Sep 26 20:21:03 2013 UTC (10 years, 8 months ago) by dmorgan
File MIME type: text/xml
File size: 5384 byte(s)
Add specfile/sources
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--build.xml generated by maven from project.xml version 1.1
4 on date October 31 2005, time 1543-->
5 <project default="jar" name="classworlds" basedir=".">
6 <property name="defaulttargetdir" value="target"></property>
7 <property name="libdir" value="target/lib"></property>
8 <property name="classesdir" value="target/classes"></property>
9 <property name="testclassesdir" value="target/test-classes"></property>
10 <property name="testclassesdir" value="target/test-classes"></property>
11 <property name="testreportdir" value="target/test-reports"></property>
12 <property name="distdir" value="dist"></property>
13 <property name="javadocdir" value="dist/docs/api"></property>
14 <property name="final.name" value="classworlds-1.1"></property>
15 <path id="build.classpath">
16 <fileset dir="${libdir}">
17 <include name="**/*.jar"></include>
18 </fileset>
19 </path>
20 <target name="init" description="o Initializes some properties">
21 <mkdir dir="${libdir}"></mkdir>
22 <condition property="noget">
23 <equals arg2="only" arg1="${build.sysclasspath}"></equals>
24 </condition>
25 <!--Test if JUNIT is present in ANT classpath-->
26 <available property="Junit.present" classname="junit.framework.Test"></available>
27 </target>
28 <target name="compile" description="o Compile the code" depends="get-deps">
29 <mkdir dir="${classesdir}"></mkdir>
30 <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
31 <src>
32 <pathelement location="src/java/main"></pathelement>
33 </src>
34 <classpath refid="build.classpath"></classpath>
35 </javac>
36 </target>
37 <target name="jar" description="o Create the jar" depends="compile">
38 <jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}"></jar>
39 </target>
40 <target name="clean" description="o Clean up the generated directories">
41 <delete dir="${defaulttargetdir}"></delete>
42 <delete dir="${distdir}"></delete>
43 </target>
44 <target name="dist" description="o Create a distribution" depends="jar, javadoc">
45 <mkdir dir="dist"></mkdir>
46 <copy todir="dist">
47 <fileset dir="${defaulttargetdir}" includes="*.jar"></fileset>
48 <fileset dir="${basedir}" includes="LICENSE*, README*"></fileset>
49 </copy>
50 </target>
51 <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
52 <fail message="There were test failures."></fail>
53 </target>
54 <target name="internal-test" if="Junit.present" depends="junit-present,compile-tests">
55 <mkdir dir="${testreportdir}"></mkdir>
56 <junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
57 <sysproperty key="basedir" value="."></sysproperty>
58 <formatter type="xml"></formatter>
59 <formatter usefile="false" type="plain"></formatter>
60 <classpath>
61 <path refid="build.classpath"></path>
62 <pathelement path="${testclassesdir}"></pathelement>
63 <pathelement path="${classesdir}"></pathelement>
64 </classpath>
65 <batchtest todir="${testreportdir}">
66 <fileset dir="src/java/test">
67 <include name="**/*Test.java"></include>
68 </fileset>
69 </batchtest>
70 </junit>
71 </target>
72 <target name="junit-present" unless="Junit.present" depends="init">
73 <echo>================================= WARNING ================================</echo>
74 <echo>Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed.</echo>
75 <echo>==========================================================================</echo>
76 </target>
77 <target name="compile-tests" if="Junit.present" depends="junit-present,compile">
78 <mkdir dir="${testclassesdir}"></mkdir>
79 <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
80 <src>
81 <pathelement location="src/java/test"></pathelement>
82 </src>
83 <classpath>
84 <path refid="build.classpath"></path>
85 <pathelement path="${classesdir}"></pathelement>
86 </classpath>
87 </javac>
88 </target>
89 <target name="javadoc" description="o Generate javadoc" depends="get-deps">
90 <mkdir dir="${javadocdir}"></mkdir>
91 <tstamp>
92 <format pattern="2002-yyyy" property="year"></format>
93 </tstamp>
94 <property name="copyright" value="Copyright &amp;copy; The Codehaus. All Rights Reserved."></property>
95 <property name="title" value="classworlds 1.1 API"></property>
96 <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java/main" packagenames="org.codehaus.classworlds.*">
97 <classpath>
98 <path refid="build.classpath"></path>
99 </classpath>
100 </javadoc>
101 </target>
102 <target name="get-deps" unless="noget" depends="init">
103 <!--Proxy settings works only with a JDK 1.2 and higher.-->
104 <setproxy></setproxy>
105 <get dest="${libdir}/[junit].jar" usetimestamp="true" ignoreerrors="true" src="file:/usr/share/maven-1.0/repository/JPP/jars/[junit].jar"></get>
106 </target>
107 <target name="install-maven">
108 <get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar"></get>
109 <unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar"></unjar>
110 </target>
111 </project>

  ViewVC Help
Powered by ViewVC 1.1.30