Andreas Sewe wrote:
> 
> Hi,
> 
>> I need to invoke an external command using the Exec plugin, with one of
>> the
>> arguments equal to "${basedir}/target". The problem is that under Windows
>> this expands to "c:\\temp\\project/target" because ${basedir} uses
>> Windows-style slashes whereas the rest of the argument uses Unix-style
>> slashes. Needless to say, the external program fails to run. If I switch
>> the
>> slash-style to "${basedir}\\target" then it will fail under Unix.
> 
> Does using ${file.separator} instead of slashes work? After all, these 
> standard Java properties are available for interpolation in the POM.
> 
> Using a profile as Dan suggested strikes me as a bit of overkill for the 
> problem at hand.
> 
> Best wishes,
> 
> Andreas
> 

Hi Andreas,

Surprisingly, this doesn't work. Please take a look at the attached log file
from maven-exec-plugin: 
http://maven.40175.n5.nabble.com/file/n696563/exec-output.txt
exec-output.txt 

At first glance, this looks like a bug in the plugin. What do you think?

Thanks,
Gili
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Passing-basedir-into-Exec-plugin-tp512272p696563.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to