[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Ant question

From: Res Pons <pons32_at_hotmail.com>
Date: 2006-02-23 21:55:10 CET

For some odd reason I cannot get or post questions to the Apache Ant forum,
so sorry to post here until I get it resolved.

I do an antcall to another target within the same build file. The
destination target has a property whose value I'm interested in. I echo the
value within that target to make sure it has a value, lo & behold, it does!
But when I try to reassign or even use the original value in the source
target where it was called from...it has a null value. For God's sake, I'm
within the same build file and I cannot even echo its value one the antcall
completes. What am I doing wrong? Please bare in mind that I do not wish
to use the buildnumber ant element to increment a value BUT I would like to
load a property file and to use its values.

#this is the destination target

<target name="MBN" >
        <loadproperties srcFile="build.number.file">
                <filterchain>
                        <linecontains>
                                <contains value="build.number"/>
                        </linecontains>
                </filterchain>
        </loadproperties>
        <echo message="The Master Build Number is: ${build.number}" />
</target>

This is the source or calling target:

<target name="Action" >

<antcall target="MBN" inheritAll="true" >
        <param name="build.number" value="${build.number}"/> # I've done it with &
WITHOUT param and still doesn't work.
</antcall>-->

<property name="full.build.number" value="${build.number}" />
<echo message="And the full.build.number is ==> ${full.build.number}" />

</target>

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 23 21:56:36 2006

This is an archived mail posted to the Subversion Users mailing list.