ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: problems with import task
Date Wed, 16 Jul 2003 15:51:02 GMT
On Wed, 2003-07-16 at 16:32, Erik Hatcher wrote:
> >
> > Sorry, but I don't understand. Can you please post a buildfile with 
> > the problem? We can then fix it and add it to the testcases.
> 
> I did this:
> 
> 	<import file="../shared.xml"/>
> 	<import file="../shared-db.xml"/>

There is an issue with relative files and import:

The javadoc for the file attribute says:
     * the name of the file to import. How relative paths are resolved
is still
     * in flux: use absolute paths for safety.

The following should work:

	<import file="${basedir}/../shared.xml"/>
	<import file="${basedir}/../shared-db.xml"/>

Peter




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message