You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Jeff Turner <je...@apache.org> on 2002/08/19 11:49:05 UTC
Re: using ForrestBot (Was: [PATCH] acorn.xml: bootstrapping new projects)
Thanks for the helping debug this.
On Mon, Aug 19, 2002 at 02:04:18PM +1000, David Crossley wrote:
> Jeff Turner wrote:
> > David Crossley wrote:
> > ERROR 2002-08-18 20:55:57.978 [sitemap ] (): Error while processing pipeline at file:/old/home/jeff/homeoverflow/apache/xml/xml-forrest/build/bot/projects/myproj-local/context/./sitemap.xmap:135:17
> > org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.ResourceNotFoundException: Resource not found.: org.apache.excalibur.source.SourceNotFoundException: Resource not found file:/old/home/jeff/homeoverflow/apache/xml/xml-forrest/build/bot/projects/myproj-local/context/./content/xdocs/your-project.xml
...
>
> It sounds like some separate issues. Your ForrestBot is
> building the main Forrest project doco here.
Indeed it is (after examining build/bot/projects/...).
> When you copied the forrestbot.conf.xml to testproj.conf.xml
> did you remove the old <project>+ entries and put your own?
Yep.
> Another possibility - if /home/jeff/testproj/testproj.conf.xml
> path is wrong, then it will use $FORREST_HOME/forrestbot.conf.xml
> and build the main project doco.
It's correct:
jeff@expresso:~$ ls /home/jeff/testproj
acorn.xml src status.xml testproj.conf.xml
> Aha. I just noticed something that may be the cause.
> If you do not do a 'build clean' before running forrestbot
> then it just re-runs the previous build. So if you had
> done a plain './build.sh bot' then forrestbot would try to
> build the default Forrest doco. If you immediately follow
> that with building your own project:
> ./build.sh bot -Dbot.forrestbot.xconf=$HOME/yourproject.conf.xml
> then forrestbot does not build your project but repeats the
> default build.
That's good to know, but I was playing safe and doing 'rm -r build' between
builds anyway. Confirmed again today.
> Also, it seems that your xml-forrest CVS is not up-to-date.
> The doc your-project.html is certainly linked from changes.html
> and it should be there at xdocs/your-project.xml
> Does the normal "./build.sh clean docs" work for you?
Aha.. hehe.. ahahaha.. Houston, you have a problem.. :)
Are you using Forrest's docs in a different directory to test Forrestbot? Then
it will be using files from xml-forrest/ and you'd never be able to tell the
difference :)
I used acorn.xml to generate a basic, known-to-build, doc setup. If I swap the
acorn-generated content for xml-forrest/src/documentation, then it all builds
fine with forrestbot.
Attached is a .tgz of the context I'm trying to build with Forrestbot, that
should show up the problem.
--Jeff
> --David
>
Re: using ForrestBot (SOLVED)
Posted by David Crossley <cr...@indexgeo.com.au>.
Jeff Turner wrote:
<snip/>
> > $ vi acornbot.conf.xml
> > slide in:
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > <forrest-config>
> > <defaults />
> > <project name="acorn-test">
> > <prepare>
> > <skin name="forrest-site"/>
> > </prepare>
> > <get-src type="local-copy">
> > <project-dir name="../acorn-test" />
> ^^^^^^^^^^^^
>
> That was the line I was missing. Added it and everything is now fine.
I did not need that line because i had a <defaults>
section with <project-dir name="." />
I will tweak the your-project.xml doc to have a complete
minimal example, rather than just the <project> snippet.
--David
> Attached is a patch for your-project.xml.
>
> Thanks for your and David's help :)
No problem.
--David
Re: using ForrestBot (SOLVED)
Posted by Jeff Turner <je...@apache.org>.
On Mon, Aug 19, 2002 at 05:12:14PM +0200, Marc Portier wrote:
> Jeff,
>
> not fully understanding what you see (and missing the tgz)
Oops, forgot to attach. But..
...
> $ vi acornbot.conf.xml
> slide in:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <forrest-config>
> <defaults />
> <project name="acorn-test">
> <prepare>
> <skin name="forrest-site"/>
> </prepare>
> <get-src type="local-copy">
> <project-dir name="../acorn-test" />
^^^^^^^^^^^^
That was the line I was missing. Added it and everything is now fine.
Attached is a patch for your-project.xml.
Thanks for your and David's help :)
--Jeff
RE: using ForrestBot (Was: [PATCH] acorn.xml: bootstrapping new projects)
Posted by Marc Portier <mp...@outerthought.org>.
Jeff,
not fully understanding what you see (and missing the tgz)
I just tried this from scratch:
(assuming current working dir ==
root-of-your-xml-forrest-cvs-sandbox)
$ cvs update -dP
$ mkdir ../acorn-test
$ pushd ../acorn-test
$ cp [path-to-it]/acorn.xml .
$ ant -f acorn.xml -Dforrest.home=../xml-forrest
create-xdocs create-status
$ popd
$ vi acornbot.conf.xml
slide in:
<?xml version="1.0" encoding="ISO-8859-1"?>
<forrest-config>
<defaults />
<project name="acorn-test">
<prepare>
<skin name="forrest-site"/>
</prepare>
<get-src type="local-copy">
<project-dir name="../acorn-test" />
<content-dir name="../acorn-test/src/documentation"/>
</get-src>
<generate>
<debuglevel name="ERROR" />
</generate>
<deploy type="local-copy">
<destination name="../acorn-test/forrest-docs/" />
</deploy>
</project>
</forrest-config>
$ ./build.sh
bot -Dbot.forrestbot.xconf=acornbot.conf.xml -Dtemplate.echo
=true
and this works fine.
<snip />
trying to grasp what you tried:
>
> Aha.. hehe.. ahahaha.. Houston, you have a problem.. :)
>
> Are you using Forrest's docs in a different
> directory to test Forrestbot? Then
> it will be using files from xml-forrest/ and
> you'd never be able to tell the
> difference :)
>
naah,
we use forrestbot to build loads of other things:
50% from the list at
http://outerthought.net/forrest/live-sites.html
i.e. http://outerthought.net/ and http://www.xmlbelux.be/
are built using the bot...
so we _can_ tell the difference :-)
(and you see it _is_ used for other sites then
xml.apache.org, that one not even.)
> I used acorn.xml to generate a basic,
> known-to-build, doc setup. If I swap the
> acorn-generated content for
> xml-forrest/src/documentation, then it all builds
> fine with forrestbot.
>
as would the opposite, provided that you tell the bot where
to find the acorn-generated content
please check your-botconf.xml
(mind for gets-src.local-copy the content-dir is not
evaluated as relative to the project-dir, should it?)
if you can't find something wrong:
- run with -Dtemplate.echo=true
- attach the ./build/bot/work.[your-project-name].log and
the conf in your next message
HTH,
-marc=