On Mon, 2003-06-30 at 04:00, Paul Libbrecht wrote:
> Paul Libbrecht wrote:
> > I was thinking about writing a servlet that would accept as parameters a 
> > project name and version, as well as a main-class and invocation 
> > attribute. The result would be a jnlp file referring a jar served from 
> > the maven repository (probably following the repository chain defined in 
> > the associated maven) with references to jnlp-described 
> > project-dependencies and their jar(s).
> 
> To make that thing short, allow me a quick question: how can I 
> instantiate a maven Project object ? Oh, and should I switch to the dev 
> list for that ? (just fearing).

import org.apache.maven.MavenUtils;

File f = new File( "project.xml" );
Project p = MavenUtils.getProject( f );


> Paul
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to