You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jon Strayer <jo...@strayer.org> on 2008/10/03 21:24:05 UTC

Re: Possible bug when using ant:run in build configuration

Where is this documented?

On Tue, Sep 16, 2008 at 1:45 PM, L. J. <ap...@gmail.com> wrote:
> compile is part of mvn package and install build lifecycle.
>
> On Tue, Sep 16, 2008 at 8:44 AM, dmcgeown <dm...@acquisinc.com> wrote:
>
>>
>> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>



-- 
Esse Quam Videre
To Be, rather than to Seem

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