Return-Path: X-Original-To: apmail-sling-commits-archive@www.apache.org Delivered-To: apmail-sling-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 EF9107F93 for ; Mon, 19 Dec 2011 10:55:04 +0000 (UTC) Received: (qmail 83194 invoked by uid 500); 19 Dec 2011 10:55:04 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 83143 invoked by uid 500); 19 Dec 2011 10:55:04 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 83136 invoked by uid 99); 19 Dec 2011 10:55:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2011 10:55:04 +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; Mon, 19 Dec 2011 10:55:03 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8CBA423889FD; Mon, 19 Dec 2011 10:54:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1220684 - /sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java Date: Mon, 19 Dec 2011 10:54:42 -0000 To: commits@sling.apache.org From: cziegeler@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111219105442.8CBA423889FD@eris.apache.org> Author: cziegeler Date: Mon Dec 19 10:54:42 2011 New Revision: 1220684 URL: http://svn.apache.org/viewvc?rev=1220684&view=rev Log: SLING-2331 : Values in partial bundle list should be interpolated Maven style Modified: sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java Modified: sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java URL: http://svn.apache.org/viewvc/sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java?rev=1220684&r1=1220683&r2=1220684&view=diff ============================================================================== --- sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java (original) +++ sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java Mon Dec 19 10:54:42 2011 @@ -16,6 +16,9 @@ */ package org.apache.sling.maven.projectsupport; +import static org.apache.sling.maven.projectsupport.BundleListUtils.interpolateProperties; +import static org.apache.sling.maven.projectsupport.BundleListUtils.readBundleList; + import java.io.File; import java.io.FileWriter; import java.io.IOException; @@ -28,7 +31,6 @@ import org.codehaus.plexus.archiver.Arch import org.codehaus.plexus.archiver.zip.ZipArchiver; import org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; -import static org.apache.sling.maven.projectsupport.BundleListUtils.readBundleList; /** * Attaches the bundle list as a project artifact. @@ -60,7 +62,7 @@ public class AttachPartialBundleListMojo * @parameter default-value="${project.build.directory}/bundleListconfig" */ private File configOutputDir; - + /** * @parameter default-value="${project.build.directory}/list.xml" */ @@ -86,16 +88,18 @@ public class AttachPartialBundleListMojo } else { initializedBundleList = new BundleList(); } - + addDependencies(initializedBundleList); - - BundleListXpp3Writer writer = new BundleListXpp3Writer(); + + interpolateProperties(initializedBundleList, this.project, this.mavenSession); + + final BundleListXpp3Writer writer = new BundleListXpp3Writer(); try { writer.write(new FileWriter(bundleListOutput), initializedBundleList); } catch (IOException e) { throw new MojoExecutionException("Unable to write bundle list", e); } - + project.getArtifact().setFile(bundleListOutput); this.getLog().info("Attaching bundle list configuration");