ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: perculiar war task issue
Date Mon, 17 Apr 2006 21:57:13 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message