forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: Failed build
Date Sun, 21 Sep 2003 05:51:40 GMT
On Sat, Sep 20, 2003 at 06:27:27PM +1000, Jeff Turner wrote:
> On Sat, Sep 20, 2003 at 09:07:24AM +1000, Glen Stampoultzis wrote:
> > 
> > Hi,
> > 
> > when I call forrest from another ant build file using the document 
> > procedure I get a problem where the forrest build fails but my parent build 
> > passes.  Is there anyway to fail the parent build if the forrest build 
> > fails?
> 
> The problem is that forrest.antproxy.xml uses the old Cocoon
> command-line.  I forgot to update it when updating forrest.build.xml.
> The new CLI class returns a nonzero exit code if pages fail.  I'll fix
> this ASAP.

Actually that is nonsense.  The problem was simply that
forrest.antproxy.xml's <java> task didn't have failonerror="true" set.
I've fixed this in CVS and on the 0.5.1 branch:

     [java] * [49/0]     1.666s 16.0Kb  live-sites.html
     [java] * [0/0]      0.367s 10.4Kb  live-sites.pdf
     [java] * [0/0]      0.075s 766b    favicon.ico
     [java] Total time: 3 minutes 28 seconds

     [java] BUILD FAILED
     [java] /old/home/jeff/homeoverflow/apache/xml/xml-forrest/build/dist/shbat/forrest.build.xml:635:
Java returned: 1

     [java] Total time: 3 minutes 40 seconds



BUILD FAILED
/old/home/jeff/homeoverflow/apache/xml/xml-forrest/build/dist/shbat/forrest.antproxy.xml:45:
Java returned: 1



--Jeff

> > Here's what's happening:
> > 
> > -----------------------------8<-------------------------------
> >      [java] * [0] trans/es/images/add.jpg
> >      [java] * [0] references/index.pdf
> >      [java] * [0] resources/images/group-logo.gif
> >      [java] * [0] images/unknown.jpg
> >      [java] Total time: 0 minutes 57 seconds
> > 
> >      [java] BUILD FAILED
> >      [java] /home/glens/forrest/forrest.build.xml:631: Java returned: 1
> > 
> >      [java] Total time: 1 minute 16 seconds
> >      [java] Java Result: 1
> >      [echo] Broken links:
> > 
> > site:
> > 
> > BUILD SUCCESSFUL
> > Total time: 6 minutes 32 seconds
> > -----------------------------8<-------------------------------
> > 
> > 
> > 
> > Glen Stampoultzis
> > gstamp@iinet.net.au
> > http://members.iinet.net.au/~gstamp/glen/
> > 

Mime
View raw message