1 <!-- |
|
2 # |
|
3 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 # All rights reserved. |
|
5 # This component and the accompanying materials are made available |
|
6 # under the terms of "Eclipse Public License v1.0" |
|
7 # which accompanies this distribution, and is available |
|
8 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 # |
|
10 # Initial Contributors: |
|
11 # Nokia Corporation - initial contribution. |
|
12 # |
|
13 # Contributors: |
|
14 # |
|
15 # Description: |
|
16 # |
|
17 --> |
|
18 <project name="InstallerTestServer" default="dist" basedir=".."> |
|
19 <property name="catalina.home" value="C:/apps/apache-tomcat-6.0.26"/> |
|
20 <property name="build" value="${basedir}/build"/> |
|
21 <property name="java.build" value="${build}/javabuild"/> |
|
22 <property name="classes" value="${java.build}/WEB-INF/classes"/> |
|
23 <property name="src" value="${basedir}/javasrc"/> |
|
24 <property name="web" value="${basedir}/content"/> |
|
25 |
|
26 <path id="compile.classpath"> |
|
27 <fileset dir="${catalina.home}/bin"> |
|
28 <include name="*.jar"/> |
|
29 </fileset> |
|
30 <pathelement location="${catalina.home}/lib"/> |
|
31 <fileset dir="${catalina.home}/lib"> |
|
32 <include name="*.jar"/> |
|
33 </fileset> |
|
34 </path> |
|
35 |
|
36 <target name="compile"> |
|
37 <mkdir dir="${classes}"/> |
|
38 <javac source="1.5" target="1.5" destdir="${classes}" srcdir="${src}"> |
|
39 <classpath refid="compile.classpath"/> |
|
40 </javac> |
|
41 </target> |
|
42 |
|
43 <target name="dist" depends="compile"> |
|
44 <jar jarfile="${build}/installertest.war" basedir="${java.build}" |
|
45 manifest="${web}/META-INF/MANIFEST.MF"/> |
|
46 <jar jarfile="${build}/installertest.war" basedir="${web}" |
|
47 update="true"/> |
|
48 </target> |
|
49 |
|
50 <target name="clean"> |
|
51 <delete dir="${java.build}"/> |
|
52 <delete file="${build}/installertest.war"/> |
|
53 </target> |
|
54 </project> |
|