You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kai Fredriksen <ka...@mobilefactor.com> on 2005/10/03 13:45:25 UTC

antrun plugin and ant tasks

I just startet to test M2 2.0-beta-2 and tried to add existing ant build
script tasks to my pom. Can anyone help me out with a correct antrun task
configuration. The only output I get is:
[INFO] [antrun:run]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL

and off course nothing happens..

My configuration is defined in the pom as:
.. <execution>
            <phase>generate-sources</phase>
            <configuration>
              <tasks>
                <ant antfile="build.xml" target="gen"/>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
..

Kai


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


RE: antrun plugin and ant tasks

Posted by Yann Le Du <le...@yahoo.com>.
Hi Kai,

I have the same conf as you, except that my Ant call is :
    <ant antfile="build.xml"/>
because I call the default task as defined in build.xml :
    <project name="build" default="gen">
... and things go well.

If you get "> [INFO] Executed tasks", then you get to execute the antrun
plugin. What do you mean exactly by "nothing happens ?" Can you try and produce
some trace in your Ant tasks ?

Yann


--- Kai Fredriksen <ka...@mobilefactor.com> a écrit :

> I just startet to test M2 2.0-beta-2 and tried to add existing ant build
> script tasks to my pom. Can anyone help me out with a correct antrun task
> configuration. The only output I get is:
> [INFO] [antrun:run]
> [INFO] Executing tasks
> [INFO] Executed tasks
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> 
> and off course nothing happens..
> 
> My configuration is defined in the pom as:
> .. <execution>
>             <phase>generate-sources</phase>
>             <configuration>
>               <tasks>
>                 <ant antfile="build.xml" target="gen"/>
>               </tasks>
>             </configuration>
>             <goals>
>               <goal>run</goal>
>             </goals>
>           </execution>
> ..
> 
> Kai
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 



	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

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