lookup maven profile where you can configure your properties to
${basedir}\\target when on windows platform-D On Wed, Jun 30, 2010 at 9:26 PM, cowwoc <[email protected]> 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. > > When Maven is passed ${basedir} into arguments it *knows* are directories > it's smart about fixing the slashes but in this case 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 from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
