Gradle 2.4-rc-1 application plugin has doubled start scripts in binary distribution

I updated to gradle 2.4-rc-1 version and execute distZip task.
I found that gradle doubled start scripts at build\distribution\\projectName\bin\ directory.

gradle -version

Gradle 2.4-rc-1

Build time: 2015-04-23 03:15:23 UTC
Build number: none
Revision: 5c9c3bc20ca1c281ac7972643f1e2d190f2c943c

Groovy: 2.3.10
Ant: Apache Ant™ version 1.9.4 compiled on April 29 2014
JVM: 1.8.0_45 (Oracle Corporation 25.45-b02)
OS: Windows 8.1 6.3 amd64

Do you have a reproducible example and/or is your project public?

What’s the contents of the projectName/bin directory? There are two different start scripts or there are two copies of the same start script?


Sorry but new user can’t upload, so:

plugins {
    id 'application'
mainClassName = 'test.Main'

package test;
class Main {
    public static void main(final String... args) {

That is all what I have to reproduce problem.
There are two copies of the same start script(totally 4 files: 2 equal files for *nix and 2 equal files for windows).

thanks for the report. I created GRADLE-3289 for that

I’ve pushed a fix for this issue.