I updated to gradle 2.4-rc-1 version and execute distZip task.
I found that gradle doubled start scripts at build\distribution\projectName.zip\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
plugins {
id 'application'
}
mainClassName = 'test.Main'
Main.java
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).