You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by vs...@apache.org on 2009/04/15 14:06:01 UTC

svn commit: r765148 - in /incubator/shindig/branches/1.0.x-incubating/assembly: pom.xml src/main/assembly/php.xml

Author: vsiveton
Date: Wed Apr 15 12:06:00 2009
New Revision: 765148

URL: http://svn.apache.org/viewvc?rev=765148&view=rev
Log:
o align the php assembly to make-release.sh

Modified:
    incubator/shindig/branches/1.0.x-incubating/assembly/pom.xml
    incubator/shindig/branches/1.0.x-incubating/assembly/src/main/assembly/php.xml

Modified: incubator/shindig/branches/1.0.x-incubating/assembly/pom.xml
URL: http://svn.apache.org/viewvc/incubator/shindig/branches/1.0.x-incubating/assembly/pom.xml?rev=765148&r1=765147&r2=765148&view=diff
==============================================================================
--- incubator/shindig/branches/1.0.x-incubating/assembly/pom.xml (original)
+++ incubator/shindig/branches/1.0.x-incubating/assembly/pom.xml Wed Apr 15 12:06:00 2009
@@ -80,6 +80,35 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>align-php-structure</id>
+            <phase>validate</phase>
+            <configuration>
+              <tasks>
+
+                <!-- Rewrite default configuration to release structure -->
+                <mkdir dir="${project.build.directory}/php/config"/>
+                <copy todir="${project.build.directory}/php/config">
+                  <fileset dir="../php/config"/>
+                </copy>
+
+                <replace file="${project.build.directory}/php/config/container.php">
+                  <replacetoken><![CDATA[/../../]]></replacetoken>
+                  <replacevalue><![CDATA[/../]]></replacevalue>
+                </replace>
+
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
   <dependencies>

Modified: incubator/shindig/branches/1.0.x-incubating/assembly/src/main/assembly/php.xml
URL: http://svn.apache.org/viewvc/incubator/shindig/branches/1.0.x-incubating/assembly/src/main/assembly/php.xml?rev=765148&r1=765147&r2=765148&view=diff
==============================================================================
--- incubator/shindig/branches/1.0.x-incubating/assembly/src/main/assembly/php.xml (original)
+++ incubator/shindig/branches/1.0.x-incubating/assembly/src/main/assembly/php.xml Wed Apr 15 12:06:00 2009
@@ -29,31 +29,75 @@
       <outputDirectory>shindig-php</outputDirectory>
       <directory>../</directory>
       <includes>
-        <include>php/**</include>
         <include>features/**</include>
         <include>javascript/**</include>
         <include>config/**</include>
         <include>COMMITTERS</include>
         <include>COPYING</include>
+        <include>DISCLAIMER</include>
         <include>LICENSE</include>
         <include>NOTICE</include>
-        <include>README</include>
       </includes>
       <excludes>
         <exclude>site/**</exclude>
         <exclude>resources/**</exclude>
         <exclude>etc/**</exclude>
-        <exclude>pom.xml</exclude>
         <exclude>assembly/**</exclude>
         <exclude>java/**</exclude>
+        <!-- scm -->
         <exclude>**/.git/**</exclude>
         <exclude>**/.svn/**</exclude>
+        <!-- eclipse -->
         <exclude>**/.project/**</exclude>
         <exclude>**/.classpath/**</exclude>
         <exclude>**/.settings/**</exclude>
+        <exclude>**/.externalToolBuilders/**</exclude>
+        <exclude>**/maven-eclipse.xml</exclude>
+        <!-- maven -->
+        <exclude>**/pom.xml</exclude>
         <exclude>**/target/**</exclude>
+        <!-- misc -->
         <exclude>*.patch</exclude>
         <exclude>*.diff</exclude>
+        <exclude>README</exclude>
+      </excludes>
+    </fileSet>
+    <fileSet>
+      <outputDirectory>shindig-php</outputDirectory>
+      <directory>../php</directory>
+      <excludes>
+        <exclude>config/**</exclude>
+        <!-- scm -->
+        <exclude>**/.git/**</exclude>
+        <exclude>**/.svn/**</exclude>
+        <!-- eclipse -->
+        <exclude>**/.project/**</exclude>
+        <exclude>**/.classpath/**</exclude>
+        <exclude>**/.settings/**</exclude>
+        <exclude>**/.externalToolBuilders/**</exclude>
+        <exclude>**/maven-eclipse.xml</exclude>
+        <!-- maven -->
+        <exclude>**/pom.xml</exclude>
+        <exclude>**/target/**</exclude>
+        <!-- misc -->
+        <exclude>*.patch</exclude>
+        <exclude>*.diff</exclude>
+        <exclude>*.zip</exclude>
+        <exclude>*.tar.gz</exclude>
+        <exclude>*.tar.bz2</exclude>
+        <exclude>*.sh</exclude>
+        <exclude>*.bat</exclude>
+      </excludes>
+    </fileSet>
+    <!-- Using the temp container.php created by Maven using Antrun plugin to rewrite
+      default configuration to release structure -->
+    <fileSet>
+      <outputDirectory>shindig-php/config</outputDirectory>
+      <directory>target/php/config</directory>
+      <excludes>
+        <!-- scm -->
+        <exclude>**/.git/**</exclude>
+        <exclude>**/.svn/**</exclude>
       </excludes>
     </fileSet>
   </fileSets>