You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Drew <pa...@hotmail.com> on 2004/02/20 01:50:33 UTC
Specify path of Resources in Jar?
When I create a jar using ant can I specify the path
that I want my resources to reside in within the jar
or do they have to duplicate the file structure that
I have setup?
Also, if I use the Copydir task does that overwrite
existing files if they are older? The docs say I can
use "forceoverwrite" but is this necessary if the files
are older or the same age?
Thank you,
Drew
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Specify path of Resources in Jar?
Posted by Drew <pa...@hotmail.com>.
> --- Drew <pa...@hotmail.com> wrote:
> > When I create a jar using ant can I specify the path
> > that I want my resources to reside in within the jar
> > or do they have to duplicate the file structure that
> > I have setup?
>
> Have you looked at using <zipfileset>s with <jar>--in
> particular, their "prefix" attribute?
No, but I will take a look at it.
Thanks,
Drew
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Specify path of Resources in Jar?
Posted by Matt Benson <gu...@yahoo.com>.
--- Drew <pa...@hotmail.com> wrote:
> When I create a jar using ant can I specify the path
> that I want my resources to reside in within the jar
> or do they have to duplicate the file structure that
> I have setup?
Have you looked at using <zipfileset>s with <jar>--in
particular, their "prefix" attribute?
>
> Also, if I use the Copydir task does that overwrite
> existing files if they are older? The docs say I
> can
> use "forceoverwrite" but is this necessary if the
> files
> are older or the same age?
>
I don't know about <copydir>--it's been deprecated
since I start using Ant. However, the <copy> task
will ordinarily copy newer files only, unless
overwrite="true".
-Matt
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org