cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: Splitting the build.xml
Date Fri, 21 Mar 2003 12:47:28 GMT


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:
> 
> stephan@verndeb:~/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                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message