ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Holmqvist, IT, Posten" <christian.holmqv...@posten.se>
Subject Multiple build files problem, property passing
Date Tue, 20 Aug 2002 12:13:02 GMT
Hi!

I'm trying to figure out how to create a "base" build.xml file.

This is my example 
--- build.xml -----
<?xml version="1.0"?>
<project name="test" default="init" basedir=".">
	<target name="init">
		<property name="prop" value="build.xml"/> 
		<ant antfile="hmm.xml" dir="${basedir}" target="init"/>
		<echo message="${new_prop}"/>
	</target>
</project>
----- 

----- hmm.xml ---
<?xml version="1.0"?>
<project name="hmm" default="init" basedir=".">
	<target name="init">
		<property name="prop" value="hmm.xml"/>
		<echo message="${prop}"/>
		<property name="new_prop" value="tjohoo"/>
	</target>
</project>
------

The thing is that the prop property echos correctyly but the new_prop does
not. Is there a way to "return" propertyes from a <ant> task?

Or is there a bether way to do this?

Cheers Christian

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message