Re: Ant Build.xml file

2008-09-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Susan,

Susan Richards wrote:
 How would I add to the build.xml file so that when ant builds it, it
 creates this code in my web.xml file?
 
 error-page
   error-code404/error-code
   location/404.html/location
 /error-page

Why not simply add it to web.xml permanently?

If you really do need to do it on the fly, you can do it with an XSL
template:

!-- Make a backup copy of web.xml --
copy file=web.xml toFile=web.xml.copy /

xslt in=web.xml.copy
  out=web.xml
  style=web.xml.changes.xsl
/

The contents of the web.xml.changes.xsl file are trivial and left as an
exercise to the reader ;)

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjJRjAACgkQ9CaO5/Lv0PAKjACePT30esw5ozYZtdD0HcuFlfMm
nXEAn2U4VFPgx3Kobs/qk9ldenFIb81v
=nF0S
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ant Build.xml file

2008-09-08 Thread Susan Richards
How would I add to the build.xml file so that when ant builds it, it creates 
this code in my web.xml file?
 
error-page
error-code404/error-code
location/404.html/location
/error-page
 
Not sure if this is an element or something else and what to add it under.