You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Res Pons <po...@hotmail.com> on 2006/02/23 20:55:10 UTC

Ant question

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

Re: Ant question

Posted by Andrew Goodnough <An...@wicourts.gov>.

>>> On Thu, Feb 23, 2006 at  2:55 pm, in message
<BA...@phx.gbl>, "Res Pons"
<po...@hotmail.com>
wrote: 
> <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>

It looks like you want info about the SVN build.  You might want to
check this out.

http://dev2dev.bea.com/blog/jcscoobyrs/archive/2005/11/subversion_info.html


Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Ant question

Posted by Patrick Burleson <pb...@gmail.com>.
On 2/23/06, Res Pons <po...@hotmail.com> wrote:
> 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.
>

Why did you sent this to the Subversion mailing list? This list has
nothing to do with Ant, and your Ant problem doesn't even appear to
involve SVN. Maybe you meant to send this to an Ant list?

Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org