You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by sp...@apache.org on 2005/12/01 15:04:10 UTC
svn commit: r350251 -
/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/maven.xml
Author: sppatel
Date: Thu Dec 1 06:04:07 2005
New Revision: 350251
URL: http://svn.apache.org/viewcvs?rev=350251&view=rev
Log:
workaround for EMF 2.1 codegen defect
Modified:
geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/maven.xml
Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/maven.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/maven.xml?rev=350251&r1=350250&r2=350251&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/maven.xml (original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/maven.xml Thu Dec 1 06:04:07 2005
@@ -58,6 +58,22 @@
</ant:move>
<ant:delete dir="${maven.build.dir}/temp"/>
+
+ <!-- update include paths in all schemas -->
+ <ant:fileScanner var="schemaScanner">
+ <ant:fileset dir="${maven.build.dir}/schema">
+ <ant:include name="*.xsd"/>
+ </ant:fileset>
+ </ant:fileScanner>
+
+ <ant:taskdef name="replaceregexp"
+ classname="org.apache.tools.ant.taskdefs.optional.ReplaceRegExp"
+ classpathref="maven.dependency.classpath"/>
+ <ant:property name="ant.regexp.regexpimpl" value="org.apache.tools.ant.util.regexp.JakartaOroRegexp"/>
+
+ <j:forEach var="schema" items="${schemaScanner.iterator()}">
+ <ant:replaceregexp file="${schema}" match='schemaLocation="http://www.w3.org/2001/xml.xsd"' replace='schemaLocation="http://www.w3.org/2001/03/xml.xsd"' byline="true"/>
+ </j:forEach>
</goal>