You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fg...@apache.org on 2010/03/10 11:53:46 UTC
svn commit: r921301 - in
/incubator/chemistry/trunk/chemistry/chemistry-shell: run.sh
src/main/java/org/apache/chemistry/shell/app/ChemistryApp.java
Author: fguillaume
Date: Wed Mar 10 10:53:45 2010
New Revision: 921301
URL: http://svn.apache.org/viewvc?rev=921301&view=rev
Log:
Disable JVM debug mode by default
Modified:
incubator/chemistry/trunk/chemistry/chemistry-shell/run.sh
incubator/chemistry/trunk/chemistry/chemistry-shell/src/main/java/org/apache/chemistry/shell/app/ChemistryApp.java
Modified: incubator/chemistry/trunk/chemistry/chemistry-shell/run.sh
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-shell/run.sh?rev=921301&r1=921300&r2=921301&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-shell/run.sh (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-shell/run.sh Wed Mar 10 10:53:45 2010
@@ -1,6 +1,6 @@
#!/bin/sh
BASEDIR=`dirname $0`
-JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
+#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
-java ${JAVA_OPTS} -jar $BASEDIR/target/chemistry-shell-0.5-SNAPSHOT.jar $@
+java $JAVA_OPTS -jar "$BASEDIR"/target/chemistry-shell-0.5-SNAPSHOT.jar "$@"
Modified: incubator/chemistry/trunk/chemistry/chemistry-shell/src/main/java/org/apache/chemistry/shell/app/ChemistryApp.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-shell/src/main/java/org/apache/chemistry/shell/app/ChemistryApp.java?rev=921301&r1=921300&r2=921301&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-shell/src/main/java/org/apache/chemistry/shell/app/ChemistryApp.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-shell/src/main/java/org/apache/chemistry/shell/app/ChemistryApp.java Wed Mar 10 10:53:45 2010
@@ -71,7 +71,8 @@ public class ChemistryApp extends Abstra
protected void doConnect() {
Map<String, Serializable> params = new HashMap<String, Serializable>();
params.put(Repository.PARAM_USERNAME, username);
- params.put(Repository.PARAM_PASSWORD, new String(password));
+ params.put(Repository.PARAM_PASSWORD, password == null ? null
+ : new String(password));
repositoryService = new APPRepositoryService(
serverUrl.toExternalForm(), params);
RepositoryManager.getInstance().registerService(repositoryService);