### 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); + } }