You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ex...@nokia.com on 2010/10/25 17:41:48 UTC
antcall
Hi,
How come if I call test-1, test-3 doesn't print ref2?
<path id="ref1">
<fileset dir="C:\Documents and Settings\x\Desktop " includes="a.xml" />
</path>
<path id="ref2">
<fileset dir="C:\Documents and Settings\x\Desktop " includes="b.xml" />
</path>
<target name="test-1">
<antcall target="test-2" inheritRefs="true">
<reference refid="ref2" torefid="ref1" />
</antcall>
</target>
<target name="test-2">
<antcall target="test-3" inheritRefs="true"/>
</target>
<target name="test-3">
<echo>${toString:ref1}</echo>
</target>
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: antcall
Posted by Jonathan Rosenberg <jr...@tabbysplace.org>.
What happens if you echo a constant string, instead of a variable
dereference?
--
Jonathan Rosenberg
Founder & Executive Director, Tabby's Place
http://www.tabbysplace.org/
-----Original Message-----
From: ext-simon.steiner@nokia.com [mailto:ext-simon.steiner@nokia.com]
Sent: Monday, October 25, 2010 11:49 AM
To: user@ant.apache.org
Subject: RE: antcall
ant test-1
> -----Original Message-----
> From: ext Jonathan Rosenberg [mailto:jr@tabbysplace.org]
> Sent: 25 October 2010 16:45
> To: 'Ant Users List'
> Subject: RE: antcall
>
> How are you "calling" test-1?
>
> --
> Jonathan Rosenberg
> Founder & Executive Director, Tabby's Place
> http://www.tabbysplace.org/
>
>
>
> -----Original Message-----
> From: ext-simon.steiner@nokia.com [mailto:ext-simon.steiner@nokia.com]
> Sent: Monday, October 25, 2010 11:42 AM
> To: user@ant.apache.org
> Subject: antcall
>
> Hi,
>
> How come if I call test-1, test-3 doesn't print ref2?
>
> <path id="ref1">
> <fileset dir="C:\Documents and Settings\x\Desktop "
> includes="a.xml"
> />
> </path>
> <path id="ref2">
> <fileset dir="C:\Documents and Settings\x\Desktop "
> includes="b.xml"
> />
> </path>
>
> <target name="test-1">
> <antcall target="test-2" inheritRefs="true">
> <reference refid="ref2" torefid="ref1" />
> </antcall>
> </target>
>
> <target name="test-2">
> <antcall target="test-3" inheritRefs="true"/>
> </target>
>
> <target name="test-3">
> <echo>${toString:ref1}</echo>
> </target>
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: antcall
Posted by ex...@nokia.com.
ant test-1
> -----Original Message-----
> From: ext Jonathan Rosenberg [mailto:jr@tabbysplace.org]
> Sent: 25 October 2010 16:45
> To: 'Ant Users List'
> Subject: RE: antcall
>
> How are you "calling" test-1?
>
> --
> Jonathan Rosenberg
> Founder & Executive Director, Tabby's Place
> http://www.tabbysplace.org/
>
>
>
> -----Original Message-----
> From: ext-simon.steiner@nokia.com [mailto:ext-simon.steiner@nokia.com]
> Sent: Monday, October 25, 2010 11:42 AM
> To: user@ant.apache.org
> Subject: antcall
>
> Hi,
>
> How come if I call test-1, test-3 doesn't print ref2?
>
> <path id="ref1">
> <fileset dir="C:\Documents and Settings\x\Desktop "
> includes="a.xml"
> />
> </path>
> <path id="ref2">
> <fileset dir="C:\Documents and Settings\x\Desktop "
> includes="b.xml"
> />
> </path>
>
> <target name="test-1">
> <antcall target="test-2" inheritRefs="true">
> <reference refid="ref2" torefid="ref1" />
> </antcall>
> </target>
>
> <target name="test-2">
> <antcall target="test-3" inheritRefs="true"/>
> </target>
>
> <target name="test-3">
> <echo>${toString:ref1}</echo>
> </target>
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: antcall
Posted by Jonathan Rosenberg <jr...@tabbysplace.org>.
How are you "calling" test-1?
--
Jonathan Rosenberg
Founder & Executive Director, Tabby's Place
http://www.tabbysplace.org/
-----Original Message-----
From: ext-simon.steiner@nokia.com [mailto:ext-simon.steiner@nokia.com]
Sent: Monday, October 25, 2010 11:42 AM
To: user@ant.apache.org
Subject: antcall
Hi,
How come if I call test-1, test-3 doesn't print ref2?
<path id="ref1">
<fileset dir="C:\Documents and Settings\x\Desktop " includes="a.xml"
/>
</path>
<path id="ref2">
<fileset dir="C:\Documents and Settings\x\Desktop " includes="b.xml"
/>
</path>
<target name="test-1">
<antcall target="test-2" inheritRefs="true">
<reference refid="ref2" torefid="ref1" />
</antcall>
</target>
<target name="test-2">
<antcall target="test-3" inheritRefs="true"/>
</target>
<target name="test-3">
<echo>${toString:ref1}</echo>
</target>
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org