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>
Thanks Carol Enderlin , It is true, when copying from text book or any online tutorial some special characters may be copied (which may be used for formatting in books or tutorials blogs), but we need to make sure these characters are trimmed off before pasting it into our project. some IDE's will do this automatically.
subject: build failed due to restriction of target matching instruction