~ubuntu-branches/ubuntu/trusty/libstruts1.2-java/trusty-proposed

« back to all changes in this revision

Viewing changes to web/blank/WEB-INF/src/build.xml

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2004-11-19 15:35:25 UTC
  • Revision ID: james.westby@ubuntu.com-20041119153525-mdu08a76z4zo67xt
Tags: upstream-1.2.4
ImportĀ upstreamĀ versionĀ 1.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<project name="blank" basedir="../" default="all">
 
2
 
 
3
 
 
4
    <!-- Local system paths -->
 
5
    <property name="servlet.jar" value="/javasoft/lib/servlet.jar"/>
 
6
    <property name="jdbc20ext.jar" value="/javasoft/lib/jdbc2_0-stdext.jar"/>
 
7
        <!-- NOTE: If "dist" target is used, a local
 
8
             "projects/lib" directory will be utilized or created -->
 
9
    <property name="distpath.project" value="/projects/lib"/>
 
10
 
 
11
 
 
12
    <!-- Project settings -->
 
13
    <property name="project.title" value="Jakarta Struts Blank "/>
 
14
    <property name="project.distname" value="blank"/>
 
15
    <property name="project.version" value="1.1"/>
 
16
 
 
17
 
 
18
    <!-- Path settings -->
 
19
    <property name="doc.path" value="./doc/api"/>
 
20
    <property name="doc.src" value="./src/java"/>
 
21
 
 
22
 
 
23
    <!-- classpath for Struts 1.1 -->
 
24
    <path id="compile.classpath">
 
25
        <pathelement path ="lib/commons-beanutils.jar"/>
 
26
        <pathelement path ="lib/commons-digester.jar"/>
 
27
        <pathelement path ="lib/struts.jar"/>
 
28
        <pathelement path ="classes"/>
 
29
        <pathelement path ="${classpath}"/>
 
30
    </path>
 
31
 
 
32
 
 
33
    <!-- Check timestamp on files -->
 
34
    <target name="prepare">
 
35
        <tstamp/>
 
36
    </target>
 
37
 
 
38
 
 
39
    <!-- Copy any resource or configuration files -->
 
40
    <target name="resources">
 
41
        <copy todir="classes" includeEmptyDirs="no">
 
42
            <fileset dir="src/java">
 
43
            <patternset>
 
44
                <include name="**/*.conf"/>
 
45
                <include name="**/*.properties"/>
 
46
                <include name="**/*.xml"/>
 
47
            </patternset>
 
48
            </fileset>
 
49
        </copy>
 
50
    </target>
 
51
 
 
52
 
 
53
    <!-- Normal build of application -->
 
54
    <target name="compile" depends="prepare,resources">
 
55
        <javac srcdir="src" destdir="classes">
 
56
            <classpath refid="compile.classpath"/>
 
57
        </javac>
 
58
    </target>
 
59
 
 
60
 
 
61
    <!-- Remove classes directory for clean build -->
 
62
    <target name="clean"
 
63
      description="Prepare for clean build">
 
64
      <delete dir="classes"/>
 
65
      <mkdir  dir="classes"/>
 
66
    </target>
 
67
 
 
68
 
 
69
    <!-- Build Javadoc documentation -->
 
70
    <target name="javadoc"
 
71
     description="Generate JavaDoc API docs">
 
72
        <delete dir="./doc/api"/>
 
73
        <mkdir dir="./doc/api"/>
 
74
        <javadoc sourcepath="./src/java"
 
75
            destdir="./doc/api"
 
76
            classpath="${servlet.jar}:${jdbc20ext.jar}"
 
77
            packagenames="*"
 
78
            author="true"
 
79
            private="true"
 
80
            version="true"
 
81
            windowtitle="${project.title} API Documentation"
 
82
            doctitle="&lt;h1&gt;${project.title} Documentation (Version ${project.version})&lt;/h1&gt;"
 
83
            bottom="Copyright &#169; 2002">
 
84
            <classpath refid="compile.classpath"/>
 
85
        </javadoc>
 
86
    </target>
 
87
 
 
88
 
 
89
    <!-- Build entire project -->
 
90
    <target name="project" depends="clean,prepare,compile,javadoc"/>
 
91
 
 
92
 
 
93
    <!-- Create binary distribution -->
 
94
    <target name="dist"
 
95
        description="Create binary distribution">
 
96
 
 
97
      <mkdir
 
98
        dir="${distpath.project}"/>
 
99
      <jar
 
100
        jarfile="${distpath.project}/${project.distname}.jar"
 
101
        basedir="./classes"/>
 
102
      <copy
 
103
        file="${distpath.project}/${project.distname}.jar"
 
104
        todir="${distpath.project}"/>
 
105
 
 
106
      <war
 
107
        basedir="../"
 
108
        warfile="${distpath.project}/${project.distname}.war"
 
109
        webxml="web.xml">
 
110
        <exclude name="${distpath.project}/${project.distname}.war"/>
 
111
       </war>
 
112
 
 
113
    </target>
 
114
 
 
115
 
 
116
    <!-- Build project and create distribution-->
 
117
    <target name="all" depends="project,dist"/>
 
118
 
 
119
</project>