thanks for your reply. But the list of directories is about 20 to 25 folders long and can grow. maintaining that list in the war task is probably the last thing I would do if all others fail. I want something a bit more maintaince-friendly.
--- Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: > Hello Stan, > > Stan Ou wrote: > > Hi all, > > > > because of stupid legacy reasons, my current > > application has the following structure in the web > > portion: > > > > c:\dev\apps\qaz\myhtml\xyz_html\aaa.jsp > > c:\dev\apps\wsx\myhtml\abc_html\aaa.jsp > > c:\dev\apps\rfv\myhtml\ddd_html\aaa.jsp > > > > I'm creating the first ant script for this team. > in my > > build war target, I have the following: > > > > <target name="build.war."> > > <war destfile="${zipped.home}/abc.war" > > webxml="${build.home}/WEB-INF/web.xml" > update="true"> > > <fileset dir="c:dev/apps/" > includes="**/myhtml/, > > **/*_html/*.*" excludes="**/WEB-INF/"/> > > > > <!-- other omitted for brevity --> > > > > </war> > > </target> > > > Change this to : > > <war destfile="${zipped.home}/abc.war" > webxml="${build.home}/WEB-INF/web.xml" > update="true"> > <fileset dir="c:dev/apps/qaz/myhtml" /> > <fileset dir="c:dev/apps/wsx/myhtml" /> > .... > > <!-- other omitted for brevity --> > > </war> > > > > it creates a war with this file structure: > > > > WEB-INF/web.xml > > qaz\myhtml\xyz_html\aaa.jsp > > wsx\myhtml\abc_html\aaa.jsp > > rfv\myhtml\ddd_html\aaa.jsp > > > > But I want it to be: > > > > xyz_html\aaa.jsp > > abc_html\aaa.jsp > > ddd_html\aaa.jsp > > > > Is this doable with the war task? thanks. any > help > > is really appreciated. > > > > stan > > > > > > > > > > __________________________________________________ > > > Antoine > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]