You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sonar, Nishant" <ni...@wachovia.com> on 2007/10/04 19:09:29 UTC
adding with current classpath a resource?
Hello,
I want to add a reference (folder) for the current classpath
Ie .i wanna set something as
Classpath=classpath;some/folder/ref
Through sirefireplugin
I am not getting what to write for existing 'classpath'
I wrote as
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-classpath=${classpath};${project.build.outputDirectory}\somedi
r</argLine>
</configuration>
</plugin>
The maven is not taking ${classpath} it says null , I also
Tried
{maven.test.classpath},{maven.compile.classpath},{maven.compile.classpat
h}
But all are giving null
How to use current classpath here and add something to that classpath in
surefire plugin
Thanks
Nishant Sonar
Re: adding with current classpath a resource?
Posted by Jim Sellers <ji...@gmail.com>.
Can't you have the contents of this folder as part of the project (in
src/test/resources) or jar'ed up and then just reference it with scope test?
Jim
On 10/4/07, Sonar, Nishant <ni...@wachovia.com> wrote:
>
> Hello,
>
>
>
> I want to add a reference (folder) for the current classpath
>
>
>
> Ie .i wanna set something as
>
>
>
> Classpath=classpath;some/folder/ref
>
>
>
> Through sirefireplugin
>
>
>
> I am not getting what to write for existing 'classpath'
>
>
>
> I wrote as
>
>
>
> <plugin>
>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-surefire-plugin</artifactId>
>
> <configuration>
>
>
> <argLine>-classpath=${classpath};${project.build.outputDirectory}\somedi
> r</argLine>
>
> </configuration>
>
> </plugin>
>
>
>
>
>
> The maven is not taking ${classpath} it says null , I also
>
> Tried
> {maven.test.classpath},{maven.compile.classpath},{maven.compile.classpat
> h}
>
> But all are giving null
>
>
>
> How to use current classpath here and add something to that classpath in
> surefire plugin
>
>
>
> Thanks
>
> Nishant Sonar
>
>