forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <...@mcc.id.au>
Subject Re: Calling forrest from ant with a specific project.build-dir
Date Wed, 22 Nov 2006 22:17:12 GMT
Thorsten Scherler:
> Hmm, works for me with and but normally doing:
> forrest -Dproject.home=`pwd`/exporter
> should work.

I did want to avoid using `pwd` though. :)

> > Any suggestion on how I can make the build go under the current
> > directory (apart from doing something like `pwd` in command line, since
> > it needs to be cross platform)?
> 
> <antcall target="forrest.site">
>       <param name="project.home" location="${exporter.home}" />
>       <param name="project.start-uri"
> location="/summaries/${bulletin.year}/${bulletin.number}/index.html" />
>       <param name="project.build-dir"
> location="${build.dir}/exporter/summaries"></param>
>     </antcall>
> 
> I have a main ant file in my customer which is the parent of
> ${exporter.home}.
> 
> tree .
> `--exporter
> 
> By changing the project.home I can invoke the site generation from my
> base app. 

Ah I’ve realised I can do

  <pathconvert property="cwd">
    <path path="."/>
  </pathconvert>

in my ant file to get an absolute pathname, so that solves the problem.

Thanks,

Cameron

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

Mime
View raw message