Return-Path: X-Original-To: apmail-felix-commits-archive@www.apache.org Delivered-To: apmail-felix-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 454814C4E for ; Tue, 28 Jun 2011 00:03:40 +0000 (UTC) Received: (qmail 75706 invoked by uid 500); 28 Jun 2011 00:03:40 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 75431 invoked by uid 500); 28 Jun 2011 00:03:39 -0000 Mailing-List: contact commits-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list commits@felix.apache.org Received: (qmail 75416 invoked by uid 99); 28 Jun 2011 00:03:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 00:03:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 00:03:36 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D53222388900 for ; Tue, 28 Jun 2011 00:03:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1140381 - in /felix/trunk/bundleplugin: pom.xml src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java Date: Tue, 28 Jun 2011 00:03:15 -0000 To: commits@felix.apache.org From: mcculls@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110628000315.D53222388900@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mcculls Date: Tue Jun 28 00:03:15 2011 New Revision: 1140381 URL: http://svn.apache.org/viewvc?rev=1140381&view=rev Log: FELIX-2449: session properties should be given precedence over project properties when filtering Modified: felix/trunk/bundleplugin/pom.xml felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java Modified: felix/trunk/bundleplugin/pom.xml URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/pom.xml?rev=1140381&r1=1140380&r2=1140381&view=diff ============================================================================== --- felix/trunk/bundleplugin/pom.xml (original) +++ felix/trunk/bundleplugin/pom.xml Tue Jun 28 00:03:15 2011 @@ -65,12 +65,7 @@ org.apache.maven - maven-plugin-api - 2.0.7 - - - org.apache.maven - maven-project + maven-core 2.0.7 Modified: felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java?rev=1140381&r1=1140380&r2=1140381&view=diff ============================================================================== --- felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java (original) +++ felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java Tue Jun 28 00:03:15 2011 @@ -46,6 +46,7 @@ import org.apache.maven.archiver.MavenAr import org.apache.maven.archiver.MavenArchiver; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager; +import org.apache.maven.execution.MavenSession; import org.apache.maven.model.License; import org.apache.maven.model.Model; import org.apache.maven.model.Resource; @@ -188,6 +189,13 @@ public class BundlePlugin extends Abstra */ private MavenArchiveConfiguration archive; // accessed indirectly in JarPluginConfiguration + /** + * @parameter default-value="${session}" + * @required + * @readonly + */ + private MavenSession m_mavenSession; + private static final String MAVEN_SYMBOLICNAME = "maven-symbolicname"; private static final String MAVEN_RESOURCES = "{maven-resources}"; private static final String LOCAL_PACKAGES = "{local-packages}"; @@ -1012,9 +1020,15 @@ public class BundlePlugin extends Abstra properties.putAll( currentProject.getProperties() ); properties.putAll( currentProject.getModel().getProperties() ); + if ( m_mavenSession != null ) + { + properties.putAll( m_mavenSession.getExecutionProperties() ); + } + properties.putAll( getProperties( currentProject.getModel(), "project.build." ) ); properties.putAll( getProperties( currentProject.getModel(), "pom." ) ); properties.putAll( getProperties( currentProject.getModel(), "project." ) ); + properties.put( "project.baseDir", baseDir ); properties.put( "project.build.directory", getBuildDirectory() ); properties.put( "project.build.outputdirectory", getOutputDirectory() );