You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by bgik <br...@hotmail.com> on 2007/08/16 13:11:36 UTC
spaces in java.library.path in pom.xml
Hi All
Although this must be a common problem I can't find a satisfactory answer
anywhere.
I am looking to run junits using the surefire plug in. These junits rely on
a dll so I am supplying the location of this dll in my pom.xml as follows
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.3</version>
<configuration>
<forkMode>pertest</forkMode>
<trimStackTrace>false</trimStackTrace>
<argLine>-Djava.library.path=${java.library.path}</argLine>
</configuration>
</plugin>
This is fine until the location of the dll is in a directory with spaces eg
'C:\Program Files'. I can't do any form of hard coding because different
users have their dll's in different locations.
I have read many things online about surrounding the java.library.path with
quotes etc, but what exactly should my pom.xml look to overcome this
problem?
Or is there a way of doing this without referencing java.library.path in
pom.xml?
Any suggestions must appreciated
many thanks
Bruce
--
View this message in context: http://www.nabble.com/spaces-in-java.library.path-in-pom.xml-tf4278975s177.html#a12179311
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: spaces in java.library.path in pom.xml
Posted by Wayne Fay <wa...@gmail.com>.
Perhaps not ideal, but one possible work-around is to use the MS-DOS
command "subst" to create a new virtual drive M:\ which is actually
c:\program files\your\app\.
Then the path is simply M:\lib which has no spaces.
Wayne
On 8/16/07, bgik <br...@hotmail.com> wrote:
>
> Hi All
> Although this must be a common problem I can't find a satisfactory answer
> anywhere.
>
> I am looking to run junits using the surefire plug in. These junits rely on
> a dll so I am supplying the location of this dll in my pom.xml as follows
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.3</version>
> <configuration>
> <forkMode>pertest</forkMode>
> <trimStackTrace>false</trimStackTrace>
>
> <argLine>-Djava.library.path=${java.library.path}</argLine>
> </configuration>
> </plugin>
>
> This is fine until the location of the dll is in a directory with spaces eg
> 'C:\Program Files'. I can't do any form of hard coding because different
> users have their dll's in different locations.
>
> I have read many things online about surrounding the java.library.path with
> quotes etc, but what exactly should my pom.xml look to overcome this
> problem?
>
> Or is there a way of doing this without referencing java.library.path in
> pom.xml?
>
> Any suggestions must appreciated
>
> many thanks
> Bruce
> --
> View this message in context: http://www.nabble.com/spaces-in-java.library.path-in-pom.xml-tf4278975s177.html#a12179311
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org