File: build.xml

package info (click to toggle)
fetchexc 2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 188 kB
  • ctags: 118
  • sloc: java: 1,164; xml: 338; sh: 68; makefile: 39
file content (44 lines) | stat: -rw-r--r-- 1,321 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0"?>
<!-- build file for fetchExc -->
<project name="fetchExc" default="build" basedir=".">

   <property name="lib" value="lib"/>
   <property name="jarname" value="fetchExc.jar"/>
   <property name="classpath" value="classes"/>
   <property name="include" value="include"/>
   <property name="src" value="."/>
   <property name="build" value="build"/>
   <property name="version" value="1.00"/>

   <target name="init">
	<mkdir dir="${build}"/>
	<mkdir dir="${lib}"/>
   </target>

   <target name="compile">
       <javac srcdir="${src}" destdir="${build}">
	    <classpath>
       		<pathelement path="${classpath}"/>
    		<!-- include all jar files  -->
       		<fileset dir="${include}">
           	    <include name="**/*.jar"/>
       		</fileset>
            </classpath>
	    <compilerarg value="-deprecation"/>
	</javac>
    </target>

    <target name="build" depends="init,compile">
	<jar jarfile="${lib}/${jarname}" basedir="${build}">
	    <manifest>
		<attribute name="Main-Class" value="fetchExc"/>
		<attribute name="Class-Path" value="commons-httpclient-3.0.1.jar commons-logging-1.1.jar commons-logging-api-1.1.jar commons-codec-1.3.jar"/>
	    </manifest>
	</jar>
    </target>

    <target name="clean">
	<delete dir="${build}"/>
	<delete dir="${lib}"/>
    </target>
</project>