Terence Fernandes
|
Posted: 01/28/2004, 1:31 PM |
|
Hi; I'm struggling with the instructions and the deployment of JSP: here i sthe build.xml file. You'll say JDK1.4 is OK but the build complains. Would appreciate your help... Thanks
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <!-- //BuildXML @0-628F8A7A
-->
- <project name="Test" default="build" basedir=".">
- <target name="init">
<property name="cp" value="C:\j2sdk1.4.2\lib\servlet.jar;" />
<property name="deployment.dir" value="C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT" />
<property name="project.name" value="Test" />
<property name="encoding" value="ISO-8859-1" />
<available classname="javax.servlet.ServletConfig" classpath="${cp}" property="servlet.available" />
<available classname="java.util.regex.Pattern" classpath="${cp}" property="jdk14.available" />
<echo message="JSP build: 2.2.0084" />
</target>
- <target name="check.servlet.lib" depends="init" unless="servlet.available">
<fail message="Servlet 2.2 API is not found in your Class Path. Please add it to site Class Path property." />
</target>
- <target name="check.oro.regexp" depends="init" unless="oro.available">
<fail message="Jakarta ORO API is not found in your Class Path. Please add it to site Class Path property." />
</target>
- <target name="check.jdk14.regexp" depends="init" unless="jdk14.available">
<fail message="You selected to use JDK 1.4 regexps but your JAVA_HOME points to earlier version. Please install and configure J2SDK version 1.4 or choose other Regexp library." />
</target>
- <target name="check.jdbcext.lib" depends="init" unless="jdbcext.available">
<fail message="JDBC 2.0 API is not found in your Class Path. Please add it to site Class Path property." />
</target>
- <target name="compile" depends="check.servlet.lib,check.jdk14.regexp">
<mkdir dir="app/WEB-INF/classes" />
<javac srcdir="src" destdir="app/WEB-INF/classes" classpath="${cp}" debug="on" encoding="${encoding}" />
</target>
- <target name="build" depends="compile">
- <copy todir="app/WEB-INF">
<fileset dir="config" />
</copy>
- <copy todir="app">
<fileset dir=".." excludes="CCSBuild/**,**/*.ccp,**/*.ccs" />
</copy>
</target>
- <target name="pack" depends="build">
<mkdir dir="appWar" />
<jar jarfile="appWar/${project.name}.war" basedir="app" />
</target>
- <target name="deploy" depends="pack">
<delete dir="${deployment.dir}/${project.name}" />
<copy file="appWar/${project.name}.war" todir="${deployment.dir}" />
</target>
- <target name="doc" depends="init">
<mkdir dir="doc" />
- <javadoc packagenames="com.codecharge.*" sourcePath="src" classpath="${cp}" destdir="doc" Windowtitle="CCS JSP pattern API Documentation" Doctitle="CodeCharge Studio JSP pattern API Documentation">
<link href="http://java.sun.com/j2se/1.3/docs/api/" offline="true" packagelistLoc="c:\java\plists\jdk13" />
<link href="http://java.sun.com/webservices/docs/ea2/api/" offline="true" packagelistLoc="c:\java\plists\ws" />
</javadoc>
</target>
- <target name="clean">
<delete dir="app" />
<delete dir="bin" />
</target>
</project>
- <!-- //End BuildXML
-->
|
|
|
peterr
Posts: 5971
|
Posted: 01/28/2004, 3:01 PM |
|
Please contact our support: http://support.codecharge.com
or post to the Java Forum if you like help from other users.
I'm also curious what are the symptoms of the problem or what error messages are you seeing?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
|