-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
109 lines (88 loc) · 4.25 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="war" name="reports14">
<property environment="env" />
<path id="project.class.path">
<pathelement location="lib/commons-codec-1.5.jar" />
<pathelement location="lib/commons-beanutils-1.8.0.jar" />
<pathelement location="lib/commons-collections-3.2.1.jar" />
<pathelement location="lib/commons-email-1.2.jar" />
<pathelement location="lib/commons-io-1.1.jar" />
<pathelement location="lib/commons-lang-2.3.jar" />
<pathelement location="lib/hsqldb.jar" />
<pathelement location="lib/ibatis-common-2.jar" />
<pathelement location="lib/ibatis-dao-2.jar" />
<pathelement location="lib/ibatis-sqlmap-2.jar" />
<pathelement location="lib/jakarta-oro.jar" />
<pathelement location="lib/log4j-1.2.13.jar" />
<pathelement location="lib/poi-2.5.1-final-20040804.jar" />
<pathelement location="lib/struts-el.jar" />
<pathelement location="lib/struts-legacy.jar" />
<pathelement location="lib/struts.jar" />
<pathelement location="lib/jtds-1.2.jar" />
<pathelement location="lib/json-lib-2.3-jdk13.jar" />
<pathelement location="lib/ezmorph-1.0.6.jar" />
<pathelement location="${env.JBOSS_HOME}/server/default/lib/javax.servlet.jar" />
<pathelement location="${env.JBOSS_HOME}/server/default/lib/javax.servlet.jsp.jar" />
<pathelement location="${env.TOMCAT_HOME}/common/lib/servlet-api.jar"/>
<pathelement location="${env.TOMCAT_HOME}/common/lib/jsp-api.jar"/>
</path>
<target name="init">
<mkdir dir="build" />
<delete failonerror="false" includeemptydirs="true" file="build/reports14.war" />
</target>
<target name="javac" depends="init">
<mkdir dir="build/WEB-INF/classes" />
<echo message="Compilando..."/>
<javac srcdir="src" destdir="build/WEB-INF/classes" classpathref="project.class.path" debug="yes" >
<classpath path="build/WEB-INF/classes" />
</javac>
<echo message="Preparando WAR"/>
<copy todir="build/WEB-INF/classes">
<fileset dir="src" includes="**/*.properties" />
<fileset dir="src" includes="**/*.xml" />
<fileset dir="src" includes="**/*.vm" />
</copy>
<copy todir="build/">
<fileset dir="web" includes="**/*.*" />
</copy>
<copy todir="build/WEB-INF">
<fileset dir="web/WEB-INF" includes="**/*.*" />
</copy>
<copy todir="build/WEB-INF/lib">
<fileset dir="lib" includes="**/*.jar" >
<exclude name="lib/log4j-1.2.13.jar"/>
<exclude name="lib/hsqldb.jar"/>
</fileset>
</copy>
</target>
<target name="war" depends="javac">
<echo message="Generando WAR"/>
<war compress="false" destfile="build/reports14.war" webxml="build/WEB-INF/web.xml" basedir="build" excludes="WEB-INF/web.xml" />
</target>
<target name="dist" depends="war">
<mkdir dir="dist"/>
<copy todir="dist" file="build/reports14.war" />
</target>
<target name="clean">
<delete failonerror="false" includeemptydirs="true">
<fileset dir="build/" />
</delete>
<delete dir="docker/artefacts" />
</target>
<target name="deploy" depends="war">
<!--<copy todir="${env.JBOSS_HOME}/server/default/deploy" file="build/reports14.war" />-->
<copy todir="${env.TOMCAT_HOME}/webapps" file="build/reports14.war"/>
</target>
<target name="redeploy" depends="undeploy, deploy" />
<target name="undeploy">
<!--<delete failonerror="false" includeemptydirs="true" file="${env.JBOSS_HOME}/server/default/deploy/reports14.war" />-->
<delete failonerror="false" includeemptydirs="true" file="${env.TOMCAT_HOME}/webapps/reports14.war"/>
</target>
<target name="javadoc" description="Crea Javadoc API">
<mkdir dir="build/javadoc" />
<javadoc sourcepath="src" destdir="build/javadoc" packagenames="*" classpathref="project.class.path"/>
</target>
<target name="docker" depends="clean,war">
<copy todir="docker/artefacts" file="build/reports14.war"/>
</target>
</project>