Author: dennyxu
Date: 2010-01-28 02:44:11 -0500 (Thu, 28 Jan 2010)
New Revision: 19979
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet/JBossESBFacetInstallationDelegate.java
Log:
JBIDE-5444: ESB jboss-esb.xml schema location needs fixing
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet/JBossESBFacetInstallationDelegate.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet/JBossESBFacetInstallationDelegate.java 2010-01-28
07:27:26 UTC (rev 19978)
+++
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet/JBossESBFacetInstallationDelegate.java 2010-01-28
07:44:11 UTC (rev 19979)
@@ -104,10 +104,11 @@
String configVersion =
model.getStringProperty(IJBossESBFacetDataModelProperties.ESB_CONFIG_VERSION);
emptyESB.append("<?xml version = \"1.0\" encoding =
\"UTF-8\"?>");
emptyESB.append("\n");
- emptyESB.append("<jbossesb
xmlns=\"http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/et...
+ configVersion + ".xsd\"");
+ String namespace =
"http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-"
+ configVersion + ".xsd";
+ emptyESB.append("<jbossesb xmlns=\""+namespace+"\"");
emptyESB.append("\n");
String schemaLocation =
"http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-"
+ configVersion + ".xsd";
- emptyESB.append("
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\""+schemaLocation + " "
+schemaLocation+"\"");
+ emptyESB.append("
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\""+namespace + " "
+schemaLocation+"\"");
emptyESB.append("\n");
emptyESB.append(" parameterReloadSecs=\"5\">");
emptyESB.append("</jbossesb>");