Just for recap:
- by prepending ${basedir} to all relative paths you want to get absolute paths
- you calculate the string for ${basedir} with <pathconvert>
- <pathconvert> adds a ':' sign
Do you tried
<property name="basedir-os" location="."/>
(I have only Windows so forgive my missing knowledge about the behaviour on
Unix ;)
Jan
> -----Ursprüngliche Nachricht-----
> Von: news [mailto:[email protected]] Im Auftrag von Bill Barker
> Gesendet: Montag, 19. Januar 2009 08:27
> An: [email protected]
> Betreff: Re: svn commit: r735591 -
> /gump/metadata/project/velocity-engine.xml
>
> The build script is overly complicated, but the relevant part is:
>
> <project name="Velocity" default="world" basedir=".."
> xmlns:artifact="urn:maven-
> artifact-ant">
>
> <path id="basedir-os">
> <pathelement location="${basedir}" />
> </path>
> <!-- This is the relative base dir. This must be the root
> of the -->
> <!-- Velocity distribution. All relative pathes are
> prefixed with -->
> <!-- velocity.dir
> -->
> <pathconvert property="velocity.dir" refid="basedir-os"
> targetos="unix"/>
>
> After enabling debug in Gump, I could see that Ant found the
> right directory
> for the pathconvert, but prepended a ':' character to it. As
> the comments
> say, this is used to build paths for the rest of the script,
> so none of the
> resulting paths are valid. The build.xml file lives in the 'build'
> directory of the project, so ".." is the srcdir from Gump's
> point of view.
>
> "Stefan Bodewig" <[email protected]> wrote in message
> news:[email protected]...
> > On 2009-01-19, <[email protected]> wrote:
> >
> >> Attempt to work around what looks like an Ant bug so this builds
> >
> >> Modified:
> >> gump/metadata/project/velocity-engine.xml
> >
> > What is going wrong, what do we need to fix in Ant?
> >
> > Stefan
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]