myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r545592 - in /myfaces/tobago/trunk: example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java pom.xml
Date Fri, 08 Jun 2007 18:53:52 GMT
Author: bommel
Date: Fri Jun  8 11:53:52 2007
New Revision: 545592

URL: http://svn.apache.org/viewvc?view=rev&rev=545592
Log:
(TOBAGO-417) Add DefaultImplementationEntries in MANIFEST.MF

Modified:
    myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java
    myfaces/tobago/trunk/pom.xml

Modified: myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java?view=diff&rev=545592&r1=545591&r2=545592
==============================================================================
--- myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java
(original)
+++ myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java
Fri Jun  8 11:53:52 2007
@@ -43,6 +43,14 @@
       Properties properties = new Properties();
       properties.load(pom);
       version = properties.getProperty("version");
+
+      /*
+      This should work, too. But the default ImplementationEntries in MANIFEST.MF are missing
+      See:
+      https://issues.apache.org/jira/browse/TOBAGO-417
+      Package tobagoPackage = Package.getPackage("org.apache.myfaces.tobago.component");
+      version = tobagoPackage.getImplementationVersion();
+      */
     } catch (IOException e) {
       LOG.warn("No version info found.", e);
     } finally {

Modified: myfaces/tobago/trunk/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/pom.xml?view=diff&rev=545592&r1=545591&r2=545592
==============================================================================
--- myfaces/tobago/trunk/pom.xml (original)
+++ myfaces/tobago/trunk/pom.xml Fri Jun  8 11:53:52 2007
@@ -541,15 +541,18 @@
           <version>2.1</version>
           <configuration>
             <archive>
+              <manifest>
+                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+              </manifest>
+              <manifestEntries>
+                <Revision>${scm.revision}</Revision>
+              </manifestEntries>
               <manifestSections>
                 <manifestSection>
                   <name>${project.artifactId}</name>
                   <manifestEntries>
-                    <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>
                 </manifestSection>
               </manifestSections>



Mime
View raw message