Stephan Michels wrote, On 21/03/2003 11.40:

On Fri, 21 Mar 2003, Nicola Ken Barozzi wrote:
...
Since we are using Ant from CVS, we can use

<import file="src/targets/compile-build.xml"/>

The import statement seems not to work. I got the following exception:


[EMAIL PROTECTED]:~/tmp/cocoon> ant -v war
...
Importing file src/targets/compile-build.xml from
/home/stephan/tmp/cocoon/src/targets/init-build.xml

BUILD FAILED
file:///home/stephan/tmp/cocoon/build.xml:21: Cannot find
src/targets/compile-build.xml imported from
/home/stephan/tmp/cocoon/src/targets/init-build.xml
...
Does the import task also handle incomplete build fragments?

Nope.


Try also adding a ./ before the path, maybe the basedir is not used in importing (and it's a bug in that case that should be reported).

In
our case there are dependencies between target a in file A and
target b ind file B.

OTTOMH it should work, the import is done before dependency resolution.


--
Nicola Ken Barozzi                   [EMAIL PROTECTED]
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------



Reply via email to