Hi Victor,

On Oct 6, 2008, at 2:26 PM, Victor Ott wrote:

Hello everyone,

as far as I can see the isue is that launch4j doesn't recognize at all
neither JRE 6, nor JDK 5, as being available. Here my first trying
with Gradle 0.4 (jumping up from 0.2)(please note that I'm setting
both PATH and JAVA_HOME):

====== Active JRE:
D:\java\tools\gradle\gradle\bin>java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

====== Gradle says:
D:\java\tools\gradle\gradle\bin>gradle -v
Launch4j: This application requires a Java Runtime Environment 1.5.0

====== Add JDK 1.5 to path:
D:\java\tools\gradle\gradle\bin>setjava 15

Setting JAVA variables:
JDK...
GRADLE...
GROOVY...
ANT...
Add to path: .;d:\java\jdk15\bin;d:\java\tools\gradle\gradle\bin;d: \java\tools\groovy\groovy\bin;d:\java\tools\ant\ant\bin
JAVA_HOME     = d:\java\jdk15
ANT_HOME      = d:\java\tools\ant\ant
TOMCAT_HOME   = d:\java\tools\tomcat\apache-tomcat-6
CATALINA_HOME = d:\java\tools\tomcat\apache-tomcat-6
GROOVY_HOME   = d:\java\tools\groovy\groovy
WEBTEST_HOME  = d:\java\tools\webtest\build
GRADLE_HOME   = d:\java\tools\gradle\gradle

====== Gradle says:
D:\java\tools\gradle\gradle\bin>gradle -v
Launch4j: This application requires a Java Runtime Environment 1.5.0


Cygwin only for Gradle is a bit too much.

This is just a work around and can't be a final solution.

Therefore, current Gradle
0.4 packaging seems to be unusable in Windows.

Not necessarily unusable but possibly unusable (unless you use cygwin), which is bad enough.

The question is what to do about this.

The major reason why we have switched to launch4j is that gradle.exe returns a non zero value in case of a build failure. With a .bat file this is not possible. ant.bat or maven.bat return always 0. The return value issue is a big problem when Gradle is used by a ci server running on windows. With a .bat every build is successful even if it fails. The other reason were issues with spaces in the paths. Last but not least, maintaining a bat file is one of the ugliest things I ever had to do as software developer.

On the launch4j mailing list there are a couple of postings asking how to specify the JDK. None of the postings is answered. I gonna try to contact the author directly. If this does not work out, I guess we have to provide a bat file again in 0.5.

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to