-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuid.xml
More file actions
85 lines (65 loc) · 2.92 KB
/
buid.xml
File metadata and controls
85 lines (65 loc) · 2.92 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="war" name="sql-executer">
<property environment="env" />
<property name="war.name" value="sql-executer.war" />
<path id="project.class.path">
<pathelement location="lib/commons-beanutils-1.8.0.jar" />
<pathelement location="lib/commons-io-1.3.1.jar" />
<pathelement location="lib/commons-lang-2.3.jar" />
<pathelement location="lib/commons-logging.jar" />
<pathelement location="lib/jtds-1.2.jar" />
<pathelement location="lib/quartz.jar" />
<pathelement location="${env.JBOSS_HOME}/server/default/lib/javax.servlet.jar" />
<pathelement location="${env.JBOSS_HOME}/server/default/lib/javax.servlet.jsp.jar" />
</path>
<target name="init">
<mkdir dir="build" />
<delete failonerror="false" includeemptydirs="true" file="build/${war.name}" />
</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" />
</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" />
</copy>
</target>
<target name="war" depends="javac">
<echo message="Generando WAR"/>
<war compress="false" destfile="build/${war.name}" 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/${war.name}" />
</target>
<target name="clean">
<delete failonerror="false" includeemptydirs="true">
<fileset dir="dist/" />
<fileset dir="build/" />
</delete>
</target>
<target name="deployJBoss" depends="war">
<copy todir="${env.JBOSS_HOME}/server/default/deploy" file="build/${war.name}" />
</target>
<target name="redeployJBoss" depends="undeployJBoss, deployJBoss" />
<target name="undeployJBoss">
<delete failonerror="false" includeemptydirs="true" file="${env.JBOSS_HOME}/server/default/deploy/${war.name}" />
</target>
<target name="javadoc" description="Crea Javadoc API">
<mkdir dir="dist/javadoc" />
<javadoc sourcepath="src" destdir="dist/javadoc" packagenames="*" classpathref="project.class.path"/>
</target>
</project>