You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ni...@apache.org on 2006/02/14 02:17:30 UTC
svn commit: r377559 - in /jakarta/commons: sandbox/compress/trunk/
sandbox/csv/trunk/ sandbox/i18n/trunk/ sandbox/id/trunk/
sandbox/javaflow/trunk/ sandbox/pipeline/trunk/ sandbox/proxy/trunk/
sandbox/scxml/trunk/ trunks-sandbox/
Author: niallp
Date: Mon Feb 13 17:17:27 2006
New Revision: 377559
URL: http://svn.apache.org/viewcvs?rev=377559&view=rev
Log:
Modify maven build to add two non-standard attributes to the jar's manifest file to indicate the values of "maven.compile.source" and "maven.compile.target". Also modify the build to include an "Implementation-Vendor-Id" of "org.apache" in the jar's manifest.
The two non-standard entires created in the manifest file will look something like the following:
X-Compile-Source-JDK: 1.3
X-Compile-Target-JDK: 1.3
This change serves two purposes:
1) To provide comfort to users regarding JVM compatibility.
2) Enable releases to be checked more easily for JVM compatibility.
The manifest specification indicates that "unknown" entries in the manifest file are ignored. These entries have been prefixed with "X-" which is a sometimes used "convention" for indicating non-standard entries.
See thread: http://tinyurl.com/839zh
Modified:
jakarta/commons/sandbox/compress/trunk/project.properties
jakarta/commons/sandbox/csv/trunk/project.properties
jakarta/commons/sandbox/i18n/trunk/project.properties
jakarta/commons/sandbox/id/trunk/project.properties
jakarta/commons/sandbox/javaflow/trunk/project.properties
jakarta/commons/sandbox/pipeline/trunk/project.properties
jakarta/commons/sandbox/proxy/trunk/project.properties
jakarta/commons/sandbox/scxml/trunk/project.properties
jakarta/commons/trunks-sandbox/pom.xml
Modified: jakarta/commons/sandbox/compress/trunk/project.properties
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/compress/trunk/project.properties?rev=377559&r1=377558&r2=377559&view=diff
==============================================================================
--- jakarta/commons/sandbox/compress/trunk/project.properties (original)
+++ jakarta/commons/sandbox/compress/trunk/project.properties Mon Feb 13 17:17:27 2006
@@ -21,6 +21,12 @@
maven.checkstyle.properties = checkstyle.xml
+# Jar Manifest Additional Attributes
+maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK
+maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache
+maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source}
+maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target}
+
# uncomment the next line to work in offline mode (no jar download & no linkcheck)
#maven.mode.online=
maven.changelog.factory=org.apache.maven.svnlib.SvnChangeLogFactory
Modified: jakarta/commons/sandbox/csv/trunk/project.properties
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/csv/trunk/project.properties?rev=377559&r1=377558&r2=377559&view=diff
==============================================================================
--- jakarta/commons/sandbox/csv/trunk/project.properties (original)
+++ jakarta/commons/sandbox/csv/trunk/project.properties Mon Feb 13 17:17:27 2006
@@ -19,6 +19,12 @@
maven.xdoc.developmentProcessUrl=http://jakarta.apache.org/commons/charter.html
maven.xdoc.includeProjectDocumentation=yes
+# Jar Manifest Additional Attributes
+maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK
+maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache
+maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source}
+maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target}
+
maven.checkstyle.properties = checkstyle.xml
# uncomment the next line to work in offline mode (no jar download & no linkcheck)
Modified: jakarta/commons/sandbox/i18n/trunk/project.properties
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/i18n/trunk/project.properties?rev=377559&r1=377558&r2=377559&view=diff
==============================================================================
--- jakarta/commons/sandbox/i18n/trunk/project.properties (original)
+++ jakarta/commons/sandbox/i18n/trunk/project.properties Mon Feb 13 17:17:27 2006
@@ -15,6 +15,12 @@
maven.javadoc.author=false
maven.javadoc.links=http://java.sun.com/j2se/1.4.2/docs/api
+# Jar Manifest Additional Attributes
+maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK
+maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache
+maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source}
+maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target}
+
maven.xdoc.jsl=../commons-build/commons-site.jsl
maven.xdoc.date=bottom
maven.xdoc.poweredby.image=maven-feather.png
Modified: jakarta/commons/sandbox/id/trunk/project.properties
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/project.properties?rev=377559&r1=377558&r2=377559&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/project.properties (original)
+++ jakarta/commons/sandbox/id/trunk/project.properties Mon Feb 13 17:17:27 2006
@@ -21,6 +21,12 @@
maven.javadoc.author=false
maven.javadoc.links=http://java.sun.com/j2se/1.4.2/docs/api/
+# Jar Manifest Additional Attributes
+maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK
+maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache
+maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source}
+maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target}
+
maven.compile.debug=on
maven.compile.deprecation=off
maven.compile.optimize=off
Modified: jakarta/commons/sandbox/javaflow/trunk/project.properties
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/project.properties?rev=377559&r1=377558&r2=377559&view=diff
==============================================================================
--- jakarta/commons/sandbox/javaflow/trunk/project.properties (original)
+++ jakarta/commons/sandbox/javaflow/trunk/project.properties Mon Feb 13 17:17:27 2006
@@ -16,6 +16,12 @@
maven.compile.deprecation=off
maven.compile.optimize=off
+# Jar Manifest Additional Attributes
+maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK
+maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache
+maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source}
+maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target}
+
maven.jarResources.basedir=src/java
maven.jar.excludes=**/package.html
maven.junit.fork=true
Modified: jakarta/commons/sandbox/pipeline/trunk/project.properties
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/pipeline/trunk/project.properties?rev=377559&r1=377558&r2=377559&view=diff
==============================================================================
--- jakarta/commons/sandbox/pipeline/trunk/project.properties (original)
+++ jakarta/commons/sandbox/pipeline/trunk/project.properties Mon Feb 13 17:17:27 2006
@@ -12,6 +12,12 @@
maven.javadoc.author=false
maven.javadoc.links=http://java.sun.com/products/jdk/1.4/docs/api
+# Jar Manifest Additional Attributes
+maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK
+maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache
+maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source}
+maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target}
+
maven.xdoc.jsl=../commons-build/commons-site.jsl
maven.xdoc.date=bottom
maven.xdoc.poweredby.image=maven-feather.png
Modified: jakarta/commons/sandbox/proxy/trunk/project.properties
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/project.properties?rev=377559&r1=377558&r2=377559&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/project.properties (original)
+++ jakarta/commons/sandbox/proxy/trunk/project.properties Mon Feb 13 17:17:27 2006
@@ -56,6 +56,14 @@
#maven.repo.apache.releases.passphrase=
######################################################################
+# Jar Manifest Additional Attributes
+######################################################################
+maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK
+maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache
+maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source}
+maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target}
+
+######################################################################
# JUnit Testing
######################################################################
maven.junit.fork=true
Modified: jakarta/commons/sandbox/scxml/trunk/project.properties
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/project.properties?rev=377559&r1=377558&r2=377559&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/project.properties (original)
+++ jakarta/commons/sandbox/scxml/trunk/project.properties Mon Feb 13 17:17:27 2006
@@ -20,6 +20,12 @@
maven.xdoc.includeProjectDocumentation=yes
maven.xdoc.xml.copy=usecases/rdc-group/*.xml,usecases/shale-dialogs/*.xml
+# Jar Manifest Additional Attributes
+maven.jar.manifest.attributes.list=Implementation-Vendor-Id,X-Compile-Source-JDK,X-Compile-Target-JDK
+maven.jar.manifest.attribute.Implementation-Vendor-Id=org.apache
+maven.jar.manifest.attribute.X-Compile-Source-JDK=${maven.compile.source}
+maven.jar.manifest.attribute.X-Compile-Target-JDK=${maven.compile.target}
+
maven.javadoc.links=http://java.sun.com/j2se/1.4.2/docs/api/
### dev properties ###
Modified: jakarta/commons/trunks-sandbox/pom.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/trunks-sandbox/pom.xml?rev=377559&r1=377558&r2=377559&view=diff
==============================================================================
--- jakarta/commons/trunks-sandbox/pom.xml (original)
+++ jakarta/commons/trunks-sandbox/pom.xml Mon Feb 13 17:17:27 2006
@@ -90,6 +90,21 @@
</configuration>
</plugin>
<plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifestEntries>
+ <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
+ <!-- TODO: How to reference the source/target config from the compiler plugin? -->
+<!--
+ <X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>
+ <X-Compile-Target-JDK>${maven.compile.target}</X-Compile-Target-JDK>
+-->
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
<artifactId>maven-idea-plugin</artifactId>
<configuration>
<jdkLevel>1.3</jdkLevel>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: svn commit: r377559 - in /jakarta/commons: sandbox/compress/trunk/ sandbox/csv/trunk/ sandbox/i18n/trunk/ sandbox/id/trunk/ sandbox/javaflow/trunk/ sandbox/pipeline/trunk/ sandbox/proxy/trunk/ sandbox/scxml/trunk/ trunks-sandbox/
Posted by Rahul Akolkar <ra...@gmail.com>.
On 2/13/06, niallp@apache.org <ni...@apache.org> wrote:
> Author: niallp
> Date: Mon Feb 13 17:17:27 2006
> New Revision: 377559
>
> URL: http://svn.apache.org/viewcvs?rev=377559&view=rev
> Log:
> Modify maven build to add two non-standard attributes to the jar's manifest file to indicate the values of "maven.compile.source" and "maven.compile.target". Also modify the build to include an "Implementation-Vendor-Id" of "org.apache" in the jar's manifest.
>
<snip/>
Thanks for keeping the sandbox components in sync as well.
-Rahul
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org