ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Salter <marksal...@talktalk.net>
Subject Re: Help with war file
Date Wed, 22 Oct 2008 07:51:22 GMT
Rez wrote:
> I'm not sure if it's possible any other way to pack a folder and all
> of its subfolders and files into a war file, preserving their path
> and folder structure, other than using the "prefix" attribute of the
> zipfileset task. I would like my war file (testproject.war) to have
> folderx & all its files at its root, so currently I'm using
> 
> <zipfileset dir="folderx" includes="**/*" prefix="folderx"/>

Can you use the war task instead:-

	http://ant.apache.org/manual/CoreTasks/war.html

> 
> But it's creating a problem when the files are deployed under jboss
> and my url looks like something like this:
> 
> http://localhost:8080/testproject/folderx/folderx/images/test.gif
> 
> As you can see it's repeating the folder name twice.
The zip examples clearly show that the zip structures have the prefix
added followed by the source dir, why don't you just drop the prefix in
this instance?

-- 
Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message