You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Subashini S <su...@hotmail.com> on 2007/09/21 07:36:16 UTC
How to specify depend in the ant plugin?
Hi,
I am using maven2.0.7 .
I want to do something like "mvn start" which would do all the packaging
stuff and start the server.
Somethink like this target would execute a script and it depends on "mvn
package".
I thought of using antrun plugin and in the task I asked it to execute the
file and made the phase to be package. But when I ran "mvn install", the
perl script gets executed before the package phase?
I even created a new ant plugin, which would run the script. But before
running the script, the package phase needs to be executed.
hello.build.xml
------------------
<project>
<target name="hello">
<echo>Staring the server</echo>
<exec executable="perl" failonerror="true" logError="true">
<arg line="jboss.pl " />
</exec>
</target>
</project>
Here is it possible for me to specify that this target depends on (the pom
in that folder's) "package" target ?
Or is there any other way I could get this working?
Thanks,
Suabshini
_________________________________________________________________
Post free property ads on Yello Classifieds now! www.yello.in
http://ss1.richmedia.in/recurl.asp?pid=221
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to specify depend in the ant plugin?
Posted by Jim Sellers <ji...@gmail.com>.
If you're doing server deploys / start / stops, it might be a good idea to
look at cargo.
http://cargo.codehaus.org/
Jim
On 9/21/07, Subashini S <su...@hotmail.com> wrote:
>
> Hi,
>
> I am using maven2.0.7 .
>
> I want to do something like "mvn start" which would do all the packaging
> stuff and start the server.
> Somethink like this target would execute a script and it depends on "mvn
> package".
>
> I thought of using antrun plugin and in the task I asked it to execute the
> file and made the phase to be package. But when I ran "mvn install", the
> perl script gets executed before the package phase?
>
> I even created a new ant plugin, which would run the script. But before
> running the script, the package phase needs to be executed.
>
> hello.build.xml
> ------------------
> <project>
> <target name="hello">
> <echo>Staring the server</echo>
> <exec executable="perl" failonerror="true" logError="true">
> <arg line="jboss.pl " />
> </exec>
> </target>
> </project>
>
> Here is it possible for me to specify that this target depends on (the pom
> in that folder's) "package" target ?
>
> Or is there any other way I could get this working?
>
> Thanks,
> Suabshini
>
> _________________________________________________________________
> Post free property ads on Yello Classifieds now! www.yello.in
> http://ss1.richmedia.in/recurl.asp?pid=221
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>