ant-user mailing list archives

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

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}"/>

----- 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"/>

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:   <>
For additional commands, e-mail: <>

View raw message