Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread lukewpatterson
sions can't be passed as arguments, then that needs to be fixed too. Either way, might as well file the bug so you can leave some clues to follow for others experiencing the same obstacle. -- View this message in context: http://maven.40175.n5.nabble.com/Passing-basedir-into-Exec-plugi

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread cowwoc
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-tp

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread lukewpatterson
t; 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 quote

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread lukewpatterson
ng now, you want a general way to create a String parameter value containing proper file separators 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? -- View this message in

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread cowwoc
bble.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 > Here is a cleaned up log without -Dfoo=${file.separator}. You should be focusing on java.library.path in this log. h

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread lukewpatterson
cowwoc wrote: > > ... one of the arguments equal to "${basedir}/target". > maybe I'm missing something here, but why won't ${project.build.directory} work? -- View this message in context: http://maven.40175.n5.nabble.com/Passing-basedir-into-Exec-plugin-tp512

Re: Passing ${basedir} into Exec plugin

2010-07-05 Thread cowwoc
eas, 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 me

Re: Passing ${basedir} into Exec plugin

2010-07-01 Thread Dan Tran
ah, that is really overkill :-) On Thu, Jul 1, 2010 at 12:08 AM, 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"

Re: Passing ${basedir} into Exec plugin

2010-07-01 Thread Andreas Sewe
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 slas

Re: Passing ${basedir} into Exec plugin

2010-06-30 Thread Dan Tran
h. What can I do to > ensure that the argument contains a consistent slash-style? > > Thank you, > Gili > -- > View this message in context: > http://maven.40175.n5.nabble.com/Passing-basedir-into-Exec-plugin-tp512272p512272.html > Sent from the Maven - Users mailing list arc

Passing ${basedir} into Exec plugin

2010-06-30 Thread cowwoc
e it has no way of knowing that the command-line argument refers to a path. What can I do to ensure that the argument contains a consistent slash-style? Thank you, Gili -- View this message in context: http://maven.40175.n5.nabble.com/Passing-basedir-into-Exec-plugin-tp512272p512272.html Sent