Author: Grid.Qian
Date: 2008-06-03 22:26:00 -0400 (Tue, 03 Jun 2008)
New Revision: 8528
Modified:
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebServiceClient.java
Log:
JBIDE-2236: remove two jars from classpath for running client
Modified:
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java 2008-06-04
00:09:59 UTC (rev 8527)
+++
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java 2008-06-04
02:26:00 UTC (rev 8528)
@@ -97,6 +97,19 @@
}
return list.toArray(new IClasspathEntry[list.size()]);
}
+ public void removeEntry(String jarName){
+ if(entries == null){
+ return;
+ }
+ IClasspathEntry[] newEntries = new IClasspathEntry[entries.length-1];
+ int i=0;
+ for(IClasspathEntry entry: entries){
+ if(!entry.toString().contains(jarName)){
+ newEntries[i++] = entry;
+ }
+ }
+ entries = newEntries;
+ }
}
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebServiceClient.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebServiceClient.java 2008-06-04
00:09:59 UTC (rev 8527)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebServiceClient.java 2008-06-04
02:26:00 UTC (rev 8528)
@@ -26,6 +26,7 @@
import org.jboss.tools.ws.creation.core.commands.BindingFilesValidationCommand;
import org.jboss.tools.ws.creation.core.commands.ClientSampleCreationCommand;
import org.jboss.tools.ws.creation.core.commands.InitialClientCommand;
+import org.jboss.tools.ws.creation.core.commands.RemoveClientJarsCommand;
import org.jboss.tools.ws.creation.core.commands.WSDL2JavaCommand;
import org.jboss.tools.ws.creation.core.data.ServiceModel;
@@ -58,6 +59,7 @@
commands.add(new BindingFilesValidationCommand(model));
commands.add(new WSDL2JavaCommand(model));
commands.add(new ClientSampleCreationCommand(model));
+ commands.add(new RemoveClientJarsCommand(model));
return new SimpleCommandFactory(commands);
}
Show replies by date