Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 117635 Details for
Bug 254992
EARVirtualComponent is storing for archive root always "/"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
initial patch
254992_initial_patch_proposal.txt (text/plain), 1.68 KB, created by
Dimitar Giormov
on 2008-11-12 03:06:16 EST
(
hide
)
Description:
initial patch
Filename:
MIME Type:
Creator:
Dimitar Giormov
Created:
2008-11-12 03:06:16 EST
Size:
1.68 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.j2ee >Index: earproject/org/eclipse/jst/j2ee/componentcore/util/EARVirtualComponent.java >=================================================================== >RCS file: /cvsroot/webtools/jeetools/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/componentcore/util/EARVirtualComponent.java,v >retrieving revision 1.12 >diff -u -r1.12 EARVirtualComponent.java >--- earproject/org/eclipse/jst/j2ee/componentcore/util/EARVirtualComponent.java 11 Oct 2007 20:49:20 -0000 1.12 >+++ earproject/org/eclipse/jst/j2ee/componentcore/util/EARVirtualComponent.java 12 Nov 2008 08:04:33 -0000 >@@ -152,7 +152,7 @@ > for (int i = 0; i < members.length; i++) { > if (IVirtualResource.FILE == members[i].getType()) { > if(folder.isDynamicComponent((IVirtualFile)members[i])){ >- String archiveName = members[i].getRuntimePath().toString().substring(1); >+ String archiveName = members[i].getRuntimePath().lastSegment(); > boolean shouldInclude = true; > for (int j = 0; j < hardReferences.size() && shouldInclude; j++) { > String tempArchiveName = ((IVirtualReference) hardReferences.get(j)).getArchiveName(); >@@ -165,6 +165,7 @@ > IVirtualComponent dynamicComponent = ComponentCore.createArchiveComponent(earComponent.getProject(), VirtualArchiveComponent.LIBARCHIVETYPE + iResource.getFullPath().toString()); > IVirtualReference dynamicRef = ComponentCore.createReference(earComponent, dynamicComponent); > dynamicRef.setArchiveName(archiveName); >+ dynamicRef.setRuntimePath(members[i].getRuntimePath().removeLastSegments(1)); > if (null == dynamicReferences) { > dynamicReferences = new ArrayList(); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 254992
: 117635