hye everyone. I am a new bee in
ant. i am using ant 1.6.5. i wrote a build file for my project(jspbook) from the book - "
servlets and
jsp " by jayson falkner.I exactly copied the build file from the book and placed it in my jspbook folder inside webapps under
tomcat 5.5.9.
i got the message in cmd as:
"D:\Tomcat 5.5.9\webapps\jspbook\build.xml:2: The processing instruction target matching "[xX][mM][lL]" is not allowed."
here is my build.xml file:
<?xml version="1.0" ?>
<project name="jspbook" default="build" basedir=".">
<target name="build">
<echo>Starting Build [JSP BOOK -
http://www.jspbook.com] </echo>
<!-- Turn Tomcat Off -->
<antcall target="tomcatOff"/>
<!--compile Everything -->
<antcall target ="compile"/>
<!--Turn Tomcat on -->
<antcall target="tomcatOn"/>
<echo>Build Finished [JSP BOOK -
http://www.jspbook.com] </echo>
</target>
<target name="tomcatOff">
<echo>Turning Off Tomcat [http://www.jspbook.com]</echo>
<exec executable="bash" os="Windows">
<arg value="../../bin/shutdown.bat"/>
</exec>
<exec executable="bash" os="Linux">
<arg value="../../bin/shutdown.sh"/>
</exec>
</target>
<target name="tomcatOn">
<echo>starting Tomcat [http://www.jspbook.com]</echo>
<exec executable="bash" os="Windows">
<arg value="../../bin/startup.bat"/>
</exec>
<exec executable="bash" os="Linux">
<arg value="../../bin/startup.sh"/>
</exec>
</target>
<target name="compile">
<echo>Compiling Book's Examples [http://www.jspbook.com] </echo>
<javac
srcdir="WEB-INF/classes"
extdirs="WEB-INF/lib:../../common/lib"
classpath="../../common/lib/servlet.jar"
depreciation="yes"
verbose="no">
<include name="com/jspbook/**"/>
</javac>
</target>
</project>
Kindly tell me what is wrong and how can i trouble shoot it. thanks fo reading.