You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2021/04/14 15:13:50 UTC

[sling-org-apache-sling-feature-cpconverter] branch master updated: SLING-10127 make unreferenced-artifacts-output-directory parameter optional

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-cpconverter.git


The following commit(s) were added to refs/heads/master by this push:
     new 1c5602e  SLING-10127 make unreferenced-artifacts-output-directory parameter optional
1c5602e is described below

commit 1c5602e82730d0cc2c4bb40f47d67439d63464a3
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Wed Apr 14 17:13:40 2021 +0200

    SLING-10127 make unreferenced-artifacts-output-directory parameter
    optional
---
 README.md                                                               | 2 +-
 .../cpconverter/cli/ContentPackage2FeatureModelConverterLauncher.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 71907f2..fec82c1 100644
--- a/README.md
+++ b/README.md
@@ -500,7 +500,7 @@ Usage: cp2fm [-hmqsvXZ] [--disable-installer-policy]
              -a=<artifactsOutputDirectory> [-b=<bundlesStartOrder>]
              [-e=<exportsToRegion>] [-i=<artifactIdOverride>]
              -o=<featureModelsOutputDirectory> [-p=<fmPrefix>]
-             -u=<unreferencedArtifactsOutputDirectory>
+             [-u=<unreferencedArtifactsOutputDirectory>]
              [--entry-handler-config=<entryHandlerConfigs>]...
              [-D=<String=String>]... [-f=<filteringPatterns>]...
              [-r=<apiRegions>]... content-packages...
diff --git a/src/main/java/org/apache/sling/feature/cpconverter/cli/ContentPackage2FeatureModelConverterLauncher.java b/src/main/java/org/apache/sling/feature/cpconverter/cli/ContentPackage2FeatureModelConverterLauncher.java
index 2503076..4072487 100644
--- a/src/main/java/org/apache/sling/feature/cpconverter/cli/ContentPackage2FeatureModelConverterLauncher.java
+++ b/src/main/java/org/apache/sling/feature/cpconverter/cli/ContentPackage2FeatureModelConverterLauncher.java
@@ -130,7 +130,7 @@ public final class ContentPackage2FeatureModelConverterLauncher implements Runna
     @Option(names = { "--content-type-package-policy" }, description = "Determines what to do with converted packages of type 'content'. Valid values: ${COMPLETION-CANDIDATES}.", required = false, showDefaultValue = Visibility.ALWAYS)
     private ContentPackage2FeatureModelConverter.PackagePolicy contentTypePackagePolicy = ContentPackage2FeatureModelConverter.PackagePolicy.DROP;
 
-    @Option(names = { "-u", "--unreferenced-artifacts-output-directory" }, description = "The output directory where unreferenced artifacts will be deployed.", required = true)
+    @Option(names = { "-u", "--unreferenced-artifacts-output-directory" }, description = "The output directory where unreferenced artifacts will be deployed.", required = false)
     private File unreferencedArtifactsOutputDirectory;
 
     @Override