[186429] JSP Validation is slow.
diff --git a/bundles/org.eclipse.jst.ws.axis2.core/META-INF/MANIFEST.MF b/bundles/org.eclipse.jst.ws.axis2.core/META-INF/MANIFEST.MF
index 4a15cf3..1438a3f 100644
--- a/bundles/org.eclipse.jst.ws.axis2.core/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.jst.ws.axis2.core/META-INF/MANIFEST.MF
@@ -26,7 +26,8 @@
org.eclipse.wst.common.frameworks,
org.eclipse.wst.common.frameworks.ui,
org.eclipse.wst.command.env.ui,
- org.eclipse.wst.server.core
+ org.eclipse.wst.server.core,
+ org.eclipse.wst.validation;bundle-version="[1.2.0,2.0.0)"
Eclipse-LazyStart: true
Export-Package: org.eclipse.jst.ws.axis2.core.constant,
org.eclipse.jst.ws.axis2.core.context,
diff --git a/bundles/org.eclipse.jst.ws.axis2.core/src/org/eclipse/jst/ws/axis2/facet/commands/Axis2WebservicesServerCommand.java b/bundles/org.eclipse.jst.ws.axis2.core/src/org/eclipse/jst/ws/axis2/facet/commands/Axis2WebservicesServerCommand.java
index ce072b1..a417e98 100644
--- a/bundles/org.eclipse.jst.ws.axis2.core/src/org/eclipse/jst/ws/axis2/facet/commands/Axis2WebservicesServerCommand.java
+++ b/bundles/org.eclipse.jst.ws.axis2.core/src/org/eclipse/jst/ws/axis2/facet/commands/Axis2WebservicesServerCommand.java
@@ -18,6 +18,7 @@
* 20070808 194906 sandakith@wso2.com - Lahiru Sandakith, Fixing 194906 Runtime lib issue
* 20070824 200515 sandakith@wso2.com - Lahiru Sandakith, NON-NLS move to seperate file
* 20071011 205972 sandakith@wso2.com - Lahiru Sandakith, Axis2 Libraries License files fix
+ * 20080528 186429 sandakith@wso2.com - Lahiru Sandakith, Axis2 webapp jsp's validation fix
*******************************************************************************/
package org.eclipse.jst.ws.axis2.facet.commands;
@@ -46,7 +47,9 @@
import org.eclipse.jst.ws.axis2.facet.utils.Axis2RuntimeUtils;
import org.eclipse.jst.ws.axis2.facet.utils.Axis2WebappUtils;
import org.eclipse.jst.ws.axis2.facet.utils.ContentCopyUtils;
+import org.eclipse.jst.ws.internal.common.J2EEUtils;
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
+import org.eclipse.wst.validation.ValidationFramework;
public class Axis2WebservicesServerCommand extends
AbstractDataModelOperation {
@@ -97,6 +100,14 @@
ignoreList.add(libPath.toOSString());
contentCopyUtils.updateCheckList(ignoreList);
+ //Related issue 186429, Solution is to disable the validation of the Axis2 JSP container location.
+ ValidationFramework validationFrameworkInstance = ValidationFramework.getDefault();
+ String[] node = {Axis2Constants.DIR_AXIS2_WEB};
+ IPath pathForAxis2JSPContainer = new Path(
+ FileUtils.addNodesToPath(J2EEUtils.getWebContentPath(project).toOSString(), node));
+ validationFrameworkInstance.disableValidation(
+ project.getWorkspace().getRoot().getFolder(pathForAxis2JSPContainer));
+
status = contentCopyUtils.copyDirectoryRecursivelyIntoWorkspace(
runtimeLocation,
FacetContainerUtils.pathToWebProjectContainer(project.toString()),