[jboss-cvs] JBossAS SVN: r71239 - trunk/console/src/main/org/jboss/console/twiddle.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Mar 25 06:58:35 EDT 2008
Author: dimitris at jboss.org
Date: 2008-03-25 06:58:35 -0400 (Tue, 25 Mar 2008)
New Revision: 71239
Modified:
trunk/console/src/main/org/jboss/console/twiddle/Twiddle.java
Log:
JBAS-3637, twiddle ignores environment properties when creating its InitialContext
Modified: trunk/console/src/main/org/jboss/console/twiddle/Twiddle.java
===================================================================
--- trunk/console/src/main/org/jboss/console/twiddle/Twiddle.java 2008-03-25 10:48:07 UTC (rev 71238)
+++ trunk/console/src/main/org/jboss/console/twiddle/Twiddle.java 2008-03-25 10:58:35 UTC (rev 71239)
@@ -1,24 +1,24 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.console.twiddle;
import gnu.getopt.Getopt;
@@ -31,6 +31,7 @@
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
+import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@@ -236,7 +237,7 @@
}
else
{
- Properties props = new Properties(System.getProperties());
+ Hashtable props = new Hashtable(System.getProperties());
props.put(Context.PROVIDER_URL, serverURL);
ctx = new InitialContext(props);
}
More information about the jboss-cvs-commits
mailing list