You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "White, Joshua A (AG, COMM)" <Jo...@thehartford.com> on 2003/01/14 16:19:58 UTC
RE: Copying .properties files into to classes directory using the
war task
Erik,
As far as I know, the <classes> element only copies .class files. Any other
suggestions?
Joshua
-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
Sent: Tuesday, January 14, 2003 9:37 AM
To: Ant Users List
Subject: Re: Copying .properties files into to classes directory
using the war task
To put a file in the WEB-INF/classes directory using <war> simply use a
nested <classes> element.
Erik
On Tuesday, January 14, 2003, at 09:30 AM, White, Joshua A (AG, COMM)
wrote:
> Hello,
>
> I am using the war task to create the war file for my struts
> application. I
> would like to copy a .property file into the WEB-INF/classes
> directory. Is
> there a way to do this using the war task? If not, any other
> suggestions?
>
> Regards,
>
> Joshua White
>
>
> This communication, including attachments, is for the exclusive use of
> addressee and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, any use, copying,
> disclosure, dissemination or distribution is strictly prohibited. If
> you are not the intended recipient, please notify the sender
> immediately by return email and delete this communication and destroy
> all copies.
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Copying .properties files into to classes directory using the
war task
Posted by Christopher Lenz <cm...@gmx.de>.
White, Joshua A (AG, COMM) wrote:
> Erik,
>
> As far as I know, the <classes> element only copies .class files. Any other
> suggestions?
Not true, it'll include any file.
-chris
> Joshua
>
> -----Original Message-----
> From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
> Sent: Tuesday, January 14, 2003 9:37 AM
> To: Ant Users List
> Subject: Re: Copying .properties files into to classes directory
> using the war task
>
> To put a file in the WEB-INF/classes directory using <war> simply use a
> nested <classes> element.
>
> Erik
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Copying .properties files into to classes directory using the war task
Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
On Tuesday, January 14, 2003, at 10:19 AM, White, Joshua A (AG, COMM)
wrote:
> Erik,
>
> As far as I know, the <classes> element only copies .class files. Any
> other
> suggestions?
>
> Joshua
>
Did you *try* it?! :)
<classes> is just a fileset and simply places whatever you hand it into
WEB-INF/classes. I use this myself in all my web application builds to
embed properties files.
Same goes for <lib> and <webinf> - no restrictions on what you can
place there.
But, in general, you can use a <zipfileset> along with a 'prefix'
attribute to change where things get placed in archives - it just
happens your request is cleaner using <classes>.
Erik
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>