This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag maven-launchpad-plugin-2.0.10 in repository https://gitbox.apache.org/repos/asf/sling-maven-launchpad-plugin.git
commit ea8d50e410c5c91f86bc7d8d125d8c5c9dbb64da Author: Justin Edelson <[email protected]> AuthorDate: Thu Sep 23 15:58:08 2010 +0000 SLING-1799 - adding output-bundle-list mojo git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/maven/maven-launchpad-plugin@1000510 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/projectsupport/OutputBundleListMojo.java | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/main/java/org/apache/sling/maven/projectsupport/OutputBundleListMojo.java b/src/main/java/org/apache/sling/maven/projectsupport/OutputBundleListMojo.java new file mode 100644 index 0000000..031949f --- /dev/null +++ b/src/main/java/org/apache/sling/maven/projectsupport/OutputBundleListMojo.java @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with this + * work for additional information regarding copyright ownership. The ASF + * licenses this file to You under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package org.apache.sling.maven.projectsupport; + +import java.io.IOException; +import java.io.OutputStreamWriter; + +import org.apache.maven.plugin.MojoExecutionException; +import org.apache.maven.plugin.MojoFailureException; +import org.apache.sling.maven.projectsupport.bundlelist.v1_0_0.io.xpp3.BundleListXpp3Writer; + +/** + * Output the bundle list back to the console. + * + * @goal output-bundle-list + * + */ +public class OutputBundleListMojo extends AbstractBundleListMojo { + + @Override + protected void executeWithArtifacts() throws MojoExecutionException, MojoFailureException { + BundleListXpp3Writer writer = new BundleListXpp3Writer(); + try { + writer.write(new OutputStreamWriter(System.out), getBundleList()); + } catch (IOException e) { + throw new MojoExecutionException("Unable to write bundle list", e); + } + } + +} -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
