You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.3 KiB
61 lines
2.3 KiB
<?xml version="1.0" encoding="UTF-8"?> |
|
<project name="superx" default="compile_jsps" basedir="."> |
|
|
|
<!-- |
|
Für dieses buildfile müssen die Java Properties TOMCAT_BASE (Tomcatverzeichnis) und |
|
JSP_STATIC (Zielverzeichnis für die kompilierten JSPs) gesetzt sein |
|
--> |
|
|
|
<import file="${TOMCAT_BASE}/bin/catalina-tasks.xml" optional="true" /> |
|
|
|
<target name="jsps_to_java"> |
|
<jasper |
|
validateXml="false" |
|
uriroot="${SUPERX_DIR}" |
|
package="de.superx.jsp" |
|
webXmlInclude="${JSP_CONFIG_FILE}" |
|
outputDir="${JSP_JAVA_DIR}" |
|
classPath="${SUPERX_DIR}/WEB-INF/lib/*" |
|
/> |
|
</target> |
|
|
|
<target name="compile_jsps"> |
|
<delete includeEmptyDirs="true" > |
|
<fileset dir="${JSP_STATIC}" includes="**"></fileset> |
|
</delete> |
|
<antcall target="jsps_to_java"> |
|
<param name="JSP_JAVA_DIR" value="${JSP_STATIC}/src" /> |
|
<param name="JSP_CONFIG_FILE" value="${JSP_STATIC}/jsp_servlet_config.xml" /> |
|
</antcall> |
|
<mkdir dir="${JSP_STATIC}/dest"/> |
|
<javac source="11" target="11" |
|
srcdir="${JSP_STATIC}/src" |
|
destdir="${JSP_STATIC}/dest" |
|
listfiles="false" |
|
encoding="UTF-8" |
|
debug="yes" |
|
verbose="no" |
|
fork="no" |
|
> |
|
<classpath> |
|
<fileset file="${TOMCAT_BASE}/bin/tomcat-juli.jar"/> |
|
<fileset dir="${TOMCAT_BASE}/lib"> |
|
<include name="**/*.jar"/> |
|
</fileset> |
|
<pathelement location="${SUPERX_DIR}/WEB-INF/classes/"/> |
|
<path refid="classpath"/> |
|
</classpath> |
|
<compilerarg compiler="org.eclipse.jdt.core.JDTCompilerAdapter" /> |
|
</javac> |
|
</target> |
|
|
|
<target name="build_jsp_servlets"> |
|
<delete dir="${SRC_DIR}/de/superx/jsp"/> |
|
<delete file="${SUPERX_DIR}/WEB-INF/jsp_servlet_config.xml" /> |
|
<mkdir dir="${SRC_DIR}/de/superx/jsp"/> |
|
<antcall target="jsps_to_java"> |
|
<param name="JSP_JAVA_DIR" value="${SRC_DIR}" /> |
|
<param name="JSP_CONFIG_FILE" value="${SUPERX_DIR}/WEB-INF/jsp_servlet_config.xml" /> |
|
</antcall> |
|
</target> |
|
</project>
|
|
|