blob: 37aba57e3570d4fd2facdb5f36f95c6e035d7dfb [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project name="org.eclipse.wst.ws.explorer" default="build.wars" basedir=".">
<property name="wsexplorerDir" value="${buildDirectory}/plugins/org.eclipse.wst.ws.explorer/wsexplorer"/>
<target name="jspcompile" unless="wsexplorer.war" description="Pre-compile the JSPs in the org.eclipse.wst.ws.explorer plugin">
<java classname="org.apache.jasper.JspC" fork="true">
<arg line="-webxml ${wsexplorerDir}/WEB-INF/web.xml -d ${wsexplorerDir} -webapp ${wsexplorerDir}"/>
<classpath>
<fileset dir="${baseLocation}/plugins">
<include name="org.eclipse.tomcat*/*.jar" />
</fileset>
<fileset dir="${baseLocation}/plugins">
<include name="org.apache.ant*/lib/*.jar" />
</fileset>
</classpath>
</java>
<javac destdir="${wsexplorerDir}/WEB-INF/classes" includeAntRuntime="false" failonerror="false">
<src path="${wsexplorerDir}"/>
<classpath>
<fileset dir="${buildDirectory}/plugins">
<include name="**/*.jar" />
</fileset>
<fileset dir="${buildDirectory}/plugins">
<include name="*.jar" />
</fileset>
<dirset dir="${buildDirectory}/plugins">
<include name="**/@dot"/>
</dirset>
<fileset dir="${baseLocation}/plugins">
<include name="**/*.jar" />
</fileset>
<fileset dir="${baseLocation}/plugins">
<include name="*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="wsexplorer.war" unless="wsexplorer.war" description="Create war: wsexplorer.war.">
<zip
basedir="${wsexplorerDir}"
destfile="${wsexplorerDir}/../wsexplorer.war"
whenempty="skip" update="false"
excludes="**/*.java **/*.jsp **/*.inc"
/>
</target>
<target name="build.wars" description="Build all the wars for the plug-in: org.eclipse.wst.ws.explorer.">
<available property="wsexplorer.war" file="${wsexplorerDir}/../wsexplorer.war"/>
<antcall target="jspcompile"/>
<antcall target="wsexplorer.war"/>
</target>
<target name="clean.wars" description="Clean all the wars for the plug-in: org.eclipse.wst.ws.explorer.">
<delete file="wsexplorer.war"/>
</target>
</project>