so this can be considered a gradle bug ? I've asked this before, and i'll ask it again now; Should I open a bug report for this. It seems a bit of a shame if the best answer is to use ant.exec No shame in a bug..... but it does need to be scheduled to be fixed!
On 22 June 2011 17:51, David Resnick <[email protected]> wrote: > I suggest using ant.exec. I imagine it has all the Windows wrinkles ironed > out. > > There is also an svn ant task, that might work better for you. > > - David > > > On Wed, Jun 22, 2011 at 10:44 AM, Sean Van Buggenum <[email protected]>wrote: > >> plus it is not at all clear to me how to go about dynamically using >> COMSPEC in a gradle exec command... >> >> I did manage to work out how to get the OS type .... should have known I >> could just use the java properties >> >> if (System.getProperty("os.name")?.toLowerCase()?.indexOf("windows") != >> -1) >> svnCommand = "%COMSPEC% /c svn" >> else >> svnCommand = "svn" >> >> However, I should have also known the above here wouldn't work. Just >> complains about not being able to execute %COMSPEC% >> Is there at all a nice way to do this? >> Or do I have to do a big ugly hack for the sake of windows >> >> Regards, >> >> sean >> >> >> >> >
