Return-Path: X-Original-To: apmail-karaf-commits-archive@minotaur.apache.org Delivered-To: apmail-karaf-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5DA1318D51 for ; Tue, 24 Nov 2015 19:50:45 +0000 (UTC) Received: (qmail 15240 invoked by uid 500); 24 Nov 2015 19:50:45 -0000 Delivered-To: apmail-karaf-commits-archive@karaf.apache.org Received: (qmail 15170 invoked by uid 500); 24 Nov 2015 19:50:45 -0000 Mailing-List: contact commits-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list commits@karaf.apache.org Received: (qmail 15033 invoked by uid 99); 24 Nov 2015 19:50:45 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2015 19:50:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1DE71E02D3; Tue, 24 Nov 2015 19:50:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jbonofre@apache.org To: commits@karaf.apache.org Date: Tue, 24 Nov 2015 19:50:51 -0000 Message-Id: <1db6a4da7f694f13bad9bcdb4139c6f7@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [08/10] karaf git commit: KARAF-3928: connect up generated doc from Modello. KARAF-3928: connect up generated doc from Modello. Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/6bc4817a Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/6bc4817a Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/6bc4817a Branch: refs/heads/master Commit: 6bc4817ae587562042f09144f6e0ca7f2a9a4919 Parents: 3c2afb2 Author: Benson Margulies Authored: Sun Sep 13 11:57:39 2015 -0400 Committer: Benson Margulies Committed: Sun Sep 13 11:59:14 2015 -0400 ---------------------------------------------------------------------- tooling/karaf-maven-plugin/pom.xml | 4 +- .../org/apache/karaf/tooling/AssemblyMojo.java | 5 +- .../xdoc/karaf-property-instructions-model.xml | 156 +++++++++++++++++++ tooling/utils/src/main/mdo/edits.mdo | 2 +- 4 files changed, 163 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/6bc4817a/tooling/karaf-maven-plugin/pom.xml ---------------------------------------------------------------------- diff --git a/tooling/karaf-maven-plugin/pom.xml b/tooling/karaf-maven-plugin/pom.xml index 67998e4..d5bfcce 100644 --- a/tooling/karaf-maven-plugin/pom.xml +++ b/tooling/karaf-maven-plugin/pom.xml @@ -218,8 +218,8 @@ -Djava.io.tmpdir=${project.build.directory} - ${skipTests} - ${skipTests} + ${invoker.skip} + ${invoker.skip} package http://git-wip-us.apache.org/repos/asf/karaf/blob/6bc4817a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/AssemblyMojo.java ---------------------------------------------------------------------- diff --git a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/AssemblyMojo.java b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/AssemblyMojo.java index ff634ee..2f2f5c1 100644 --- a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/AssemblyMojo.java +++ b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/AssemblyMojo.java @@ -180,7 +180,10 @@ public class AssemblyMojo extends MojoSupport { /** * Specify an XML file that instructs this goal to apply edits to - * one or more standard Karaf property files. This allows you to + * one or more standard Karaf property files. + * The contents of this file are documented in detail on + * this page. + * This allows you to * customize these files without making copies in your resources * directories. Here's a simple example: *

http://git-wip-us.apache.org/repos/asf/karaf/blob/6bc4817a/tooling/karaf-maven-plugin/src/site/xdoc/karaf-property-instructions-model.xml
----------------------------------------------------------------------
diff --git a/tooling/karaf-maven-plugin/src/site/xdoc/karaf-property-instructions-model.xml b/tooling/karaf-maven-plugin/src/site/xdoc/karaf-property-instructions-model.xml
new file mode 100644
index 0000000..1b8a5a4
--- /dev/null
+++ b/tooling/karaf-maven-plugin/src/site/xdoc/karaf-property-instructions-model.xml
@@ -0,0 +1,156 @@
+
+    
+
+
+
+
+
+
+
+
+  
+    KarafPropertyInstructionsModel
+  
+  
+    
+

+ Specifications for how to modify Karaf property files to customize an installation. +

+ +<property-edits xmlns="http://karaf.apache.org/tools/property-edits/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://karaf.apache.org/tools/property-edits/1.0.0 http://karaf.apache.org/xsd/property-edits-1.0.0.xsd"> + <edits> + <edit> + <operation prepend=.. /> + <file/> + <key/> + <value/> + </edit> + </edits> +</property-edits> + + + +

+ A collection instructions. Each instruction is either a 'put' or an 'edit', + and calls out a file, a property name, and a property value. +

+ + + + + + + + + + + +
ElementTypeDescription
+ edits/edit* + + List<KarafPropertyEdit> + (Many) The list of edits to perform.
+
+
+ +

+ A single property edit. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
ElementTypeDescription
+ + operation + + + Operation + + The operation to perform: 'put' or 'extend'. +
+ file + + String + + The pathname, relative to the the Karaf etc directory, of the file to manipulate. +
+ key + + String + + The property key. +
+ value + + String + + The property value. +
+
+
+ +

No description.

+

+ Element Content: + 'extend' to extend the existing value, 'put' to replace. +

+ + + + + + + + + + + +
AttributeTypeDescription
+ prepend + + boolean + for the 'extend' operation, indicates that the value should be placed at the head of the list.
Default value is: false.
+
+
+ +
http://git-wip-us.apache.org/repos/asf/karaf/blob/6bc4817a/tooling/utils/src/main/mdo/edits.mdo ---------------------------------------------------------------------- diff --git a/tooling/utils/src/main/mdo/edits.mdo b/tooling/utils/src/main/mdo/edits.mdo index b0d3f86..c8072ae 100644 --- a/tooling/utils/src/main/mdo/edits.mdo +++ b/tooling/utils/src/main/mdo/edits.mdo @@ -35,7 +35,7 @@ A collection instructions. Each instruction is either a 'put' or an 'edit', - and calls out a file and a series of name/value pairs. + and calls out a file, a property name, and a property value. KarafPropertyEdits 1.0.0+