You can get most (all?) element values from the pom in the form of
parameters, nesting by dot notation.

for example:
<project>
 <build>
   <directory>VALUE</directory>
is ${project.build.directory}

etc.

If you want to play with viewing the value of any parameter, try the ant
plugin:
   <build>
       <plugins>
           <plugin>
               <artifactId>maven-antrun-plugin</artifactId>
               <configuration><tasks><echo>${project.build.directory
}</echo></tasks></configuration>
           </plugin>
       </plugins>
   </build>
Then run:
mvn antrun:run

Unfortunately, AFAIK you cannot use that notation to dig into a list, which
resources are defined under. If anyone knows differently, please advise.

Eric

On 7/26/06, Alexis Midon <[EMAIL PROTECTED]> wrote:

and a variable for the main resource directory?



On 7/26/06, David J. M. Karlsen <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> Does any variable exist for ${basedir}/target - or is this the closest I
> can come?
>
>
>
> Does there exist a list over variable expressions in maven2 poms?
>
>
> --
> David J. M. Karlsen - +47 90 68 22 43
> http://www.davidkarlsen.com
> http://mp3.davidkarlsen.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




--
Eric
http://codehaus.org/~eredmond

Reply via email to