ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17871] - war task's webxml attrib no longer is able to use value with a starting backslash for the path in Windows
Date Wed, 12 Mar 2003 17:37:36 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17871>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17871

war task's webxml attrib no longer is able to use value with a starting backslash for the
path in Windows





------- Additional Comments From stoehr@cincro.com  2003-03-12 17:37 -------
For the following "test" task:

--------

  <target name="test">
    <antcall target="test1" />
    <antcall target="test2" />
    <antcall target="test3" />
    <antcall target="test4" />
  </target>

  <target name="test1">
    <path id="foo">
      <fileset file="\Xxx\Yyy\Zzz.xml"/>
    </path>
    <property name="foo-as-prop" refid="foo"/>
    <echo>${foo-as-prop}</echo>
  </target>

  <target name="test2">
    <path id="foo">
      <fileset file="D:\Xxx\Yyy\Zzz.xml"/>
    </path>
    <property name="foo-as-prop" refid="foo"/>
    <echo>${foo-as-prop}</echo>
  </target>

  <target name="test3">
    <war destfile="\test3.war"
         webxml="\Xxx\Yyy\Zzz.xml">
    </war>
  </target>

  <target name="test4">
    <war destfile="\test4.war"
         webxml="D:\Xxx\Yyy\Zzz.xml">
    </war>
  </target>

--------


Here is the output:

--------

Buildfile: D:\Stoehr\cincro\src\build.xml

test:

test1:
     [echo] D:\Xxx\Yyy\Zzz.xml

test2:
     [echo] D:\Xxx\Yyy\Zzz.xml

test3:
      [war] Building war: D:\test3.war
      [war] Warning: selected war files include a WEB-INF/web.xml which will be 
ignored (please use webxml attribute to war task)

test4:
      [war] Building war: D:\test4.war

BUILD SUCCESSFUL
Total time: 1 second

--------

Mime
View raw message