From b7995badfd3f451ff857950d35f642ff6f2e02a1 Mon Sep 17 00:00:00 2001 From: hq Date: Wed, 22 Mar 2006 18:33:29 +0000 Subject: - Use 'exec' in the launcher shell script to comply with Porter's Handbook guidelines - Reduce line length in launcher shell script --- java/java-checkstyle/files/checkstyle.sh.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java/java-checkstyle/files/checkstyle.sh.in b/java/java-checkstyle/files/checkstyle.sh.in index d78dce28be03..86997fdc629b 100644 --- a/java/java-checkstyle/files/checkstyle.sh.in +++ b/java/java-checkstyle/files/checkstyle.sh.in @@ -2,4 +2,7 @@ # # $FreeBSD$ -JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -cp "%%JAVAJARDIR%%/checkstyle.jar:%%JAVAJARDIR%%/checkstyle-optional.jar" com.puppycrawl.tools.checkstyle.Main "$@" +JAVA_VERSION="%%JAVA_VERSION%%" \ + exec "%%LOCALBASE%%/bin/java" \ + -cp "%%JAVAJARDIR%%/checkstyle.jar:%%JAVAJARDIR%%/checkstyle-optional.jar" \ + com.puppycrawl.tools.checkstyle.Main "$@" -- cgit