You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by dd...@apache.org on 2006/11/22 17:04:31 UTC

svn commit: r478202 - in /struts/sandbox/trunk/tiles: pom.xml tiles-api/pom.xml tiles-core/pom.xml

Author: ddewolf
Date: Wed Nov 22 08:04:30 2006
New Revision: 478202

URL: http://svn.apache.org/viewvc?view=rev&rev=478202
Log:
Adding retrotranslator configuration

Modified:
    struts/sandbox/trunk/tiles/pom.xml
    struts/sandbox/trunk/tiles/tiles-api/pom.xml
    struts/sandbox/trunk/tiles/tiles-core/pom.xml

Modified: struts/sandbox/trunk/tiles/pom.xml
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/pom.xml?view=diff&rev=478202&r1=478201&r2=478202
==============================================================================
--- struts/sandbox/trunk/tiles/pom.xml (original)
+++ struts/sandbox/trunk/tiles/pom.xml Wed Nov 22 08:04:30 2006
@@ -27,11 +27,11 @@
          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>
-      <groupId>org.apache.struts</groupId>
-      <artifactId>struts-master</artifactId>
-      <version>4-SNAPSHOT</version>
-   </parent>
+    <parent>
+        <groupId>org.apache.struts</groupId>
+        <artifactId>struts-master</artifactId>
+        <version>4-SNAPSHOT</version>
+    </parent>
 
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.apache.struts.tiles</groupId>
@@ -45,9 +45,9 @@
     <inceptionYear>2000</inceptionYear>
 
     <scm>
-       <connection>scm:svn:http://svn.apache.org/repos/asf/struts/sandbox/trunk/tiles</connection>
-       <developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/sandbox/trunk/tiles</developerConnection>
-       <url>http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/struts/sandbox/trunk/tiles</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/sandbox/trunk/tiles</developerConnection>
+        <url>http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles</url>
     </scm>
 
     <issueManagement>
@@ -83,6 +83,7 @@
         <url>http://www.apache.org</url>
     </organization>
 
+
     <build>
         <pluginManagement>
             <plugins>
@@ -94,11 +95,31 @@
                         <target>1.5</target>
                     </configuration>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>retrotranslator-maven-plugin</artifactId>
+                    <version>1.0-SNAPSHOT</version>
+                    <executions>
+                        <execution>
+                            <phase>process-classes</phase>
+                            <goals>
+                                <goal>translate</goal>
+                            </goals>
+                            <configuration>
+                                <includes>
+                                    <include>
+                                        <directory>${pom.basedir}/target/classes</directory>
+                                    </include>
+                                </includes>
+                            </configuration>
+                        </execution>
+                    </executions>
+                </plugin>
             </plugins>
         </pluginManagement>
-        
+
         <defaultGoal>install</defaultGoal>
-        
     </build>
 
     <reporting>
@@ -106,7 +127,7 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-project-info-reports-plugin</artifactId>
-             </plugin>
+            </plugin>
             <plugin>
                 <artifactId>maven-javadoc-plugin</artifactId>
                 <configuration>
@@ -126,7 +147,8 @@
             <plugin>
                 <artifactId>maven-checkstyle-plugin</artifactId>
                 <configuration>
-                  <configLocation>http://svn.apache.org/repos/asf/struts/maven/trunk/build/struts_checks.xml</configLocation>
+                    <configLocation>http://svn.apache.org/repos/asf/struts/maven/trunk/build/struts_checks.xml
+                    </configLocation>
                 </configuration>
             </plugin>
             <plugin>
@@ -173,11 +195,15 @@
         </repository>
     </repositories>
     <pluginRepositories>
-    <pluginRepository>
-        <id>apache.snapshots</id>
-        <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
-        <snapshots><enabled>true</enabled></snapshots>
-        <releases><enabled>false</enabled></releases>
-    </pluginRepository>
-    </pluginRepositories> 
+        <pluginRepository>
+            <id>apache.snapshots</id>
+            <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </pluginRepository>
+    </pluginRepositories>
 </project>

Modified: struts/sandbox/trunk/tiles/tiles-api/pom.xml
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-api/pom.xml?view=diff&rev=478202&r1=478201&r2=478202
==============================================================================
--- struts/sandbox/trunk/tiles/tiles-api/pom.xml (original)
+++ struts/sandbox/trunk/tiles/tiles-api/pom.xml Wed Nov 22 08:04:30 2006
@@ -76,6 +76,71 @@
 
    </build>
 
+        <profiles>
+        <profile>
+	    	<!--
+	    		Run the translator for Java 1.4 compatiblity
+
+	    		Sample:
+	    		$ cd tiles-core/
+	    		$ mvn clean install -Papps,j4 -Djava14.jar=$JAVA_HOME/../Classes/classes.jar
+
+	    	 -->
+	      <id>j4</id>
+	      <build>
+	        <plugins>
+	          <plugin>
+	            <groupId>org.codehaus.mojo</groupId>
+	            <artifactId>retrotranslator-maven-plugin</artifactId>
+	            <executions>
+	              <execution>
+	                <id>retrotranslate</id>
+	              </execution>
+	            </executions>
+	          </plugin>
+	          <plugin>
+	            <artifactId>maven-jar-plugin</artifactId>
+	            <executions>
+	              <execution>
+	                <id>create-j4-jar</id>
+	                <goals><goal>jar</goal></goals>
+	                <configuration>
+	                  <classesDirectory>${project.build.directory}/classes-retro</classesDirectory>
+	                  <classifier>j4</classifier>
+	                  <archive>
+	                    <manifestEntries>
+	                      <Extension-Name>${project.artifactId}-j4</Extension-Name>
+	                      <Specification-Vendor>${project.organization.name}</Specification-Vendor>
+	                      <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
+	                      <Implementation-Title>${project.description}</Implementation-Title>
+	                      <Implementation-Version>${project.version}</Implementation-Version>
+	                      <Revision>${scm.revision}</Revision>
+	                    </manifestEntries>
+	                   </archive>
+	                </configuration>
+	              </execution>
+	            </executions>
+	          </plugin>
+	        </plugins>
+	      </build>
+	       <dependencies>
+	        <dependency>
+	          <groupId>sun.jdk</groupId>
+	          <artifactId>rt</artifactId>
+	          <version>1.4.0</version>
+	          <scope>system</scope>
+	          <!-- path to rt.jar (on OSX, it's classes.jar) -->
+	          <systemPath>${java14.jar}</systemPath>
+	        </dependency>
+	        <dependency>
+	          <groupId>net.sf.retrotranslator</groupId>
+	          <artifactId>retrotranslator-runtime</artifactId>
+	          <version>1.0.8</version>
+	        </dependency>
+	      </dependencies>
+	    </profile>
+    </profiles>
+
     <dependencies>
 
       <dependency>

Modified: struts/sandbox/trunk/tiles/tiles-core/pom.xml
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-core/pom.xml?view=diff&rev=478202&r1=478201&r2=478202
==============================================================================
--- struts/sandbox/trunk/tiles/tiles-core/pom.xml (original)
+++ struts/sandbox/trunk/tiles/tiles-core/pom.xml Wed Nov 22 08:04:30 2006
@@ -81,6 +81,71 @@
 
     </build>
 
+        <profiles>
+        <profile>
+	    	<!--
+	    		Run the translator for Java 1.4 compatiblity
+
+	    		Sample:
+	    		$ cd struts/struts2/
+	    		$ mvn clean install -Papps,j4 -Djava14.jar=$JAVA_HOME/../Classes/classes.jar
+
+	    	 -->
+	      <id>j4</id>
+	      <build>
+	        <plugins>
+	          <plugin>
+	            <groupId>org.codehaus.mojo</groupId>
+	            <artifactId>retrotranslator-maven-plugin</artifactId>
+	            <executions>
+	              <execution>
+	                <id>retrotranslate</id>
+	              </execution>
+	            </executions>
+	          </plugin>
+	          <plugin>
+	            <artifactId>maven-jar-plugin</artifactId>
+	            <executions>
+	              <execution>
+	                <id>create-j4-jar</id>
+	                <goals><goal>jar</goal></goals>
+	                <configuration>
+	                  <classesDirectory>${project.build.directory}/classes-retro</classesDirectory>
+	                  <classifier>j4</classifier>
+	                  <archive>
+	                    <manifestEntries>
+	                      <Extension-Name>${project.artifactId}-j4</Extension-Name>
+	                      <Specification-Vendor>${project.organization.name}</Specification-Vendor>
+	                      <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
+	                      <Implementation-Title>${project.description}</Implementation-Title>
+	                      <Implementation-Version>${project.version}</Implementation-Version>
+	                      <Revision>${scm.revision}</Revision>
+	                    </manifestEntries>
+	                   </archive>
+	                </configuration>
+	              </execution>
+	            </executions>
+	          </plugin>
+	        </plugins>
+	      </build>
+	       <dependencies>
+	        <dependency>
+	          <groupId>sun.jdk</groupId>
+	          <artifactId>rt</artifactId>
+	          <version>1.4.0</version>
+	          <scope>system</scope>
+	          <!-- path to rt.jar (on OSX, it's classes.jar) -->
+	          <systemPath>${java14.jar}</systemPath>
+	        </dependency>
+	        <dependency>
+	          <groupId>net.sf.retrotranslator</groupId>
+	          <artifactId>retrotranslator-runtime</artifactId>
+	          <version>1.0.8</version>
+	        </dependency>
+	      </dependencies>
+	    </profile>
+    </profiles>
+
     <reporting>
         <plugins>
             <plugin>