[jbosstools-commits] JBoss Tools SVN: r43930 - trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/stacks.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Sep 21 11:13:48 EDT 2012


Author: fbricon
Date: 2012-09-21 11:13:48 -0400 (Fri, 21 Sep 2012)
New Revision: 43930

Modified:
   trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/stacks/StacksManager.java
Log:
JBIDE-12472	: properly get stacks url

Modified: trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/stacks/StacksManager.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/stacks/StacksManager.java	2012-09-21 14:04:45 UTC (rev 43929)
+++ trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/stacks/StacksManager.java	2012-09-21 15:13:48 UTC (rev 43930)
@@ -14,7 +14,6 @@
 
 import java.io.File;
 import java.io.FileInputStream;
-import java.io.IOException;
 import java.io.InputStream;
 import java.net.URL;
 import java.util.Properties;
@@ -67,13 +66,13 @@
 	private static String getStacksUrlFromJar() {
 		InputStream is = null;
 		try {
-			is = Stacks.class.getResourceAsStream("config.properties");
+			is = StacksManager.class.getResourceAsStream("/org/jboss/jdf/stacks/client/config.properties");
 			Properties p = new Properties();
 			p.load(is);
 			return p.getProperty(StacksClientConfiguration.REPO_PROPERTY);
-		} catch (IOException ioe) {
+		} catch (Exception e) {
 			System.err.println("Can't read stacks url from the stacks-client.jar");
-			ioe.printStackTrace();
+			e.printStackTrace();
 		} finally {
 			IOUtil.close(is);
 		}



More information about the jbosstools-commits mailing list