geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r289931 - in /geronimo/devtools/trunk/modules/eclipse-plugin: etc/project.properties plugins/org.apache.geronimo.deployment.model/maven.xml plugins/org.apache.geronimo.deployment.model/project.xml
Date Sun, 18 Sep 2005 15:13:50 GMT
Author: sppatel
Date: Sun Sep 18 08:13:46 2005
New Revision: 289931

URL: http://svn.apache.org/viewcvs?rev=289931&view=rev
Log:
added import schema goal

Added:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/maven.xml
Modified:
    geronimo/devtools/trunk/modules/eclipse-plugin/etc/project.properties
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/project.xml

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/etc/project.properties
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/etc/project.properties?rev=289931&r1=289930&r2=289931&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/etc/project.properties (original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/etc/project.properties Sun Sep 18 08:13:46
2005
@@ -10,6 +10,7 @@
 mx4j_version=3.0.1
 commons_logging_version=1.0.4
 cglib_version=2.1_2
+openejb_version=2.0-SNAPSHOT
 
 maven.jar.org.eclipse.osgi = ${eclipse.home.plugins}/org.eclipse.osgi_3.1.0.jar
 maven.jar.org.eclipse.core.runtime = ${eclipse.home.plugins}/org.eclipse.core.runtime_3.1.0.jar

Added: 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=289931&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/maven.xml
(added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/maven.xml
Sun Sep 18 08:13:46 2005
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project default="default" xmlns:j="jelly:core" xmlns:ant="jelly:ant">
+
+  <goal name="default">
+    <attainGoal name="build"/>
+  </goal>
+  
+  <goal name="build">
+    <attainGoal name="jar:install"/>
+  </goal>
+  
+  <preGoal name="java:compile">
+    <attainGoal name="importschemas"/>
+  </preGoal>
+  
+  <goal name="rebuild">
+    <attainGoal name="clean"/>
+    <attainGoal name="build"/>
+  </goal>
+  
+  <preGoal name="clean:clean">
+    <ant:delete dir="${schema}/lib"/>
+  </preGoal>
+  
+  <goal name="importschemas">
+    <j:forEach var="artifact" items="${pom.artifacts}"> 
+      <j:if test="${!artifact.dependency.groupId.equals('eclipse')}">
+          <ant:unzip src="${artifact.path}" dest="${basedir}/temp">
+            <ant:patternset>
+             <ant:include name="META-INF/schema/*.xsd"/>
+           </ant:patternset>
+         </ant:unzip>  
+      </j:if>      
+    </j:forEach> 
+    
+    <ant:move todir="${basedir}/schema" flatten="true">
+      <ant:fileset dir="${basedir}/temp/">
+        <ant:include name="**/*.xsd"/>
+      </ant:fileset>
+    </ant:move>
+    
+    <ant:delete dir="${basedir}/temp"/>
+    
+    <!-- update include paths in all schemas -->
+    <ant:fileScanner var="schemaScanner">
+      <ant:fileset dir="${basedir}/schema">
+        <ant:include name="*.xsd"/>
+      </ant:fileset>
+    </ant:fileScanner>
+    <j:forEach var="schema" items="${schemaScanner.iterator()}">
+      <replaceregexp file="${schema}" match="schemaLocation=&quot;(.*/)(.*xsd)" replace="schemaLocation=&quot;\2"
byline="true"/>
+    </j:forEach>
+  </goal>
+</project>

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/project.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/project.xml?rev=289931&r1=289930&r2=289931&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/project.xml
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/project.xml
Sun Sep 18 08:13:46 2005
@@ -21,6 +21,42 @@
     </resources>
   </build>
   <dependencies>
+    <!--  geronimo dependencies needed for schemas during build -->
+    <dependency>
+      <groupId>openejb</groupId>
+      <artifactId>openejb-pkgen-builder</artifactId>
+      <version>${openejb_version}</version>      
+    </dependency>
+    <dependency>
+      <groupId>openejb</groupId>
+      <artifactId>openejb-builder</artifactId>
+      <version>${openejb_version}</version>
+    </dependency>  
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-security-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency>
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-naming-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency>
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-web-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency> 
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-j2ee-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency> 
+    <dependency>
+      <groupId>geronimo</groupId>
+      <artifactId>geronimo-service-builder</artifactId>
+      <version>${geronimo_runtime_version}</version>
+    </dependency>        
     <!--  eclipse dependencies -->
     <dependency>
       <groupId>eclipse</groupId>



Mime
View raw message