myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manol...@apache.org
Subject svn commit: r381119 - in /myfaces/shared/trunk: pom.xml shared-impl/ shared-impl/pom.xml
Date Sun, 26 Feb 2006 16:38:15 GMT
Author: manolito
Date: Sun Feb 26 08:38:13 2006
New Revision: 381119

URL: http://svn.apache.org/viewcvs?rev=381119&view=rev
Log:
introduced myfaces-shared-impl module

Added:
    myfaces/shared/trunk/shared-impl/
    myfaces/shared/trunk/shared-impl/pom.xml
Modified:
    myfaces/shared/trunk/pom.xml

Modified: myfaces/shared/trunk/pom.xml
URL: http://svn.apache.org/viewcvs/myfaces/shared/trunk/pom.xml?rev=381119&r1=381118&r2=381119&view=diff
==============================================================================
--- myfaces/shared/trunk/pom.xml (original)
+++ myfaces/shared/trunk/pom.xml Sun Feb 26 08:38:13 2006
@@ -1,14 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <artifactId>myfaces-master</artifactId>
-    <groupId>org.apache.myfaces.maven</groupId>
-    <version>1.0.1-SNAPSHOT</version>
-  </parent>
   <modelVersion>4.0.0</modelVersion>
+
   <groupId>org.apache.myfaces.shared</groupId>
   <artifactId>myfaces-shared</artifactId>
   <name>MyFaces Shared</name>
   <version>2.0.0-SNAPSHOT</version>
+  <packaging>pom</packaging>
   <description>The MyFaces Shared Subproject provides base classes for usage in both
the
     MyFaces Implementation and the MyFaces Tomahawk components.
     Note: When bound to myfaces-impl or myfaces-tomahawk the shared classes
@@ -16,6 +13,17 @@
     myfaces-impl: org.apache.myfaces.impl.shared.* instead of org.apache.myfaces.shared.*
     myfaces-tomahawk: org.apache.myfaces.tomahawk.shared.* instead of org.apache.myfaces.shared.*
     </description>
+
+  <parent>
+    <artifactId>myfaces-master</artifactId>
+    <groupId>org.apache.myfaces.maven</groupId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modules>
+    <module>shared-impl</module>
+  </modules>
+   
   <url>http://myfaces.apache.org</url>
   <scm>
     <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/shared/trunk</connection>
@@ -90,7 +98,7 @@
     <dependency>
       <groupId>myfaces</groupId>
       <artifactId>myfaces-api</artifactId>
-      <version>1.1.1</version>
+      <version>1.1.2-SNAPSHOT</version>
       <scope>provided</scope>
     </dependency>
     

Added: myfaces/shared/trunk/shared-impl/pom.xml
URL: http://svn.apache.org/viewcvs/myfaces/shared/trunk/shared-impl/pom.xml?rev=381119&view=auto
==============================================================================
--- myfaces/shared/trunk/shared-impl/pom.xml (added)
+++ myfaces/shared/trunk/shared-impl/pom.xml Sun Feb 26 08:38:13 2006
@@ -0,0 +1,176 @@
+<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.myfaces.shared</groupId>
+  <artifactId>myfaces-shared-impl</artifactId>
+  <name>MyFaces Shared Impl</name>
+  <packaging>jar</packaging>
+  <description>The MyFaces Shared Impl Subproject provides the auto-refactored
+    shared classes for usage in the MyFaces Implementation.
+    See description for MyFaces Shared Subproject for more info.
+  </description>
+
+  <parent>
+    <groupId>org.apache.myfaces.shared</groupId>
+    <artifactId>myfaces-shared</artifactId>
+    <version>2.0.0-SNAPSHOT</version>
+  </parent>
+
+  <url>http://myfaces.apache.org</url>
+  <build>
+  
+    <resources>
+      <!-- antrun plugin does not support adding a resourceRoot,
+           therefore we must customize resources dir here -->
+      <resource>
+        <directory>target/gen-src/main/resources</directory>
+      </resource>
+    </resources>
+ 
+    <testResources>
+      <!-- antrun plugin does not support adding a testResourceRoot,
+           therefore we must customize testResources dir here -->
+      <testResource>
+        <directory>target/gen-src/test/resources</directory>
+      </testResource>
+    </testResources>
+
+    <plugins>
+
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+
+          <execution>
+            <id>refactor-java-sources</id>
+            <phase>generate-sources</phase>
+            <configuration>
+              <tasks>
+                <!-- 1. Copy files from original sources -->
+                <copy todir="${project.build.directory}/gen-src/main/java">
+                  <fileset dir="../src/main/java"/>
+                </copy>
+                <copy todir="${project.build.directory}/gen-src/test/java">
+                  <fileset dir="../src/test/java"/>
+                </copy>
+                <!-- 2. Rename package dir "shared" to "shared_impl" -->
+                <move todir="${project.build.directory}/gen-src/main/java/org/apache/myfaces/shared_impl">
+                  <fileset dir="${project.build.directory}/gen-src/main/java/org/apache/myfaces/shared"/>

+                </move>
+                <move todir="${project.build.directory}/gen-src/test/java/org/apache/myfaces/shared_impl">
+                  <fileset dir="${project.build.directory}/gen-src/test/java/org/apache/myfaces/shared"/>

+                </move>
+                <!-- 3. Rename occurrences of package "shared" by "shared_impl" -->
+                <replace dir="${project.build.directory}/gen-src">
+                  <include name="main/java/**/*.java"/>
+                  <include name="test/java/**/*.java"/>
+                  <replacetoken>org.apache.myfaces.shared.</replacetoken>
+                  <replacevalue>org.apache.myfaces.shared_impl.</replacevalue>
+                </replace>
+              </tasks>
+              <sourceRoot>${project.build.directory}/gen-src/main/java</sourceRoot>
+              <testSourceRoot>${project.build.directory}/gen-src/test/java</testSourceRoot>
+            </configuration>
+            <goals><goal>run</goal></goals>
+          </execution>
+
+          <execution>
+            <id>refactor-resources</id>
+            <phase>generate-resources</phase>
+            <configuration>
+              <tasks>
+                <!-- 1. Copy java files and resources from original shared sources -->
+                <copy todir="${project.build.directory}/gen-src/main/resources">
+                  <fileset dir="../src/main/resources"/>
+                </copy>
+                <copy todir="${project.build.directory}/gen-src/test/resources">
+                  <fileset dir="../src/test/resources"/>
+                </copy>
+                <!-- 2. Rename package dir "shared" to "shared_impl" -->
+                <move todir="${project.build.directory}/gen-src/main/resources/org/apache/myfaces/shared_impl">
+                  <fileset dir="${project.build.directory}/gen-src/main/resources/org/apache/myfaces/shared"/>

+                </move>
+                <move todir="${project.build.directory}/gen-src/test/resources/org/apache/myfaces/shared_impl"
failonerror="false">
+                  <fileset dir="${project.build.directory}/gen-src/test/resources/org/apache/myfaces/shared"/>

+                </move>
+                <!-- 3. Rename occurrences of package "shared" by "shared_impl" -->
+                <replace dir="${project.build.directory}/gen-src">
+                  <include name="main/resources/**/*.properties"/>
+                  <include name="main/resources/**/*.xml"/>
+                  <include name="test/resources/**/*.properties"/>
+                  <include name="test/resources/**/*.xml"/>
+                  <replacetoken>org.apache.myfaces.shared.</replacetoken>
+                  <replacevalue>org.apache.myfaces.shared_impl.</replacevalue>
+                </replace>
+              </tasks>
+              <!-- does not seem to be supported yet: -->
+              <resourceRoot>${project.build.directory}/gen-src/main/resources</resourceRoot>
+              <testResourceRoot>${project.build.directory}/gen-src/test/resources</testResourceRoot>
+            </configuration>
+            <goals><goal>run</goal></goals>
+          </execution>
+
+        </executions>
+      </plugin>
+
+       <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-source-plugin</artifactId>
+          <executions>
+            <execution>
+              <!-- create a sources jar for easier debugging of impl -->
+              <id>create-source-jar</id>
+              <goals><goal>jar</goal></goals>
+            </execution>
+          </executions>
+       </plugin>
+
+    </plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+      <groupId>myfaces</groupId>
+      <artifactId>myfaces-api</artifactId>
+      <version>1.1.1</version>
+      <scope>provided</scope>
+    </dependency>
+   
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>2.3</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>2.0</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>commons-el</groupId>
+      <artifactId>commons-el</artifactId>
+      <version>1.0</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>commons-codec</groupId>
+      <artifactId>commons-codec</artifactId>
+      <version>1.3</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>portlet-api</groupId>
+      <artifactId>portlet-api</artifactId>
+      <version>1.0</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+      <version>1.0.4</version>
+      <scope>compile</scope>
+    </dependency>
+  </dependencies>
+</project>



Mime
View raw message