[Bug 228452] API broken in UpdateClasspathAttributeUtil
diff --git a/plugins/org.eclipse.jst.j2ee/classpathdep/org/eclipse/jst/j2ee/classpathdep/UpdateClasspathAttributeUtil.java b/plugins/org.eclipse.jst.j2ee/classpathdep/org/eclipse/jst/j2ee/classpathdep/UpdateClasspathAttributeUtil.java index 3b7a4a6..2cfc894 100644 --- a/plugins/org.eclipse.jst.j2ee/classpathdep/org/eclipse/jst/j2ee/classpathdep/UpdateClasspathAttributeUtil.java +++ b/plugins/org.eclipse.jst.j2ee/classpathdep/org/eclipse/jst/j2ee/classpathdep/UpdateClasspathAttributeUtil.java
@@ -29,6 +29,7 @@ /** * Contains utility code for executing the UpdateClasspathAttributeOperation. + * @since 3.0 */ public class UpdateClasspathAttributeUtil implements IClasspathDependencyConstants { @@ -56,6 +57,17 @@ } /** + * Creates an IClasspathAttribute with the special WTP "org.eclipse.jst.component.dependency" name whose runtime path + * (represented by the value) is set to the default for either a web project (/WEB-INF/lib) or non-web project (../). + * @param isWebApp True if this attribute is being created for a classpath entry on a dynamic web project. + * @return The created IClasspathAttribute. + * @throws CoreException Thrown if a problem is encountered. + */ + public static IClasspathAttribute createDependencyAttribute(final boolean isWebApp) throws CoreException { + return createDependencyAttribute(ClasspathDependencyUtil.getDefaultRuntimePath(isWebApp)); + } + + /** * Creates an IClasspathAttribute with the special WTP "org.eclipse.jst.component.dependency" name with the * specified runtime path (will be used to set the attribute value). * @param runtimePath The runtime path in the deployed/exported module where resolved classpath components should