cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Michels <step...@apache.org>
Subject Re: Splitting the build.xml
Date Fri, 21 Mar 2003 10:40:43 GMT


On Fri, 21 Mar 2003, Nicola Ken Barozzi wrote:

>
>
> Stephan Michels wrote, On 21/03/2003 9.52:
> > Hi,
> >
> > I want to propose to split the build.xml into fragments. This
> > will not solve any issues, but make it more maintainable.
> >
> > These fragments can be stores in src/targets for example.
> >
> > Thoughts?
> >
> > Currently I have the following fragments on my HD:
> >
> > compile.xtarget
> > docs.xtarget
> > forrest.xtarget
> > ide.xtarget
> > init.xtarget
> > samples.xtarget
> > test.xtarget
> > validate.xtarget
> > webapp.xtarget
>
> 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
Apache Ant version 1.6alpha compiled on February 12 2003
Buildfile: build.xml
Detected Java version: 1.3 in: /usr/lib/j2sdk1.3.1/jre
Detected OS: Linux
parsing buildfile /home/stephan/tmp/cocoon/build.xml with URI =
file:///home/stephan/tmp/cocoon/build.xml
Project base dir set to: /home/stephan/tmp/cocoon
Importing file src/targets/init-build.xml from
/home/stephan/tmp/cocoon/build.xml
parsing buildfile /home/stephan/tmp/cocoon/src/targets/init-build.xml with
URI = file:///home/stephan/tmp/cocoon/src/targets/init-build.xml
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
	at
org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:131)
	at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:227)
	at org.apache.tools.ant.Task.perform(Task.java:388)
	at org.apache.tools.ant.Target.execute(Target.java:309)
	at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:128)
	at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:119)
	at org.apache.tools.ant.Main.runBuild(Main.java:596)
	at org.apache.tools.ant.Main.start(Main.java:198)
	at org.apache.tools.ant.Main.main(Main.java:245)


Does the import task also handle incomplete build fragments? In
our case there are dependencies between target a in file A and
target b ind file B.

Stephan.


Mime
View raw message