15 |
|
|
16 |
<target name="init"> |
<target name="init"> |
17 |
<mkdir dir="${builddir}" /> |
<mkdir dir="${builddir}" /> |
18 |
|
<mkdir dir="lib" /> |
19 |
</target> |
</target> |
20 |
|
|
21 |
|
|
64 |
<delete dir="lib" /> |
<delete dir="lib" /> |
65 |
</target> |
</target> |
66 |
|
|
67 |
|
|
68 |
|
<target name="jspvalidate" depends="compile"> |
69 |
|
<taskdef classname="org.apache.jasper.JspC" name="jasper" > |
70 |
|
<classpath> |
71 |
|
<path refid="path.base"/> |
72 |
|
</classpath> |
73 |
|
</taskdef> |
74 |
|
|
75 |
|
<echo message="launching jasper jspc" /> |
76 |
|
<jasper verbose="1" |
77 |
|
package="src" |
78 |
|
uriroot="WebContent" |
79 |
|
webXmlFragment="${build.dir}/generated_web.xml" |
80 |
|
outputDir="${jspdir}" /> |
81 |
|
|
82 |
|
<javac srcdir="jspdir/src" destdir="jspdir/" debug="on" optimize="on" includeantruntime="false" encoding="UTF-8"> |
83 |
|
<classpath> |
84 |
|
<path refid="path.base"/> |
85 |
|
<pathelement location="${builddir}"/> |
86 |
|
</classpath> |
87 |
|
</javac> |
88 |
|
|
89 |
|
</target> |
90 |
|
|
91 |
|
<!-- |
92 |
<target name="jspvalidate" depends="compile"> |
<target name="jspvalidate" depends="compile"> |
93 |
<echo message="executing glassfish jspc" /> |
<echo message="executing glassfish jspc" /> |
94 |
<exec executable="${glassfish}/bin/jspc" failonerror="true"> |
<exec executable="${glassfish}/bin/jspc" failonerror="true"> |
102 |
<arg value="WebContent" /> |
<arg value="WebContent" /> |
103 |
</exec> |
</exec> |
104 |
</target> |
</target> |
105 |
|
--> |
106 |
|
|
107 |
<target name="war" depends="jspvalidate" description="Builds the WAR file for installation."> |
<target name="war" depends="jspvalidate" description="Builds the WAR file for installation."> |
108 |
<war warfile="${warfile}" webxml="WebContent/WEB-INF/web.xml"> |
<war warfile="${warfile}" webxml="WebContent/WEB-INF/web.xml"> |