maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zilvinas Vilutis <>
Subject java file path in exec:java
Date Wed, 20 Apr 2011 19:45:14 GMT
Hi maven users!

I'm trying to execute a java command and pass a path to a file as an argument:


And I'm using maven properties to construct the filename:

Unfortunately, I'm getting an exception from the java class I'm running:

Caused by:  C:\<path to my
project>\target\classes\ (The filename, directory name,
or volume label syntax is incorrect)
        at Method)

Most likely the it is using the argument and does not escape slashes
to new filePath )

As I don't have access to source code of the class - is there any way
to enforce maven use unix style path generation on windows? ( change
slashes to "/" )

I tried to override the ${file.separator} property - but it seems to
be read-only and doesn't help.

Any ideas?

Thank you!

Žilvinas Vilutis


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message