myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manol...@apache.org
Subject svn commit: r381725 - in /myfaces/core/branches/1_1_2/impl: build.xml pom.xml
Date Tue, 28 Feb 2006 18:17:50 GMT
Author: manolito
Date: Tue Feb 28 10:17:48 2006
New Revision: 381725

URL: http://svn.apache.org/viewcvs?rev=381725&view=rev
Log:
shared refactoring is done in impl now

Added:
    myfaces/core/branches/1_1_2/impl/build.xml   (with props)
Modified:
    myfaces/core/branches/1_1_2/impl/pom.xml

Added: myfaces/core/branches/1_1_2/impl/build.xml
URL: http://svn.apache.org/viewcvs/myfaces/core/branches/1_1_2/impl/build.xml?rev=381725&view=auto
==============================================================================
--- myfaces/core/branches/1_1_2/impl/build.xml (added)
+++ myfaces/core/branches/1_1_2/impl/build.xml Tue Feb 28 10:17:48 2006
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>
+<project name="myfaces_shared_tasks">
+
+  <target name="refactor-java-sources">
+      <!-- 1. Move and rename package dir "shared" to new name -->
+      <move todir="${refactor.output.dir}/org/apache/myfaces/${refactor.package.new}">
+        <fileset dir="${refactor.src.dir}/org/apache/myfaces/shared"> 
+          <include name="**/*.java"/>
+        </fileset>
+      </move>
+      <!-- 2. Rename occurrences of package "shared" by new name -->
+      <replace dir="${refactor.output.dir}"
+            token="org.apache.myfaces.shared."
+            value="org.apache.myfaces.${refactor.package.new}.">
+        <include name="**/*.java"/>
+      </replace>
+  </target>       
+
+  <target name="refactor-resources">
+      <!-- 1. Move and rename package dir "shared" to new name -->
+      <move todir="${refactor.output.dir}/org/apache/myfaces/${refactor.package.new}">
+        <fileset dir="${refactor.src.dir}/org/apache/myfaces/shared"> 
+          <include name="**/*.properties"/>
+          <include name="**/*.xml"/>
+        </fileset>
+      </move>
+      <!-- 2. Rename occurrences of package "shared" new name -->
+      <replace dir="${refactor.output.dir}"
+            token="org.apache.myfaces.shared."
+            value="org.apache.myfaces.${refactor.package.new}.">
+        <include name="**/*.properties"/>
+        <include name="**/*.xml"/>
+      </replace>
+  </target>       
+
+</project>

Propchange: myfaces/core/branches/1_1_2/impl/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/core/branches/1_1_2/impl/build.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: myfaces/core/branches/1_1_2/impl/pom.xml
URL: http://svn.apache.org/viewcvs/myfaces/core/branches/1_1_2/impl/pom.xml?rev=381725&r1=381724&r2=381725&view=diff
==============================================================================
--- myfaces/core/branches/1_1_2/impl/pom.xml (original)
+++ myfaces/core/branches/1_1_2/impl/pom.xml Tue Feb 28 10:17:48 2006
@@ -32,13 +32,14 @@
       <scope>compile</scope>
     </dependency>
 
+    <!--
     <dependency>
       <groupId>org.apache.myfaces.shared</groupId>
       <artifactId>myfaces-shared-impl</artifactId>
       <version>2.0.0-SNAPSHOT</version>
-      <!-- myfaces-shared-impl must not be included in assembly ! -->
       <scope>provided</scope>
     </dependency>
+    -->
     
     <dependency>
       <groupId>commons-codec</groupId>
@@ -121,6 +122,10 @@
       <resource>
         <directory>src/main/resources-facesconfig</directory>
       </resource>
+      <resource>
+        <!-- because adding an additional resourceRoot not possible with antrun yet -->
+        <directory>target/refactored-shared-sources/main/resources</directory>
+      </resource>
     </resources>
 
     <plugins>
@@ -148,22 +153,61 @@
         <artifactId>dependency-maven-plugin</artifactId>
         <executions>
           <execution>
-            <id>unpack-shared-impl-classes</id>
-            <phase>process-classes</phase>
-            <goals>
-              <goal>unpack</goal>
-            </goals>
+            <id>unpack-sources</id>
+            <phase>generate-sources</phase>
+            <goals><goal>unpack</goal></goals>
             <configuration>
               <artifactItems>
                 <artifactItem>
                    <groupId>org.apache.myfaces.shared</groupId>
-                   <artifactId>myfaces-shared-impl</artifactId>
+                   <artifactId>myfaces-shared</artifactId>
                    <version>2.0.0-SNAPSHOT</version>
                    <type>jar</type>
+                   <classifier>sources</classifier>
                  </artifactItem>
                </artifactItems>
-               <outputDirectory>${project.build.directory}/classes</outputDirectory>
+               <outputDirectory>${project.build.directory}/unpacked-shared-sources</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>refactor-shared-sources</id>
+            <phase>process-sources</phase>
+            <configuration>
+              <tasks>
+                  <property name="refactor.src.dir" value="${project.build.directory}/unpacked-shared-sources"/>
+                  <property name="refactor.output.dir" value="${project.build.directory}/refactored-shared-sources/main/java"/>
+                  <property name="refactor.package.new" value="shared_impl"/>
+                  <ant dir="${project.basedir}" antfile="build.xml"
+                        inheritRefs="true" inheritAll="true">
+                    <target name="refactor-java-sources"/>
+                  </ant>
+              </tasks>
+              <sourceRoot>${project.build.directory}/refactored-shared-sources/main/java</sourceRoot>
+            </configuration>
+            <goals><goal>run</goal></goals>
+          </execution>
+          <execution>
+            <id>refactor-resources</id>
+            <phase>generate-resources</phase>
+            <configuration>
+              <tasks>
+                  <property name="refactor.src.dir" value="${project.build.directory}/unpacked-shared-sources"/>
+                  <property name="refactor.output.dir" value="${project.build.directory}/refactored-shared-sources/main/resources"/>
+                  <property name="refactor.package.new" value="shared_impl"/>
+                  <ant dir="${project.basedir}" antfile="build.xml"
+                        inheritRefs="true" inheritAll="true">
+                    <target name="refactor-resources"/>
+                  </ant>
+              </tasks>
+              <resourceRoot>${project.build.directory}/refactored-shared-sources/main/resources</resourceRoot>
<!-- not yet supported -->
             </configuration>
+            <goals><goal>run</goal></goals>
           </execution>
         </executions>
       </plugin>



Mime
View raw message