that's weird - I think your syntax is correct
there's an example here:
http://hohonuuli.blogspot.com/2007/03/boostrapping-mavens-antlib-maven.html

what happens if you remove the directory value from your pom and allow
it to use the default?

On Wed, Jul 14, 2010 at 6:27 PM, Adam Krieg <akr...@pragmatrading.com> wrote:
> Forgive me, I meant Maven ant tasks.  I'm trying to reference information 
> defined in the pom from my build.xml.
>
> -----Original Message-----
> From: Shan Syed [mailto:shan...@gmail.com]
> Sent: Wednesday, July 14, 2010 6:23 PM
> To: Maven Users List
> Subject: Re: antrun plugin resolving properties referencing properties
>
> just to clarify, are you using the antrun plugin for maven or the
> maven tasks for ant?
>
>
> On Wed, Jul 14, 2010 at 6:06 PM, Adam Krieg <akr...@pragmatrading.com> wrote:
>> I'm trying to access the project.build.directory property which is defined 
>> in my pom as
>>
>>  <build>
>>    <directory>${project.basedir}/target</directory>
>> ....
>>
>> In ant I have this setup:
>> <artifact:pom id="project-pom" file="pom.xml" />
>> <property name="outputdir" value="${project-pom.build.directory}"/>
>>
>> However when I run my ant build, outputdir is being set to the literal value 
>> "${project.basedir}/target" rather than antrun expanding the variable 
>> ${project.basedir}.   Has anyone else run into this issue?
>>
>>
>>
>> ________________________________
>> Disclaimer: http://pragmatrading.com/disclaimer.html
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> Disclaimer: http://pragmatrading.com/disclaimer.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to