incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r920949 - /incubator/aries/trunk/maven-eba-plugin/src/main/java/org/apache/aries/plugin/eba/EbaMojo.java
Date Tue, 09 Mar 2010 16:14:03 GMT
Author: gcc
Date: Tue Mar  9 16:14:03 2010
New Revision: 920949

URL: http://svn.apache.org/viewvc?rev=920949&view=rev
Log:
ARIES-228
Configure the application symbolic name as follows:

<configuration>
   <instructions>
      <Application-SymbolicName>${pom.artifactId}</Application-SymbolicName>
   </instructions>
</configuration>

Modified:
    incubator/aries/trunk/maven-eba-plugin/src/main/java/org/apache/aries/plugin/eba/EbaMojo.java

Modified: incubator/aries/trunk/maven-eba-plugin/src/main/java/org/apache/aries/plugin/eba/EbaMojo.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/maven-eba-plugin/src/main/java/org/apache/aries/plugin/eba/EbaMojo.java?rev=920949&r1=920948&r2=920949&view=diff
==============================================================================
--- incubator/aries/trunk/maven-eba-plugin/src/main/java/org/apache/aries/plugin/eba/EbaMojo.java
(original)
+++ incubator/aries/trunk/maven-eba-plugin/src/main/java/org/apache/aries/plugin/eba/EbaMojo.java
Tue Mar  9 16:14:03 2010
@@ -444,6 +444,9 @@ public class EbaMojo
     // The maven2OsgiConverter assumes the artifact is a jar so we need our own
 	// This uses the same fallback scheme as the converter
     private String getApplicationSymbolicName(Artifact artifact) {
+		if (instructions.containsKey(APPLICATION_SYMBOLICNAME)) {
+			return instructions.get(APPLICATION_SYMBOLICNAME).toString();
+		}
     	return artifact.getGroupId() + "." + artifact.getArtifactId();
     }
     



Mime
View raw message