maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cowwoc <cow...@bbs.darktech.org>
Subject Re: Passing ${basedir} into Exec plugin
Date Mon, 05 Jul 2010 18:05:02 GMT


lukewpatterson wrote:
> 
> 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.
> 

That works (using quotes) but based on what you wrote above I believe this
is a bug.

1. I am expecting this to work without quotes (since my path does not
contain any spaces)
2. I am expecting to be able to put anything inside the quotes

Do you agree? Should I file a bug report?

Thanks,
Gili
-- 
View this message in context: http://maven.40175.n5.nabble.com/Passing-basedir-into-Exec-plugin-tp512272p699142.html
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


Mime
View raw message