-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
76 lines (44 loc) · 1.65 KB
/
build.xml
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
45
46
47
48
49
50
51
52
53
<project>
<filter filtersfile="build.properties"/>
<property file="build.properties"/>
<target name="prepare">
<echo message="Hello, world"/>
<mkdir dir="dist/sistemaweb/build/producao"/>
<mkdir dir="dist/sistemaweb/build/teste"/>
<mkdir dir="dist/sistemaweb/ant"/>
<mkdir dir="dist/sistemaweb/sql"/>
<mkdir dir="build/classes"/>
<mkdir dir="temp"/>
</target>
<target name="clean">
<!--<delete dir="build"/>-->
<delete dir="temp"/>
<delete dir="dist"/>
</target>
<!-- contruir distribuicao de producao -->
<target name="build" depends="clean,prepare" >
<copydir src="etc/estrutura" dest="dist/sistemaweb" filtering="true"/>
<!--<javac srcdir="src" destdir="build/classes"/>-->
<copydir src="WebContent" dest="temp"/>
<delete file="temp/META-INF/context.xml"/>
<copy file="etc/context.xml.producao" tofile="temp/META-INF/context.xml" filtering="true"/>
<war destfile="dist/sistemaweb/build/producao/sistemaweb.war" webxml="temp/WEB-INF/web.xml">
<classes dir="build/classes"/>
<lib dir="temp/WEB-INF/lib"/>
<fileset dir="temp"/>
</war>
<delete dir="temp"/>
<copydir src="${ANT_HOME}" dest="dist/sistemaweb/ant" excludes="${ANT_HOME}/docs/**"/>
</target>
<!-- construir distribuicao de testes -->
<target name="build-teste">
<delete file="temp/META-INF/context.xml"/>
<copy file="etc/context.xml.teste" tofile="temp/META-INF/context.xml" filtering="true"/>
<war destfile="dist/sistemaweb/build/teste/sistemawebTeste.war" webxml="temp/WEB-INF/web.xml">
<classes dir="build/classes"/>
<lib dir="temp/WEB-INF/lib"/>
<fileset dir="temp"/>
</war>
</target>
<!--executar testes -->
</project>