Hi ,
I want to get access to the value of the activeProfile
For example :
mvn -P dev clean package
in my pom.xml I want to pass 'dev' to antrun without specifying it
twice (ie as a -D property on the command line)
I can get access to a List/Array of Profile with ${project.profiles}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>
<tasks>
<property name="mvn.repo" value="${user.home}/.m2/repository"/>
<ant antFile="build.xml" target="${project.profiles}"/>
</tasks>
</configuration>
</plugin>
but I want to be able to do either:
${project.profiles[0].id}
or
${project.activeProfile}
so that I can get the value of the currently running profile
Thanks
Kev
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]