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/02 11:56:44 UTC

svn commit: r382346 - in /lenya/trunk: ./ tools/configure/ tools/configure/build/ tools/configure/build/org/ tools/configure/build/org/apache/ tools/configure/build/org/apache/lenya/ tools/configure/build/org/apache/lenya/config/ tools/configure/src/ t...

Author: michi
Date: Thu Mar  2 02:56:39 2006
New Revision: 382346

URL: http://svn.apache.org/viewcvs?rev=382346&view=rev
Log:
configure started cmd and gui

Added:
    lenya/trunk/configure.sh   (with props)
    lenya/trunk/tools/configure/
    lenya/trunk/tools/configure/build/
    lenya/trunk/tools/configure/build/org/
    lenya/trunk/tools/configure/build/org/apache/
    lenya/trunk/tools/configure/build/org/apache/lenya/
    lenya/trunk/tools/configure/build/org/apache/lenya/config/
    lenya/trunk/tools/configure/build/org/apache/lenya/config/ConfigureCommandLine.class   (with props)
    lenya/trunk/tools/configure/build/org/apache/lenya/config/ConfigureGUI.class   (with props)
    lenya/trunk/tools/configure/src/
    lenya/trunk/tools/configure/src/org/
    lenya/trunk/tools/configure/src/org/apache/
    lenya/trunk/tools/configure/src/org/apache/lenya/
    lenya/trunk/tools/configure/src/org/apache/lenya/config/
    lenya/trunk/tools/configure/src/org/apache/lenya/config/ConfigureCommandLine.java
    lenya/trunk/tools/configure/src/org/apache/lenya/config/ConfigureGUI.java

Added: lenya/trunk/configure.sh
URL: http://svn.apache.org/viewcvs/lenya/trunk/configure.sh?rev=382346&view=auto
==============================================================================
--- lenya/trunk/configure.sh (added)
+++ lenya/trunk/configure.sh Thu Mar  2 02:56:39 2006
@@ -0,0 +1,58 @@
+#!/bin/sh
+
+#  Copyright 1999-2004 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.
+                                                                                                                                                             
+# ----- Verify and Set Required Environment Variables -------------------------
+                                                                                                                                                             
+if [ "$TERM" = "cygwin" ] ; then
+  S=';'
+else
+  S=':'
+fi
+                                                                                                                                                             
+# ----- Ignore system CLASSPATH variable
+OLD_CLASSPATH="$CLASSPATH"
+unset CLASSPATH
+CLASSPATH="`echo tools/configure/build | tr ' ' $S`"
+export CLASSPATH
+#echo "$CLASSPATH"
+
+DEFAULT_UI_TYPE=cmd
+UI_TYPE=$1
+if [ "$UI_TYPE" = "" ];then
+  UI_TYPE=$DEFAULT_UI_TYPE
+fi
+#echo $UI_TYPE
+
+echo "WARNING: This shell script has not been finished yet! Use at own risk ;-)"
+
+if [ "$UI_TYPE" = "cmd" ];then
+  java org.apache.lenya.config.ConfigureCommandLine
+elif [ "$UI_TYPE" = "gui" ]; then
+  java org.apache.lenya.config.ConfigureGUI
+else
+  echo "No such User Interface: $UI_TYPE"
+  exit 1
+fi
+ERR=$?
+
+# ----- Restore CLASSPATH
+CLASSPATH="$OLD_CLASSPATH"
+export CLASSPATH
+unset OLD_CLASSPATH
+
+# Build status return
+# Usage: e.g. bash: ./build.sh; if [ $? -ne 0 ]; then echo "Build FAILED"; fi
+exit $ERR

Propchange: lenya/trunk/configure.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: lenya/trunk/tools/configure/build/org/apache/lenya/config/ConfigureCommandLine.class
URL: http://svn.apache.org/viewcvs/lenya/trunk/tools/configure/build/org/apache/lenya/config/ConfigureCommandLine.class?rev=382346&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/trunk/tools/configure/build/org/apache/lenya/config/ConfigureCommandLine.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/trunk/tools/configure/build/org/apache/lenya/config/ConfigureGUI.class
URL: http://svn.apache.org/viewcvs/lenya/trunk/tools/configure/build/org/apache/lenya/config/ConfigureGUI.class?rev=382346&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/trunk/tools/configure/build/org/apache/lenya/config/ConfigureGUI.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/trunk/tools/configure/src/org/apache/lenya/config/ConfigureCommandLine.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/tools/configure/src/org/apache/lenya/config/ConfigureCommandLine.java?rev=382346&view=auto
==============================================================================
--- lenya/trunk/tools/configure/src/org/apache/lenya/config/ConfigureCommandLine.java (added)
+++ lenya/trunk/tools/configure/src/org/apache/lenya/config/ConfigureCommandLine.java Thu Mar  2 02:56:39 2006
@@ -0,0 +1,33 @@
+/*
+ * Copyright  1999-2004 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.
+ *
+ */
+
+/* $Id: CreatorException.java 176415 2005-05-23 00:55:20Z gregor $  */
+
+package org.apache.lenya.config;
+
+/**
+ * A command line tool to configure Lenya build
+ */
+public class ConfigureCommandLine {
+
+    /**
+     * @param args Command line args
+     */
+    public static void main(String[] args) {
+        System.out.println("Hello Command Line");
+    }
+}

Added: lenya/trunk/tools/configure/src/org/apache/lenya/config/ConfigureGUI.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/tools/configure/src/org/apache/lenya/config/ConfigureGUI.java?rev=382346&view=auto
==============================================================================
--- lenya/trunk/tools/configure/src/org/apache/lenya/config/ConfigureGUI.java (added)
+++ lenya/trunk/tools/configure/src/org/apache/lenya/config/ConfigureGUI.java Thu Mar  2 02:56:39 2006
@@ -0,0 +1,33 @@
+/*
+ * Copyright  1999-2004 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.
+ *
+ */
+
+/* $Id: CreatorException.java 176415 2005-05-23 00:55:20Z gregor $  */
+
+package org.apache.lenya.config;
+
+/**
+ * A GUI to configure Lenya build
+ */
+public class ConfigureGUI {
+
+    /**
+     * @param args Command line args
+     */
+    public static void main(String[] args) {
+        System.out.println("Hello GUI");
+    }
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org