Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 746A5200C41 for ; Thu, 9 Mar 2017 22:11:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 734C9160B8B; Thu, 9 Mar 2017 21:11:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9CF69160B96 for ; Thu, 9 Mar 2017 22:11:57 +0100 (CET) Received: (qmail 10148 invoked by uid 500); 9 Mar 2017 21:11:56 -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 9329 invoked by uid 99); 9 Mar 2017 21:11:55 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2017 21:11:55 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 5E1F73A44D6 for ; Thu, 9 Mar 2017 21:11:54 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1008009 [19/31] - in /websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST: ./ css/ images/ images/logos/ images/profiles/ img/ js/ xref-test/ xref-test/org/ xref-test/org/apache/ xref-test/org/apache/fe... Date: Thu, 09 Mar 2017 21:11:52 -0000 To: commits@felix.apache.org From: sseifert@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170309211154.5E1F73A44D6@svn01-us-west.apache.org> archived-at: Thu, 09 Mar 2017 21:11:59 -0000 Added: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/VersionCleanerPlugin.html ============================================================================== --- websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/VersionCleanerPlugin.html (added) +++ websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/VersionCleanerPlugin.html Thu Mar 9 21:11:51 2017 @@ -0,0 +1,91 @@ + + + +VersionCleanerPlugin xref + + + +
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   *   http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.felix.bundleplugin;
+20  
+21  
+22  import java.util.LinkedHashMap;
+23  import java.util.Map;
+24  
+25  import org.apache.maven.plugin.AbstractMojo;
+26  import org.apache.maven.plugin.MojoExecutionException;
+27  import org.apache.maven.plugin.MojoFailureException;
+28  import org.apache.maven.plugins.annotations.Mojo;
+29  import org.apache.maven.plugins.annotations.Parameter;
+30  import org.apache.maven.project.MavenProject;
+31  import org.apache.maven.shared.osgi.DefaultMaven2OsgiConverter;
+32  import org.apache.maven.shared.osgi.Maven2OsgiConverter;
+33  
+34  
+35  /**
+36   * Clean OSGi versions, ie convert a group of versions to OSGi format.
+37   */
+38  @Mojo( name = "cleanVersions", threadSafe = true )
+39  public class VersionCleanerPlugin extends AbstractMojo
+40  {
+41  
+42      /**
+43       * The BND instructions for the bundle.
+44       */
+45      @Parameter
+46      private Map<String, String> versions = new LinkedHashMap<String, String>();
+47  
+48      /**
+49       * The Maven project.
+50       */
+51      @Parameter( defaultValue = "${project}", readonly = true, required = true )
+52      private MavenProject project;
+53  
+54      private Maven2OsgiConverter maven2OsgiConverter = new DefaultMaven2OsgiConverter();
+55  
+56  
+57      public Maven2OsgiConverter getMaven2OsgiConverter()
+58      {
+59          return maven2OsgiConverter;
+60      }
+61  
+62  
+63      public void setMaven2OsgiConverter( Maven2OsgiConverter maven2OsgiConverter )
+64      {
+65          this.maven2OsgiConverter = maven2OsgiConverter;
+66      }
+67  
+68  
+69      public void execute() throws MojoExecutionException, MojoFailureException
+70      {
+71          for ( String name : versions.keySet() )
+72          {
+73              String version = versions.get( name );
+74              String osgi = maven2OsgiConverter.getVersion( version );
+75              project.getProperties().put( name, osgi );
+76          }
+77      }
+78  }
+
+
+ + + \ No newline at end of file Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/VersionCleanerPlugin.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/VersionCleanerPlugin.html ------------------------------------------------------------------------------ --- svn:keywords (added) +++ svn:keywords Thu Mar 9 21:11:51 2017 @@ -0,0 +1 @@ +LastChangedDate LastChangedRevision LastChangedBy HeadURL Id Author Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/VersionCleanerPlugin.html ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/WrapPlugin.html ============================================================================== --- websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/WrapPlugin.html (added) +++ websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/WrapPlugin.html Thu Mar 9 21:11:51 2017 @@ -0,0 +1,60 @@ + + + +WrapPlugin xref + + + +
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   *   http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.felix.bundleplugin;
+20  
+21  
+22  import org.apache.maven.plugin.MojoExecutionException;
+23  import org.apache.maven.plugins.annotations.LifecyclePhase;
+24  import org.apache.maven.plugins.annotations.Mojo;
+25  import org.apache.maven.plugins.annotations.ResolutionScope;
+26  
+27  
+28  /**
+29   * Build an OSGi bundle jar for direct dependencies.
+30   * @deprecated The wrap goal is no longer supported and may be removed in a future release
+31   */
+32  @Deprecated
+33  @Mojo( name = "wrap", requiresDependencyResolution = ResolutionScope.TEST,
+34         defaultPhase = LifecyclePhase.PACKAGE)
+35  public final class WrapPlugin extends BundleAllPlugin
+36  {
+37      @Override
+38      public void execute() throws MojoExecutionException
+39      {
+40          getLog().warn( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" );
+41          getLog().warn( "! The wrap goal is no longer supported and may be removed in a future release !" );
+42          getLog().warn( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" );
+43  
+44          BundleInfo bundleInfo = bundleAll( getProject(), 1 );
+45          logDuplicatedPackages( bundleInfo );
+46      }
+47  }
+
+
+ + + \ No newline at end of file Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/WrapPlugin.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/WrapPlugin.html ------------------------------------------------------------------------------ --- svn:keywords (added) +++ svn:keywords Thu Mar 9 21:11:51 2017 @@ -0,0 +1 @@ +LastChangedDate LastChangedRevision LastChangedBy HeadURL Id Author Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/WrapPlugin.html ------------------------------------------------------------------------------ svn:mime-type = text/plain