/[debian]/libcommons-java-java/trunk/build.xml
ViewVC logotype

Annotation of /libcommons-java-java/trunk/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1586 - (hide annotations)
Sat Feb 28 22:21:58 2009 UTC (12 years, 1 month ago) by gregoa
File MIME type: text/xml
File size: 5989 byte(s)
[svn-inject] Forking libcommons-java-java source to Trunk
1 gregoa 1583 <?xml version="1.0" encoding="UTF-8"?>
2    
3     <!--build.xml generated by maven from project.xml version 1.5.5
4     on date October 29 2006, time 1005-->
5    
6     <project default="jar" name="commons-java" basedir=".">
7     <property name="defaulttargetdir" value="target">
8     </property>
9     <property name="libdir" value="target/lib">
10     </property>
11     <property name="classesdir" value="target/classes">
12     </property>
13     <property name="testclassesdir" value="target/test-classes">
14     </property>
15     <property name="testclassesdir" value="target/test-classes">
16     </property>
17     <property name="testreportdir" value="target/test-reports">
18     </property>
19     <property name="distdir" value="dist">
20     </property>
21     <property name="javadocdir" value="dist/docs/api">
22     </property>
23     <property name="final.name" value="commons-java-1.5.5">
24     </property>
25     <path id="build.classpath">
26     <fileset dir="${libdir}">
27     <include name="**/*.jar">
28     </include>
29     </fileset>
30     </path>
31     <target name="init" description="o Initializes some properties">
32     <mkdir dir="${libdir}">
33     </mkdir>
34     <condition property="noget">
35     <equals arg2="only" arg1="${build.sysclasspath}">
36     </equals>
37     </condition>
38     <!--Test if JUNIT is present in ANT classpath-->
39    
40     <available property="Junit.present" classname="junit.framework.Test">
41     </available>
42     </target>
43     <target name="compile" description="o Compile the code" depends="get-deps">
44     <mkdir dir="${classesdir}">
45     </mkdir>
46     <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
47     <src>
48     <pathelement location="src/java">
49     </pathelement>
50     </src>
51     <classpath refid="build.classpath">
52     </classpath>
53     </javac>
54     </target>
55     <target name="jar" description="o Create the jar" depends="compile,test">
56     <jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}">
57     </jar>
58     </target>
59     <target name="clean" description="o Clean up the generated directories">
60     <delete dir="${defaulttargetdir}">
61     </delete>
62     <delete dir="${distdir}">
63     </delete>
64     </target>
65     <target name="dist" description="o Create a distribution" depends="jar, javadoc">
66     <mkdir dir="dist">
67     </mkdir>
68     <copy todir="dist">
69     <fileset dir="${defaulttargetdir}" includes="*.jar">
70     </fileset>
71     <fileset dir="${basedir}" includes="LICENSE*, README*">
72     </fileset>
73     </copy>
74     </target>
75     <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
76     <fail message="There were test failures.">
77     </fail>
78     </target>
79     <target name="internal-test" if="Junit.present" depends="junit-present,compile-tests">
80     <mkdir dir="${testreportdir}">
81     </mkdir>
82     <junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
83     <sysproperty key="basedir" value=".">
84     </sysproperty>
85     <formatter type="xml">
86     </formatter>
87     <formatter usefile="false" type="plain">
88     </formatter>
89     <classpath>
90     <path refid="build.classpath">
91     </path>
92     <pathelement path="${testclassesdir}">
93     </pathelement>
94     <pathelement path="${classesdir}">
95     </pathelement>
96     </classpath>
97     <batchtest todir="${testreportdir}">
98     <fileset dir="src/test">
99     <include name="**/*Test.java">
100     </include>
101     </fileset>
102     </batchtest>
103     </junit>
104     </target>
105     <target name="junit-present" unless="Junit.present" depends="init">
106     <echo>================================= WARNING ================================</echo>
107     <echo>Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed.</echo>
108     <echo>==========================================================================</echo>
109     </target>
110     <target name="compile-tests" if="Junit.present" depends="junit-present,compile">
111     <mkdir dir="${testclassesdir}">
112     </mkdir>
113     <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
114     <src>
115     <pathelement location="src/test">
116     </pathelement>
117     </src>
118     <classpath>
119     <path refid="build.classpath">
120     </path>
121     <pathelement path="${classesdir}">
122     </pathelement>
123     </classpath>
124     </javac>
125     <copy todir="${testclassesdir}">
126     <fileset dir="src/test">
127     <include name="**/*.xml">
128     </include>
129     </fileset>
130     </copy>
131     </target>
132     <target name="javadoc" description="o Generate javadoc" depends="get-deps">
133     <mkdir dir="${javadocdir}">
134     </mkdir>
135     <tstamp>
136     <format pattern="2004-yyyy" property="year">
137     </format>
138     </tstamp>
139     <property name="copyright" value="Copyright &amp;copy; 2004-2006 . All Rights Reserved.">
140     </property>
141     <property name="title" value="commons-java 1.5.5 API">
142     </property>
143     <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java" packagenames="org.onemind.commons.java.*">
144     <classpath>
145     <path refid="build.classpath">
146     </path>
147     </classpath>
148     </javadoc>
149     </target>
150     <target name="get-deps" unless="noget" depends="init">
151     <!--Proxy settings works only with a JDK 1.2 and higher.-->
152    
153     <setproxy>
154     </setproxy>
155     <get dest="${libdir}/servletapi-2.3.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3.jar">
156     </get>
157     <get dest="${libdir}/commons-fileupload-1.0.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-fileupload/jars/commons-fileupload-1.0.jar">
158     </get>
159     </target>
160     <target name="install-maven">
161     <get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar">
162     </get>
163     <unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar">
164     </unjar>
165     </target>
166     </project>

  ViewVC Help
Powered by ViewVC 1.1.26