Thanks Dan and Eric for ur help.
-----Original Message-----
From: dan tran [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 10:06 AM
To: Maven Users List
Subject: Re: Executing a java class file
In addition, ensure to have this in your goal
<ant:classpath>
<ant:pathelement path="${maven.build.dest}"/>
<ant:path refid="maven.dependency.classpath"/>
</ant:classpath>
so that java ant task can find you project classes and its dependencies
On Thu, 09 Dec 2004 09:17:20 -0500, Eric Black <[EMAIL PROTECTED]> wrote:
> Hi,
>
> You can put that in a maven.xml file with some goal name and it will
> execute:
>
> <project xmlns:j="jelly:core" xmlns:ant="jelly:ant">
> <goal name="runabc">
> <ant:java classname="a.b.c"
> fork="true"
> failonerror="true" >
> <ant:arg value="abc"/>
> <ant:classpath refid="my.classpath"/>
> </ant:java>
> </goal>
> </project>
>
> then in your project directory, run 'maven runabc'.
>
> It might not work the way I did it, but you can get the idea.
>
> Eric
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]