lukewpatterson wrote:
> 
> 
> cowwoc wrote:
>> 
>> ... this looks like a bug in the plugin. What do you think?
>> 
> 
> the parameters are resolved before the plugin even sees them though,
> right?
> 

ok, and then the plugin does some massaging, and '\' is an escape character

http://fisheye.codehaus.org/browse/mojo/trunk/mojo/exec-maven-plugin/src/main/java/org/codehaus/mojo/exec/AbstractExecMojo.java?r=HEAD#l155

try (with the quotes)

"${basedir}${file.separator}target${file.separator}lib"

interestingly though,

"\" or "\a" or "a\"

throw error "args contains not properly formatted string"

but "a\a" is ok

So looks like you can get by if you use the quotes, and then hope the
characters touching the quotes aren't a '\'.  I didn't test for nested
quotes.
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Passing-basedir-into-Exec-plugin-tp512272p696586.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to