You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2006/03/12 14:18:40 UTC
svn commit: r385283 - /lenya/trunk/configure.bat
Author: michi
Date: Sun Mar 12 05:18:40 2006
New Revision: 385283
URL: http://svn.apache.org/viewcvs?rev=385283&view=rev
Log:
cmd as default and gui as parameter
Modified:
lenya/trunk/configure.bat
Modified: lenya/trunk/configure.bat
URL: http://svn.apache.org/viewcvs/lenya/trunk/configure.bat?rev=385283&r1=385282&r2=385283&view=diff
==============================================================================
--- lenya/trunk/configure.bat (original)
+++ lenya/trunk/configure.bat Sun Mar 12 05:18:40 2006
@@ -1,40 +1,49 @@
-:: Copyright 1999-2006 The Apache Software Foundation
-::
-:: Licensed under the Apache License, Version 2.0 (the "License");
-:: you may not use this file except in compliance with the License.
-:: You may obtain a copy of the License at
-::
-:: http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing, software
-:: distributed under the License is distributed on an "AS IS" BASIS,
-:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-:: See the License for the specific language governing permissions and
-:: limitations under the License.
-::
-::
-@echo off
-
-:: define variables for paths
-set LENYA_HOME=%CD%
-echo LENYA_HOME = %LENYA_HOME%
-set CP=%LENYA_HOME%\tools\configure\build\classes
-echo CLASSPATH = %CP%
-
-:: check if JAVA_HOME is set or goto end
-echo JAVA_HOME = %JAVA_HOME%
-if not "%JAVA_HOME%" == "" goto gotJavaHome
-echo You must set JAVA_HOME to point at your Java Development Kit installation
-goto end
-
-:: Execute the Configuration if JAVA_HOME is set.
-:gotJavaHome
-java -classpath %CP% org.apache.lenya.config.ConfigureCommandLine %LENYA_HOME%
-::java -classpath %CP% org.apache.lenya.config.ConfigureGUI %LENYA_HOME%
-
-
-:: Terminate program
-:end
-:: unset used variables
-set LENYA_HOME=
-set CP=
+:: Copyright 1999-2006 The Apache Software Foundation
+::
+:: Licensed under the Apache License, Version 2.0 (the "License");
+:: you may not use this file except in compliance with the License.
+:: You may obtain a copy of the License at
+::
+:: http://www.apache.org/licenses/LICENSE-2.0
+::
+:: Unless required by applicable law or agreed to in writing, software
+:: distributed under the License is distributed on an "AS IS" BASIS,
+:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+:: See the License for the specific language governing permissions and
+:: limitations under the License.
+::
+::
+@echo off
+
+:: define variables for paths
+set LENYA_HOME=%CD%
+set CP=%LENYA_HOME%\tools\configure\build\classes
+
+:: check if JAVA_HOME is set or goto end
+if not "%JAVA_HOME%" == "" goto gotJavaHome
+echo You must set JAVA_HOME to point at your Java Development Kit installation
+goto end
+
+:gotJavaHome
+:: If commandline argument cmd is given goto javaCmd. Default without any argument
+:: it will start the GUI.
+if "%1" == "gui" goto javaGui
+goto javaCmd
+
+:javaGui
+java -classpath %CP% org.apache.lenya.config.ConfigureGUI %LENYA_HOME%
+goto end
+
+:javaCmd
+java -classpath %CP% org.apache.lenya.config.ConfigureCommandLine %LENYA_HOME%
+goto end
+
+:help
+echo Usage: %0 gui or cmd
+goto end
+
+
+:end
+:: unset used variables
+set LENYA_HOME=
+set CP=
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org