Hello, im having a problem when trying to run some ant tasks within the build
configuration. I basically using Ant to generate a build number. However
when i specify the <phase> to compile then then run 'mvn package' or 'mvn
install' the ant tasks execute even tough they are specified to only run
with the compile phase. Im i doing something stupid here or whats going on.
Pleasse refer to my code snippet below.

Thanks in advance 


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.2</version>
<inherited>false</inherited>
<executions>
<execution>
<id>create.buildnumber</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<property name="common" value="./system_core/Common/src" />
<tstamp>
<format property="time.stamp" pattern="MM/dd/yyyy hh:mm aa"/>
</tstamp>
<buildnumber file="${basedir}/buildfiles/build.properties"/>
<delete file="${common}/java/com/mycompany/common/Build.java" />
<copy file="${basedir}/buildfiles/Build.java"
todir="${common}/java/com/mycompany/common/" />
<loadproperties srcFile="${basedir}/buildfiles/build.properties"/>

<property name="version.build.date" value="v${myapp-enterprise-version}
(Build: ${build.number}) ) Date: ${time.stamp})" />
<echo message="${version.build.date}"/>
                                                                
</tasks>
</configuration>
</execution>
</executions>
</plugin>
-- 
View this message in context: 
http://www.nabble.com/Possible-bug-when-using-ant%3Arun-in-build-configuration-tp19514566p19514566.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to