maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hezjing <hezj...@gmail.com>
Subject Re: Ant's Java task in Maven?
Date Tue, 05 Jun 2007 02:49:36 GMT
Thank you, Jo and Markku!
It is working now...

What about if I have mulitple main Java classes? With Ant, I used to
have different tasks to execute different Java classes:

   <task name="run-server">
      <java classname="a.b.c.Server"/>
   </task>

   <task name="run-client">
      <java classname="a.b.c.Client"/>
   </task>



On 6/4/07, Markku Saarela <markkusaarela@kolumbus.fi> wrote:
> Use Maven Exec Plugin http://mojo.codehaus.org/exec-maven-plugin/
>
> - markku
>
> hezjing wrote:
> > Hi Jo
> >
> > I hope I can do this the "Maven's way" without using the Antrun plugin.
> >
> > Any better idea?
> >
> >
> > On 6/4/07, Jo Vandermeeren <jo.vandermeeren@gmail.com> wrote:
> >> You can call your Ant task with the maven-antrun-plugin:
> >> http://maven.apache.org/plugins/maven-antrun-plugin/
> >>
> >> On 6/4/07, hezjing <hezjing@gmail.com> wrote:
> >> >
> >> > Hi!
> >> >
> >> > With Ant, we have Java task to execute a main Java class.
> >> >
> >> > How can I do this with Maven?
> >> >
> >> >
> >> > --
> >> >
> >> > Hez
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > For additional commands, e-mail: users-help@maven.apache.org
> >> >
> >> >
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 

Hez

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


Mime
View raw message