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 159476 Details for
Bug 235306
[API Request] add setContextRoot() to WebUtilities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
A public API to set the context root
bug235306.patch (text/plain), 1.40 KB, created by
Carl Anderson
on 2010-02-18 14:55:24 EST
(
hide
)
Description:
A public API to set the context root
Filename:
MIME Type:
Creator:
Carl Anderson
Created:
2010-02-18 14:55:24 EST
Size:
1.40 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.j2ee >Index: j2eecreation/org/eclipse/jst/j2ee/project/WebUtilities.java >=================================================================== >RCS file: /cvsroot/webtools/jeetools/plugins/org.eclipse.jst.j2ee/j2eecreation/org/eclipse/jst/j2ee/project/WebUtilities.java,v >retrieving revision 1.5 >diff -u -r1.5 WebUtilities.java >--- j2eecreation/org/eclipse/jst/j2ee/project/WebUtilities.java 26 Oct 2009 15:19:57 -0000 1.5 >+++ j2eecreation/org/eclipse/jst/j2ee/project/WebUtilities.java 18 Feb 2010 19:54:33 -0000 >@@ -25,6 +25,7 @@ > import org.eclipse.jst.javaee.web.WebApp; > import org.eclipse.jst.javaee.web.WebAppVersionType; > import org.eclipse.wst.common.componentcore.ComponentCore; >+import org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities; > import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; > import org.eclipse.wst.common.componentcore.resources.IVirtualReference; > >@@ -149,4 +150,15 @@ > } > return false; > } >+ >+ /** >+ * This method will set the context root on the associated workbench module with the given string >+ * value passed in. This context root is used by the server at runtime. >+ * >+ * @param contextRoot string >+ */ >+ public static void setServerContextRoot(IProject webProject, String contextRoot) >+ { >+ ComponentUtilities.setServerContextRoot(webProject, contextRoot); >+ } > }
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 235306
: 159476