forked from rmpestano/jsf-issuetracker-project
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
64 lines (56 loc) · 1.72 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
<?xml version="1.0" encoding='UTF-8' ?>
<project name="Jsf-IssueTracker-Project" basedir="." default="all">
<property file="build.properties" />
<path id="classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<path id="webinf-classpath">
<fileset dir="${webroot.dir}/WEB-INF/lib">
<include name="**/*.jar" />
</fileset>
</path>
<path id="build-classpath">
<fileset dir="${lib.dir}/build">
<include name="*.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="${default.target.dir}" />
<mkdir dir="${classes.dir}" />
<mkdir dir="${war.dir}" />
</target>
<target name="compile" depends="clean">
<!-- Compila App classes -->
<copy todir="${classes.dir}">
<fileset dir="${source.dir}" excludes="**/*.java" />
</copy>
<javac destdir="${classes.dir}" srcdir="${source.dir}" debug="true" debuglevel="vars,lines,source"
source="1.6" target="1.6" encoding="UTF-8">
<classpath>
<path refid="webinf-classpath" />
<path refid="build-classpath" />
</classpath>
</javac>
</target>
<target name="war" description="create war file" depends="compile">
<war destfile="${war.file}" webxml="${webroot.dir}/WEB-INF/web.xml" duplicate="fail">
<classes dir="${classes.dir}" />
<lib dir="${webroot.dir}/WEB-INF/lib"></lib>
<fileset dir="${webroot.dir}">
<include name="WEB-INF/faces-config.xml"/>
<include name="META-INF/**"/>
<include name="resources/**"/>
<include name="pages/**"/>
<include name="*.jsp" />
<include name="*.jspx" />
<include name="*.html" />
<include name="*.xhtml" />
</fileset>
</war>
</target>
<target name="all" depends="war">
<delete dir="${classes.dir}" />
</target>
</project>