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 40129] - Wrong path calculation in <copy> when basedir set from command line
Date Fri, 28 Jul 2006 10:40:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40129>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40129





------- Additional Comments From stevel@apache.org  2006-07-28 10:40 -------
Interesting. I thought maybe it was from using property value and not property
location bindings, but changing that shows the same problem

<project name="dir-up-test" default="all">
  <property name="super-super-fail" location="${basedir}/../../res" />
  <property name="super-super-ok" location="../../res" />

  <target name="print">
    <echo message="basedir:          ${basedir}" />
    <echo message="super-super-fail: ${super-super-fail}" />
    <echo message="super-super-ok:   ${super-super-ok}" />
  </target>

  <target name="bug">
    <copy todir=".">
      <fileset dir="${super-super-fail}" />
    </copy>
  </target>

  <target name="ok">
    <copy todir=".">
      <fileset dir="${super-super-ok}" />
    </copy>
  </target>

  <target name="all" depends="print,ok,bug" />
</project>

C:\Java\Apache\Ant\incoming\updir-test>ant -Dbasedir=build/node
Buildfile: build.xml

print:
     [echo] basedir:          build/node
     [echo] super-super-fail: C:\Java\Apache\Ant\incoming\updir-test\build\node\
res
     [echo] super-super-ok:   C:\Java\Apache\Ant\incoming\updir-test\res

ok:

bug:

BUILD FAILED
C:\Java\Apache\Ant\incoming\updir-test\build.xml:12: C:\Java\Apache\Ant\incoming
\updir-test\build\node\res not found.

Total time: 0 seconds

That is, <property name="super-super-fail" location="${basedir}/../../res" />

is resolving (incorrectly) to C:\Java\Apache\Ant\incoming\updir-test\build\node\res

thoughts, anyone?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message