Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Trying to run forrestbot...: msg#00085

text.xml.forrest.user

Subject: Re: Trying to run forrestbot...

Flavio Cordova wrote:
> I have created a small project using forrest and it runs fine using both
> 'forrest run' and 'forrest site'.
> Now I'm trying to build the site using forrestbot but it's not working...

Great to hear that other people are using forrestbot.
It is such a fantastic deployment tool. We are having
great success with it at the Forrest project, and still
only using a fraction of its ability.

Going by my experience, the main thing was to set up the
directory structure well. Also important was to invoke
forrestbot from the correct directory.

We have a separate configuration file for each site
that we want forrestbot to build. Ours is automated via
cron, so each hour it calls a little shell script which
sets the java and FORREST_HOME environment variables,
changes to the correct workspace and then calls it
with 'forrest -f this-site-config.xml notify' to build
it and tell us about the results.

See our configuration files for our forrestbot at
http://svn.apache.org/repos/asf/forrest/zone/
Do an 'svn checkout' and use it to help create your
own setup.
http://forrest.apache.org/zone.html

See also some notes in your Forrest distribution
at etc/publishing_our_site.txt ... this is how
forrest committers use it to build and deploy
our website from our local workstations.

> Here the build.xml I have created:
> <project name="build.prounit" default="main">
> <description>ProUnit Documentation build script</description>
> <!-- Import properties -->
> <property file="build.properties" />
> <property name="getsrc.local.root-dir" location="c:/work/prounit-docs"/>
> <property name="build.work-dir" value="tmp/work"/>
> <property name="build.log-dir" value="tmp/logs"/>
> <property name="deploy.local.dir" value="deploy-docs"/>
>
> <target name="getsrc" depends="getsrc.clean-workdir,getsrc.local"/>
>
> <target name="deploy" depends="deploy.local">
> <echo level="info" message="DONE ???" />
> </target>
>
> <property environment="env"/>
> <import file="${env.FORREST_HOME}/tools/forrestbot/core/forrestbot.xml"/>
> <property name="forrest.home" value="${env.FORREST_HOME}"/>
> </project>
>
> When it runs, it reports a broken link:
> [java] X [0] linkmap.html BROKEN: C:\apache-
> forrest-0.7\main\webapp\tmp\work\tmp\build-info.xml (The system cannot find
> the path specified)
> I have already searched all FAQs and documentation but I admit I got a
> little lost.

That sounds like perhaps forrestbot is being invoked from
the wrong directory.

I notice some things in your config file that might cause trouble.
Actually i am pointing out the things that are different to ours

build.work-dir etc. being relative paths (should be okay).

We don't import any build.properties file.

We don't set the "forrest.home" property.

Anyway, check out the abovementioned links and get back to us.

Also, note that some changes were made to the 0.7 release branch.
which will be needed to get email notification happening properly,
otherwise you should be fine with the actual 0.7 release.
http://svn.apache.org/viewcvs.cgi/forrest/branches/forrest_07_branch/tools/forrestbot/core/

-David



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation