struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmitch...@apache.org
Subject svn commit: r477497 - in /struts/struts2/trunk: core/pom.xml plugins/jfreechart/pom.xml
Date Tue, 21 Nov 2006 04:02:43 GMT
Author: jmitchell
Date: Mon Nov 20 20:02:42 2006
New Revision: 477497

URL: http://svn.apache.org/viewvc?view=rev&rev=477497
Log:
WW-1483
 Adding Retrotranslator configuration for these projects.


Modified:
    struts/struts2/trunk/core/pom.xml
    struts/struts2/trunk/plugins/jfreechart/pom.xml

Modified: struts/struts2/trunk/core/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/pom.xml?view=diff&rev=477497&r1=477496&r2=477497
==============================================================================
--- struts/struts2/trunk/core/pom.xml (original)
+++ struts/struts2/trunk/core/pom.xml Mon Nov 20 20:02:42 2006
@@ -39,6 +39,72 @@
             </plugin>
         </plugins>
     </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>
  
     
     <dependencies>

Modified: struts/struts2/trunk/plugins/jfreechart/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/jfreechart/pom.xml?view=diff&rev=477497&r1=477496&r2=477497
==============================================================================
--- struts/struts2/trunk/plugins/jfreechart/pom.xml (original)
+++ struts/struts2/trunk/plugins/jfreechart/pom.xml Mon Nov 20 20:02:42 2006
@@ -17,6 +17,72 @@
        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jfreechart/</developerConnection>
        <url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/jfreechart/</url>
     </scm>
+    
+    <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>
 
     <dependencies>
         <dependency>



Mime
View raw message