You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeff Mutonho <ej...@gmail.com> on 2007/06/13 11:22:13 UTC
Ant task executing twice
I have an ant task that is suppose to run in the "process-resources"
phase.The configuration is :
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<configuration>
<tasks>
<copy todir="target/checkout" overwrite="true">
<fileset dir="../portal-ear/target">
<include name="portal.ear"/>
</fileset>
</copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
--
When I run "mvn install" , the output shows the ant task executing
twice as seen below :
---
[INFO] Building Portal :: Functional Tests
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
---
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[copy] Copying 1 file to D:\CONTINUUM-BUILDS\continuum\working-directory\8
\portal-functional-tests\target\checkout
[INFO] Executed tasks
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[copy] Copying 1 file to D:\CONTINUUM-BUILDS\continuum\working-directory\8
\portal-functional-tests\target\checkout
[INFO] Executed tasks
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing D:\CONTINUUM-BUILDS\continuum\working-directory\86\portal-fu
ctional-tests\pom.xml to D:\Documents and Settings\mutonhj\.m2\repository\za\co\
pragmaticus\portal\portal-functional-tests\1.0.0\portal-functional-tests-1.0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Jun 13 11:15:15 CAT 2007
[INFO] Final Memory: 5M/508M
"Don't take the name of root in vain."
Jeff Mutonho
Cape Town
South Africa
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Ant task executing twice
Posted by Jeff Mutonho <ej...@gmail.com>.
Thanx . Would definitely like to get a patch for this.
On 6/13/07, Siegfried Goeschl <si...@it20one.at> wrote:
> Hi Jeff,
>
> this is/was a bug we encountered in 2.0.4 and my colleague just fixed
> over the evening by patching the Maven libs ... :-(
>
> If this is still an issue I will remind him to sent a patch next week
>
> Cheers,
>
> Siegfried Goeschl
>
> Jeff Mutonho wrote:
> > I have an ant task that is suppose to run in the "process-resources"
> > phase.The configuration is :
> >
> > <plugin>
> > <artifactId>maven-antrun-plugin</artifactId>
> > <executions>
> > <execution>
> > <phase>process-resources</phase>
> > <configuration>
> > <tasks>
> > <copy todir="target/checkout" overwrite="true">
> > <fileset dir="../portal-ear/target">
> > <include name="portal.ear"/>
> > </fileset>
> > </copy>
> > </tasks>
> > </configuration>
> > <goals>
> > <goal>run</goal>
> > </goals>
> > </execution>
> > </executions>
> > </plugin>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
"Don't take the name of root in vain."
Jeff Mutonho
Cape Town
South Africa
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Ant task executing twice
Posted by Siegfried Goeschl <si...@it20one.at>.
Hi Jeff,
this is/was a bug we encountered in 2.0.4 and my colleague just fixed
over the evening by patching the Maven libs ... :-(
If this is still an issue I will remind him to sent a patch next week
Cheers,
Siegfried Goeschl
Jeff Mutonho wrote:
> I have an ant task that is suppose to run in the "process-resources"
> phase.The configuration is :
>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>process-resources</phase>
> <configuration>
> <tasks>
> <copy todir="target/checkout" overwrite="true">
> <fileset dir="../portal-ear/target">
> <include name="portal.ear"/>
> </fileset>
> </copy>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org