Make the build working on windows

It's going to work fine if Ant is on the path - we are just appending
'.bat' to an existing call.

The fix is very naive, but it was the simplest way to do it.
15 lis 2014 18:42 "Szczepan Faber" <notifications@github.com> napisał(a):

> In build.gradle:
>
> > @@ -121,11 +121,17 @@ task allJar(type: Jar) {
> >      from("lib/run") { exclude '**/*.jar' }
> >  }
> >
> > +def antCommand = "ant"
> > +
> > +if (System.getProperty("os.name").startsWith("Windows")) {
> > +    antCommand += ".bat"
>
> I think the implementation is fine ;) It is an improvement over the
> existing behavior and I want to get rid of ant anyway soon.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mockito/mockito/pull/115/files#r20403735>.
>