Author: adietish
Date: 2011-07-11 09:00:35 -0400 (Mon, 11 Jul 2011)
New Revision: 32814
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchConfigUtils.java
Log:
[JBIDE-9215] removed swallowing exception when converting classpath to a string
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java 2011-07-11
12:56:35 UTC (rev 32813)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java 2011-07-11
13:00:35 UTC (rev 32814)
@@ -170,7 +170,7 @@
}
@Deprecated
- public static ArrayList<String>
convertClasspath(List<IRuntimeClasspathEntry> cp) {
+ public static ArrayList<String>
convertClasspath(List<IRuntimeClasspathEntry> cp) throws CoreException {
return (ArrayList) LaunchConfigUtils.toStrings(cp);
}
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchConfigUtils.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchConfigUtils.java 2011-07-11
12:56:35 UTC (rev 32813)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchConfigUtils.java 2011-07-11
13:00:35 UTC (rev 32814)
@@ -74,44 +74,17 @@
addCPEntry(serverHome.append(relative), list);
}
- public static List<String> toStrings(List<?> cp) {
- Iterator<?> cpi = cp.iterator();
- ArrayList<String> list = new ArrayList<String>();
- while (cpi.hasNext()) {
- Object entry = cpi.next();
- if (entry instanceof IRuntimeClasspathEntry) {
- try {
- list.add(((IRuntimeClasspathEntry) entry).getMemento());
- } catch (Exception e) {
- // Trace.trace(Trace.SEVERE, "Could not resolve classpath entry:
- // " + entry, e);
- }
- } else if (entry instanceof String) {
- list.add((String) entry);
- } else if (entry != null){
- list.add(entry.toString());
- }
- }
-
- return list;
- }
-
- public static List<String> toString(List<IRuntimeClasspathEntry> cp) {
+ public static List<String> toStrings(List<IRuntimeClasspathEntry> cp) throws
CoreException {
Iterator<IRuntimeClasspathEntry> cpi = cp.iterator();
ArrayList<String> list = new ArrayList<String>();
while (cpi.hasNext()) {
IRuntimeClasspathEntry entry = cpi.next();
- try {
list.add(entry.getMemento());
- } catch (Exception e) {
- // Trace.trace(Trace.SEVERE, "Could not resolve classpath entry:
- // " + entry, e);
- }
}
return list;
}
-
+
public static IRuntimeClasspathEntry getRunJarRuntimeCPEntry(IServer server) throws
CoreException {
// TODO: improve/avoid server version check
// if (server.getServerType().getId().endsWith("70")) { //$NON-NLS-1$
Show replies by date