You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sonnathi, Venkat" <Ve...@contractor.thomson.com> on 2004/06/03 18:04:11 UTC

Recommended way to execute a java class

Hi,

After the build. I need to run a Java class with the same classpath as the
build classpath. Is <ant:java... the best way? If so how do I access the
project classpath (depdencies).

Thanks,
--Venkat.

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


Re: Recommended way to execute a java class

Posted by "matthew.hawthorne" <ma...@apache.org>.
Sonnathi, Venkat wrote:
> After the build. I need to run a Java class with the same classpath as the
> build classpath. Is <ant:java... the best way? 

I think so, that's how I do it.


> If so how do I access the project classpath (depdencies).

Add this to your ant:java element:

<classpath>
     <path refid="maven.dependency.classpath"/>
</classpath>



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