|
Lines 19-24
Link Here
|
| 19 |
import java.util.Map; |
19 |
import java.util.Map; |
| 20 |
import java.util.Set; |
20 |
import java.util.Set; |
| 21 |
|
21 |
|
|
|
22 |
import org.eclipse.core.resources.IResource; |
| 22 |
import org.eclipse.core.runtime.CoreException; |
23 |
import org.eclipse.core.runtime.CoreException; |
| 23 |
import org.eclipse.core.runtime.IPath; |
24 |
import org.eclipse.core.runtime.IPath; |
| 24 |
import org.eclipse.core.runtime.IStatus; |
25 |
import org.eclipse.core.runtime.IStatus; |
|
Lines 67-73
Link Here
|
| 67 |
*/ |
68 |
*/ |
| 68 |
protected Set virtualClassClasspathElements = new LinkedHashSet(); |
69 |
protected Set virtualClassClasspathElements = new LinkedHashSet(); |
| 69 |
protected Set virtualJarClasspathElements = new LinkedHashSet(); |
70 |
protected Set virtualJarClasspathElements = new LinkedHashSet(); |
| 70 |
|
71 |
|
|
|
72 |
/** |
| 73 |
* Contains wb-resorces of components |
| 74 |
*/ |
| 75 |
protected Set virtualWebResourcesElements = new LinkedHashSet(); |
| 76 |
|
| 71 |
/** |
77 |
/** |
| 72 |
* Instantiate a new TomcatPublishModuleVisitor |
78 |
* Instantiate a new TomcatPublishModuleVisitor |
| 73 |
* |
79 |
* |
|
Lines 259-264
Link Here
|
| 259 |
loader.setVirtualClasspath(vcp); |
265 |
loader.setVirtualClasspath(vcp); |
| 260 |
context.getResources().setVirtualClasspath(vcp); |
266 |
context.getResources().setVirtualClasspath(vcp); |
| 261 |
} |
267 |
} |
|
|
268 |
|
| 269 |
StringBuffer buffer2 = new StringBuffer(); |
| 270 |
IResource[] underlyingRes = component.getRootFolder().getUnderlyingResources(); |
| 271 |
for (int i=1; i<underlyingRes.length; i++ ) { |
| 272 |
buffer2.append(underlyingRes[i].getLocation().toOSString()).append(";"); |
| 273 |
} |
| 274 |
loader.setWebResources(buffer2.toString()); |
| 275 |
context.getResources().setWebResources(buffer2.toString()); |
| 276 |
|
| 262 |
|
277 |
|
| 263 |
if (dirty) { |
278 |
if (dirty) { |
| 264 |
//TODO If writing to separate context XML files, save "dirty" status for later use |
279 |
//TODO If writing to separate context XML files, save "dirty" status for later use |