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 > > > >
