7600 |
22 Feb 19 |
nicklas |
1 |
<?xml version="1.0" encoding="UTF-8"?> |
7600 |
22 Feb 19 |
nicklas |
2 |
<!-- |
7600 |
22 Feb 19 |
nicklas |
$Id$ |
7600 |
22 Feb 19 |
nicklas |
4 |
|
7600 |
22 Feb 19 |
nicklas |
This file is part of BASE - BioArray Software Environment. |
7600 |
22 Feb 19 |
nicklas |
Available at http://base.thep.lu.se/ |
7600 |
22 Feb 19 |
nicklas |
7 |
|
7600 |
22 Feb 19 |
nicklas |
BASE is free software; you can redistribute it and/or modify it |
7600 |
22 Feb 19 |
nicklas |
under the terms of the GNU General Public License as published by |
7600 |
22 Feb 19 |
nicklas |
the Free Software Foundation; either version 3 of the License, or |
7600 |
22 Feb 19 |
nicklas |
(at your option) any later version. |
7600 |
22 Feb 19 |
nicklas |
12 |
|
7600 |
22 Feb 19 |
nicklas |
BASE is distributed in the hope that it will be useful, but |
7600 |
22 Feb 19 |
nicklas |
WITHOUT ANY WARRANTY; without even the implied warranty of |
7600 |
22 Feb 19 |
nicklas |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
7600 |
22 Feb 19 |
nicklas |
General Public License for more details. |
7600 |
22 Feb 19 |
nicklas |
17 |
|
7600 |
22 Feb 19 |
nicklas |
You should have received a copy of the GNU General Public License |
7600 |
22 Feb 19 |
nicklas |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
7600 |
22 Feb 19 |
nicklas |
20 |
--> |
7600 |
22 Feb 19 |
nicklas |
21 |
<project |
7600 |
22 Feb 19 |
nicklas |
22 |
name="JspPrecompile" |
7600 |
22 Feb 19 |
nicklas |
23 |
default="all" |
7600 |
22 Feb 19 |
nicklas |
24 |
basedir="." |
7600 |
22 Feb 19 |
nicklas |
25 |
> |
7600 |
22 Feb 19 |
nicklas |
26 |
|
7600 |
22 Feb 19 |
nicklas |
27 |
<!-- |
7600 |
22 Feb 19 |
nicklas |
Required parameters: |
7600 |
22 Feb 19 |
nicklas |
tomcat.home = path to Tomcat installation directory |
7600 |
22 Feb 19 |
nicklas |
jsp.src = path to directory containing JSP files to be compile |
7600 |
22 Feb 19 |
nicklas |
jsp.build = path to working directory where intermediate .java files and compiled .class files should be saved |
7711 |
21 May 19 |
nicklas |
javac.release = source and target version of java files |
7600 |
22 Feb 19 |
nicklas |
33 |
--> |
7600 |
22 Feb 19 |
nicklas |
34 |
<property name="javac.encoding" value="UTF-8" /> |
7600 |
22 Feb 19 |
nicklas |
35 |
<!-- |
7600 |
22 Feb 19 |
nicklas |
Use Xlint to detect potential problems: |
7600 |
22 Feb 19 |
nicklas |
-serial is needed since jasper doesn't generate a serialVersionUID |
7600 |
22 Feb 19 |
nicklas |
38 |
--> |
7600 |
22 Feb 19 |
nicklas |
39 |
<property name="jsp.xlint" value="all,-serial" /> |
7600 |
22 Feb 19 |
nicklas |
40 |
|
7600 |
22 Feb 19 |
nicklas |
41 |
<import file="${tomcat.home}/bin/catalina-tasks.xml" /> |
7600 |
22 Feb 19 |
nicklas |
42 |
|
7600 |
22 Feb 19 |
nicklas |
<!-- 'compile' JSP files to Java files --> |
7600 |
22 Feb 19 |
nicklas |
44 |
<target name="jspc"> |
7600 |
22 Feb 19 |
nicklas |
45 |
<mkdir dir="${jsp.build}/java" /> <!-- output directory for *.java files --> |
7607 |
27 Feb 19 |
nicklas |
46 |
<echo>Using Tomcat in: ${tomcat.home}</echo> |
7600 |
22 Feb 19 |
nicklas |
47 |
<jasper |
7600 |
22 Feb 19 |
nicklas |
48 |
validateXml="false" |
7600 |
22 Feb 19 |
nicklas |
49 |
uriroot="${jsp.src}" |
7600 |
22 Feb 19 |
nicklas |
50 |
outputDir="${jsp.build}/java" |
7600 |
22 Feb 19 |
nicklas |
51 |
webXmlFragment="${jsp.build}/generated_web.xml" |
7600 |
22 Feb 19 |
nicklas |
52 |
javaencoding="${javac.encoding}" |
7600 |
22 Feb 19 |
nicklas |
53 |
strictQuoteEscaping="false" |
7600 |
22 Feb 19 |
nicklas |
54 |
/> |
7600 |
22 Feb 19 |
nicklas |
55 |
</target> |
7600 |
22 Feb 19 |
nicklas |
56 |
|
7600 |
22 Feb 19 |
nicklas |
57 |
<target name="compile"> |
7600 |
22 Feb 19 |
nicklas |
58 |
|
7600 |
22 Feb 19 |
nicklas |
59 |
<path id="compile.classpath"> |
7600 |
22 Feb 19 |
nicklas |
60 |
<pathelement location="${jsp.src}/WEB-INF/classes" /> |
7600 |
22 Feb 19 |
nicklas |
61 |
<fileset dir="${jsp.src}/WEB-INF/lib"> |
7600 |
22 Feb 19 |
nicklas |
62 |
<include name="*.jar" /> |
7600 |
22 Feb 19 |
nicklas |
63 |
</fileset> |
7600 |
22 Feb 19 |
nicklas |
64 |
<pathelement location="${tomcat.home}/lib" /> |
7600 |
22 Feb 19 |
nicklas |
65 |
<fileset dir="${tomcat.home}/lib"> |
7600 |
22 Feb 19 |
nicklas |
66 |
<include name="*.jar"/> |
7600 |
22 Feb 19 |
nicklas |
67 |
</fileset> |
7600 |
22 Feb 19 |
nicklas |
68 |
<fileset dir="${tomcat.home}/bin"> |
7600 |
22 Feb 19 |
nicklas |
69 |
<include name="*.jar"/> |
7600 |
22 Feb 19 |
nicklas |
70 |
</fileset> |
7600 |
22 Feb 19 |
nicklas |
71 |
</path> |
7600 |
22 Feb 19 |
nicklas |
72 |
|
7600 |
22 Feb 19 |
nicklas |
73 |
<mkdir dir="${jsp.build}/classes" /> <!-- output directory for *.class files --> |
7600 |
22 Feb 19 |
nicklas |
74 |
<echo>Using Xlint:${jsp.xlint}</echo> |
7600 |
22 Feb 19 |
nicklas |
75 |
<echo>Override this by setting 'jsp.xlint' in 'build.properties'</echo> |
7600 |
22 Feb 19 |
nicklas |
76 |
<javac |
7600 |
22 Feb 19 |
nicklas |
77 |
destdir="${jsp.build}/classes" |
7600 |
22 Feb 19 |
nicklas |
78 |
srcdir="${jsp.build}/java" |
7600 |
22 Feb 19 |
nicklas |
79 |
classpathref="compile.classpath" |
7600 |
22 Feb 19 |
nicklas |
80 |
fork="true" |
7600 |
22 Feb 19 |
nicklas |
81 |
debug="true" |
7600 |
22 Feb 19 |
nicklas |
82 |
includeantruntime="false" |
7711 |
21 May 19 |
nicklas |
83 |
release="${javac.release}" |
7600 |
22 Feb 19 |
nicklas |
84 |
encoding="${javac.encoding}" |
7600 |
22 Feb 19 |
nicklas |
85 |
> |
7600 |
22 Feb 19 |
nicklas |
86 |
<compilerarg value="-Xlint:${jsp.xlint}" /> |
7602 |
22 Feb 19 |
nicklas |
87 |
<exclude name="org/apache/jsp/extensions/**" /> |
7600 |
22 Feb 19 |
nicklas |
88 |
</javac> |
7600 |
22 Feb 19 |
nicklas |
89 |
</target> |
7600 |
22 Feb 19 |
nicklas |
90 |
|
7600 |
22 Feb 19 |
nicklas |
91 |
<target name="all" depends="jspc,compile" /> |
7600 |
22 Feb 19 |
nicklas |
92 |
</project> |