ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stan Ou <jou...@yahoo.com>
Subject perculiar war task issue
Date Mon, 17 Apr 2006 21:47:59 GMT
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>

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




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message