I did look at dependency:build-classpath but I could only
see how it outputs the class path to a file.

>From the web page:

"This goal will output a classpath string of dependencies
 from the local repository to a file or log."

Is there anyway to get access to it as a property?

I guess I could always write it out to a file and then read
it from the file in my tests but it seems a convoluted...

Cheers,
James.

On Thu, 2009-05-07 at 18:08 -0400, Brian Fox wrote:
> take a look at dependency:build-classpath
> 
> On Thu, May 7, 2009 at 3:11 AM, James Crawford 
> <[email protected]>wrote:
> 
> > Hi,
> >
> > I need to be able to get access to the runtime class path
> > in my tests when invoked from the maven-surefire-plugin.
> >
> > I can set system properties for the surefire plugin but I
> > can't find anyway that I can get access to the class path.
> >
> > For example I want to do something like the following to
> > set some "runtime.classpath" system property (assuming maven
> > provided a "maven.runtime.classpath" property):
> >
> >  <plugin>
> >    <artifactId>maven-surefire-plugin</artifactId>
> >    <configuration>
> >      <forkMode>always</forkMode>
> >      <systemProperties>
> >        <property>
> >          <name>runtime.classpath</name>
> >          <value>${maven.runtime.classpath}</value>
> >        </property>
> >      </systemProperties>
> >    </configuration>
> >    <executions>
> >      ...
> >    </executions>
> >  </plugin>
> >
> > I can see that when running ant tasks the antrun plugin
> > provides access to this type of information but I can't
> > find anywhere where it is possible to get access to this
> > information in a general way within Maven without writing
> > my own plugin.
> >
> > Can anyone tell me whether it is possible to do what I
> > want?
> >
> > Thanks,
> > James.
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]

Reply via email to