ah, that is really overkill :-) On Thu, Jul 1, 2010 at 12:08 AM, Andreas Sewe <[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. > > 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 > > --------------------------------------------------------------------- > 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]
