Project

General

Profile

1 3189 berkley
<?xml version="1.0" encoding="utf-8" ?>
2
<project name="kepler-web" default="compile" basedir=".">
3
  <description>
4
    kepler-web build file.  This is used to package up your project as a jar,
5
    if you want to distribute it.  This isn't needed for normal operation.
6
  </description>
7
8
  <!-- set classpath -->
9
  <path id="project.class.path">
10
    <pathelement path="${java.class.path}/"/>
11 3196 berkley
    <pathelement path="/home/berkley/library.kepler-project/gwt/gwt-user.jar"/>
12
    <pathelement path="/home/berkley/library.kepler-project/gwt/gwt-servlet.jar"/>
13 3189 berkley
    <pathelement path="./lib/client.jar"/>
14
    <pathelement path="./lib/utilities.jar"/>
15
    <pathelement path="./lib/xalan.jar"/>
16
    <pathelement path="./lib/xml-apis.jar"/>
17
    <!-- Additional dependencies (such as junit) go here -->
18
  </path>
19
20
  <target name="init">
21
    <property name="installdir" value="/usr/local/devtools/tomcat/webapps"/>
22
  </target>
23
24
  <target name="compile" depends="init" description="Compile src to bin">
25
    <mkdir dir="bin"/>
26
    <javac srcdir="src:test" destdir="bin" includes="**" debug="on" debuglevel="lines,vars,source" source="1.4">
27
      <classpath refid="project.class.path"/>
28
    </javac>
29
  </target>
30
31
  <target name="package" depends="compile" description="Package up the project as a jar">
32
    <jar destfile="kepler-web.jar">
33
      <fileset dir="bin">
34
        <include name="**/*.class"/>
35
      </fileset>
36
      <!-- Get everything; source, modules, html files -->
37
      <fileset dir="src">
38
        <include name="**"/>
39
      </fileset>
40
      <fileset dir="test">
41
        <include name="**"/>
42
      </fileset>
43
    </jar>
44
  </target>
45
46
  <target name="clean">
47
    <!-- Delete the bin directory tree -->
48
    <delete file="kepler-web.jar"/>
49
    <delete>
50
      <fileset dir="bin" includes="**/*.class"/>
51
    </delete>
52
  </target>
53
54
  <target name="all" depends="package"/>
55
56
</project>