Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-grep.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-grep.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-grep.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-grep.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -101,7 +101,7 @@ </td> <td height="100%" width="100%"> <div class="wiki-content"> -<h1 id="shellgrep">shell:grep</h1><h2 id="Description">Description</h2><p>Prints lines matching the given pattern.</p><h2 id="Syntax">Syntax</h2><p>shell:grep [options] pattern </p><h2 id="Arguments">Arguments</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> pattern </td><td class="confluenceTd"> Regular expression </td></tr></table></div><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> -w, --word-regexp </td><td class="confluenceTd"> Selects only those lines containing matches that form whole words. The test is that the matching substring must either be at the beginning of the line, or preceded by a non-word constituent character. Similarly, it must be either at the end of the line or followed by a non- word constituent character. Word-constituent characters are letters, digits, and the underscore. </td></tr><tr><td class="confluenceTd"> -c, --count </td><td class="confluenceTd"> only print a count of matching lines per FILE </td></tr><tr><td class="confluenceTd"> -n, --line-number </td><td class="confluenceTd"> Prefixes each line of output with the line number within its input file. </td></tr><tr><td class="confluenceTd"> -v, --invert-match </td><td class="confluenceTd"> Inverts the sense of matching, to select non-matching lines. </td></tr><tr><td class="confluenceTd"> -i, --ignore-case </td><td class="confluenceTd"> Ignores case distinctions in both the PATTERN and the input files. </td></tr><tr><td class="confluenceTd"> -C, --context </td><td class="confluenceTd"> Print NUM lines of output context. Places a line containing – between contiguous groups of matches. </td></tr><tr><td class="confluenceTd"> -x, --line-regexp </td><td class="confluenceTd"> Selects only those m atches that exactly match the whole line. </td></tr><tr><td class="confluenceTd"> -A, --after-context </td><td class="confluenceTd"> Print NUM lines of trailing context after matching lines. Places a line containing – between contiguous groups of matches. (defaults to -1) </td></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td></tr><tr><td class="confluenceTd"> --color, --colour </td><td class="confluenceTd"> use markers to distinguish the matching string. WHEN may be `always', `never' or `auto' (defaults to auto) </td></tr><tr><td class="confluenceTd"> -B, --before-context </td><td class="confluenceTd"> Print NUM lines of leading context before matching lines. Places a line containing – between contiguous groups of matches. (defaults to -1) </td></tr></table></div><h2 id="Details">Details</h2><p>Grep uses Java regular expressions for pattern matching. For more informations, see http://download.oracle.com/javase/1.5 .0/docs/api/java/util/regex/Pattern.html</p> +<h1 id="shellgrep">shell:grep</h1><h2 id="Description">Description</h2><p>Prints lines matching the given pattern.</p><h2 id="Syntax">Syntax</h2><p>shell:grep [options] pattern </p><h2 id="Arguments">Arguments</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> pattern </td><td class="confluenceTd"> Regular expression </td></tr></table></div><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> -w, --word-regexp </td><td class="confluenceTd"> Selects only those lines containing matches that form whole words. The test is that the matching substring must either be at the beginning of the line, or preceded by a non-word constituent character. Similarly, it must be either at the end of the line or followed by a non- word constituent character. Word-constituent characters are letters, digits, and the underscore. </td></tr><tr><td class="confluenceTd"> -c, --count </td><td class="confluenceTd"> only print a count of matching lines per FILE </td></tr><tr><td class="confluenceTd"> -n, --line-number </td><td class="confluenceTd"> Prefixes each line of output with the line number within its input file. </td></tr><tr><td class="confluenceTd"> -v, --invert-match </td><td class="confluenceTd"> Inverts the sense of matching, to select non-matching lines. </td></tr><tr><td class="confluenceTd"> -i, --ignore-case </td><td class="confluenceTd"> Ignores case distinctions in both the PATTERN and the input files. </td></tr><tr><td class="confluenceTd"> -C, --context </td><td class="confluenceTd"> Print NUM lines of output context. Places a line containing – between contiguous groups of matches. </td></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td> </tr><tr><td class="confluenceTd"> -x, --line-regexp </td><td class="confluenceTd"> Selects only those matches that exactly match the whole line. </td></tr><tr><td class="confluenceTd"> -A, --after-context </td><td class="confluenceTd"> Print NUM lines of trailing context after matching lines. Places a line containing – between contiguous groups of matches. (defaults to -1) </td></tr><tr><td class="confluenceTd"> --color, --colour </td><td class="confluenceTd"> use markers to distinguish the matching string. WHEN may be `always', `never' or `auto' (defaults to auto) </td></tr><tr><td class="confluenceTd"> -B, --before-context </td><td class="confluenceTd"> Print NUM lines of leading context before matching lines. Places a line containing – between contiguous groups of matches. (defaults to -1) </td></tr></table></div><h2 id="Details">Details</h2><p>Grep uses Java regular expressions for pattern matching. For more informations, see http://download.oracle.com/javase/1.5 .0/docs/api/java/util/regex/Pattern.html</p> </div> </td> </tr>
Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-head.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-head.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-head.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-head.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-history.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-history.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-history.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-history.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -101,7 +101,7 @@ </td> <td height="100%" width="100%"> <div class="wiki-content"> -<h1 id="shellhistory">shell:history</h1><h2 id="Description">Description</h2><p>Prints command history.</p><h2 id="Syntax">Syntax</h2><p>shell:history [options]</p><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td></tr></table></div> +<h1 id="shellhistory">shell:history</h1><h2 id="Description">Description</h2><p>Prints command history.</p><h2 id="Syntax">Syntax</h2><p>shell:history [options]</p><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td></tr><tr><td class="confluenceTd"> -c, --clear </td><td class="confluenceTd"> Clears the shell command history. </td></tr></table></div> </div> </td> </tr> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-if.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-if.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-if.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-if.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-info.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-info.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-info.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-info.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-java.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-java.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-java.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-java.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-logout.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-logout.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-logout.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-logout.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-more.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-more.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-more.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-more.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-new.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-new.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-new.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-new.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-printf.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-printf.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-printf.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-printf.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-sleep.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-sleep.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-sleep.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-sleep.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-sort.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-sort.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-sort.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-sort.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -101,7 +101,7 @@ </td> <td height="100%" width="100%"> <div class="wiki-content"> -<h1 id="shellsort">shell:sort</h1><h2 id="Description">Description</h2><p>Writes sorted concatenation of all files to standard output.</p><h2 id="Syntax">Syntax</h2><p>shell:sort [options] [files] </p><h2 id="Arguments">Arguments</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> files </td><td class="confluenceTd"> A list of files separated by whitespaces </td></tr></table></div><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> -n, --numeric-sort </td><td class="confluenceTd"> compare according to string numerical value </td></tr><tr><td class="confluenceTd"> -t, --field-separator </td><td class="confluenceTd"> use SEP instead of non-blank to blank transition </td></tr><tr><td class="confluenceTd"> -b, --igno re-leading-blanks </td><td class="confluenceTd"> ignore leading blanks </td></tr><tr><td class="confluenceTd"> -f, -ignore-case </td><td class="confluenceTd"> fold lower case to upper case characters </td></tr><tr><td class="confluenceTd"> -r, --reverse </td><td class="confluenceTd"> reverse the result of comparisons </td></tr><tr><td class="confluenceTd"> -k, --key </td><td class="confluenceTd"> Fields to use for sorting separated by whitespaces </td></tr><tr><td class="confluenceTd"> -u, --unique </td><td class="confluenceTd"> output only the first of an equal run </td></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td></tr></table></div> +<h1 id="shellsort">shell:sort</h1><h2 id="Description">Description</h2><p>Writes sorted concatenation of all files to standard output.</p><h2 id="Syntax">Syntax</h2><p>shell:sort [options] [files] </p><h2 id="Arguments">Arguments</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> files </td><td class="confluenceTd"> A list of files separated by whitespaces </td></tr></table></div><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> -n, --numeric-sort </td><td class="confluenceTd"> compare according to string numerical value </td></tr><tr><td class="confluenceTd"> -t, --field-separator </td><td class="confluenceTd"> use SEP instead of non-blank to blank transition </td></tr><tr><td class="confluenceTd"> -b, --igno re-leading-blanks </td><td class="confluenceTd"> ignore leading blanks </td></tr><tr><td class="confluenceTd"> -f, -ignore-case </td><td class="confluenceTd"> fold lower case to upper case characters </td></tr><tr><td class="confluenceTd"> -r, --reverse </td><td class="confluenceTd"> reverse the result of comparisons </td></tr><tr><td class="confluenceTd"> -k, --key </td><td class="confluenceTd"> Fields to use for sorting separated by whitespaces </td></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td></tr><tr><td class="confluenceTd"> -u, --unique </td><td class="confluenceTd"> output only the first of an equal run </td></tr></table></div> </div> </td> </tr> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-source.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-source.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-source.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-source.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-tac.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-tac.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-tac.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-tac.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-tail.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-tail.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-tail.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-tail.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -101,7 +101,7 @@ </td> <td height="100%" width="100%"> <div class="wiki-content"> -<h1 id="shelltail">shell:tail</h1><h2 id="Description">Description</h2><p>Displays the last lines of a file.</p><h2 id="Syntax">Syntax</h2><p>shell:tail [options] [path or url] </p><h2 id="Arguments">Arguments</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> path or url </td><td class="confluenceTd"> A file path or url to display. </td></tr></table></div><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> -n </td><td class="confluenceTd"> The number of lines to display, starting at 1. </td></tr><tr><td class="confluenceTd"> -s </td><td class="confluenceTd"> Sleep interval (used for follow) </td></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td></tr><tr><td class="confluenceTd"> -f </td><td class="confluenceTd"> Follow file changes </td></tr></table></div> +<h1 id="shelltail">shell:tail</h1><h2 id="Description">Description</h2><p>Displays the last lines of a file.</p><h2 id="Syntax">Syntax</h2><p>shell:tail [options] [path or url] </p><h2 id="Arguments">Arguments</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> path or url </td><td class="confluenceTd"> A file path or url to display. </td></tr></table></div><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> -n </td><td class="confluenceTd"> The number of lines to display, starting at 1. </td></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td></tr><tr><td class="confluenceTd"> -s </td><td class="confluenceTd"> Sleep interval (used for follow) </td></tr><tr><td class="confluenceTd"> -f </td><td class="confluenceTd"> Follow file changes </td></tr></table></div> </div> </td> </tr> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-watch.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-watch.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-watch.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-watch.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/shell-wc.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/shell-wc.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/shell-wc.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/shell-wc.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/ssh-ssh.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/ssh-ssh.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/ssh-ssh.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/ssh-ssh.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/ssh-sshd.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/ssh-sshd.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/ssh-sshd.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/ssh-sshd.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -101,7 +101,7 @@ </td> <td height="100%" width="100%"> <div class="wiki-content"> -<h1 id="sshsshd">ssh:sshd</h1><h2 id="Description">Description</h2><p>Creates a SSH server</p><h2 id="Syntax">Syntax</h2><p>ssh:sshd [options]</p><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> -i, --idle-timeout </td><td class="confluenceTd"> The session idle timeout (Default: 1800000ms) (defaults to 1800000) </td></tr><tr><td class="confluenceTd"> -p, --port </td><td class="confluenceTd"> The port to setup the SSH server (Default: 8101) (defaults to 8101) </td></tr><tr><td class="confluenceTd"> -b, --background </td><td class="confluenceTd"> The service will run in the background (Default: true) (defaults to true) </td></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td></tr></table></div> +<h1 id="sshsshd">ssh:sshd</h1><h2 id="Description">Description</h2><p>Creates a SSH server</p><h2 id="Syntax">Syntax</h2><p>ssh:sshd [options]</p><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> -i, --idle-timeout </td><td class="confluenceTd"> The session idle timeout (Default: 1800000ms) (defaults to 1800000) </td></tr><tr><td class="confluenceTd"> -p, --port </td><td class="confluenceTd"> The port to setup the SSH server (Default: 8101) (defaults to 8101) </td></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td></tr><tr><td class="confluenceTd"> -b, --background </td><td class="confluenceTd"> The service will run in the background (Default: true) (defaults to true) </td></tr></table></div> </div> </td> </tr> Modified: karaf/site/production/manual/latest-2.3.x/commands/web-list.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/web-list.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/web-list.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/web-list.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/commands/wrapper-install.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/commands/wrapper-install.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/commands/wrapper-install.html (original) +++ karaf/site/production/manual/latest-2.3.x/commands/wrapper-install.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -101,7 +101,7 @@ </td> <td height="100%" width="100%"> <div class="wiki-content"> -<h1 id="wrapperinstall">wrapper:install</h1><h2 id="Description">Description</h2><p>Install the container as a system service in the OS.</p><h2 id="Syntax">Syntax</h2><p>wrapper:install [options]</p><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> -d, --display </td><td class="confluenceTd"> The display name of the service. </td></tr><tr><td class="confluenceTd"> -s, --start-type </td><td class="confluenceTd"> Mode in which the service is installed. AUTO_START or DEMAND_START (Default: AUTO_START) (defaults to AUTO_START) </td></tr><tr><td class="confluenceTd"> -n, --name </td><td class="confluenceTd"> The service name that will be used when installing the service. (Default: karaf) (defaults to karaf) </td></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td></tr><tr><td class="conf luenceTd"> -D, --description </td><td class="confluenceTd"> The description of the service. (defaults to ) </td></tr></table></div> +<h1 id="wrapperinstall">wrapper:install</h1><h2 id="Description">Description</h2><p>Install the container as a system service in the OS.</p><h2 id="Syntax">Syntax</h2><p>wrapper:install [options]</p><h2 id="Options">Options</h2><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> -d, --display </td><td class="confluenceTd"> The display name of the service. </td></tr><tr><td class="confluenceTd"> --help </td><td class="confluenceTd"> Display this help message </td></tr><tr><td class="confluenceTd"> -s, --start-type </td><td class="confluenceTd"> Mode in which the service is installed. AUTO_START or DEMAND_START (Default: AUTO_START) (defaults to AUTO_START) </td></tr><tr><td class="confluenceTd"> -n, --name </td><td class="confluenceTd"> The service name that will be used when installing the service. (Default: karaf) (defaults to karaf) </td></tr><tr><td class="conf luenceTd"> -D, --description </td><td class="confluenceTd"> The description of the service. (defaults to ) </td></tr></table></div> </div> </td> </tr> Modified: karaf/site/production/manual/latest-2.3.x/developers-guide/archetypes.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/developers-guide/archetypes.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/developers-guide/archetypes.html (original) +++ karaf/site/production/manual/latest-2.3.x/developers-guide/archetypes.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -105,7 +105,7 @@ mvn archetype:generate \ -DarchetypeGroupId=org.apache.karaf.archetypes \ -DartifactId=karaf-command-archetype \ - -DarchetypeVersion=2.3.2 \ + -DarchetypeVersion=2.3.7-SNAPSHOT \ -DgroupId=com.mycompany \ -DartifactId=com.mycompany.command \ -Dversion=1.0-SNAPSHOT \ @@ -123,7 +123,7 @@ mvn archetype:generate \ [INFO] [INFO] --- maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode -[INFO] Archetype repository missing. Using the one from [org.apache.karaf.archetypes:karaf-command-archetype:2.3.2] found in catalog local +[INFO] Archetype repository missing. Using the one from [org.apache.karaf.archetypes:karaf-command-archetype:2.3.7-SNAPSHOT] found in catalog local [INFO] Using property: groupId = com.mycompany [INFO] Using property: artifactId = com.mycompany.command [INFO] Using property: version = 1.0-SNAPSHOT @@ -141,7 +141,7 @@ description: List sample command scope: my Y: : [INFO] ---------------------------------------------------------------------------- -[INFO] Using following parameters for creating project from Archetype: karaf-command-archetype:2.3.2 +[INFO] Using following parameters for creating project from Archetype: karaf-command-archetype:2.3.7-SNAPSHOT [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: com.mycompany [INFO] Parameter: artifactId, Value: com.mycompany.command @@ -168,7 +168,7 @@ scope: my mvn archetype:generate \ -DarchetypeGroupId=org.apache.karaf.archetypes \ -DarchetypeArtifactId=karaf-bundle-archetype \ - -DarchetypeVersion=2.3.2 \ + -DarchetypeVersion=2.3.7-SNAPSHOT \ -DgroupId=com.mycompany \ -DartifactId=com.mycompany.bundle \ -Dversion=1.0-SNAPSHOT \ @@ -221,7 +221,7 @@ package: com.mycompany.package mvn archetype:generate \ -DarchetypeGroupId=org.apache.karaf.archetypes \ -DarchetypeArtifactId=karaf-blueprint-archetype \ - -DarchetypeVersion=2.3.2 \ + -DarchetypeVersion=2.3.7-SNAPSHOT \ -DgroupId=com.mycompany \ -DartifactId=com.mycompany.blueprint \ -Dversion=1.0-SNAPSHOT \ @@ -274,7 +274,7 @@ package: com.mycompany.package mvn archetype:generate \ -DarchetypeGroupId=org.apache.karaf.archetypes \ -DarchetypeArtifactId=karaf-feature-archetype \ - -DarchetypeVersion=2.3.2 \ + -DarchetypeVersion=2.3.7-SNAPSHOT \ -DgroupId=my.company \ -DartifactId=my.company.feature \ -Dversion=1.0-SNAPSHOT \ @@ -327,7 +327,7 @@ package: com.mycompany.package mvn archetype:generate \ -DarchetypeGroupId=org.apache.karaf.archetypes \ -DarchetypeArtifactId=karaf-kar-archetype \ - -DarchetypeVersion=2.3.2 \ + -DarchetypeVersion=2.3.7-SNAPSHOT \ -DgroupId=com.mycompany \ -DartifactId=com.mycompany.kar \ -Dversion=1.0-SNAPSHOT \ Modified: karaf/site/production/manual/latest-2.3.x/developers-guide/branding-console.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/developers-guide/branding-console.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/developers-guide/branding-console.html (original) +++ karaf/site/production/manual/latest-2.3.x/developers-guide/branding-console.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -144,7 +144,7 @@ welcome = \ \u001B[36m / /| |/ /_/ / / / /_/ / __/ \u001B[0m\r\n\ \u001B[36m /_/ |_|\\__,_/_/ \\__,_/_/ \u001B[0m\r\n\ \r\n\ -\u001B[1m Apache Karaf\u001B[0m (2.3.2)\r\n\ +\u001B[1m Apache Karaf\u001B[0m (2.3.7-SNAPSHOT)\r\n\ \r\n\ Hit '\u001B[1m<tab>\u001B[0m' for a list of available commands\r\n\ and '\u001B[1m[cmd] --help\u001B[0m' for help on a specific command.\r\n\ Modified: karaf/site/production/manual/latest-2.3.x/developers-guide/connect-console.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/developers-guide/connect-console.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/developers-guide/connect-console.html (original) +++ karaf/site/production/manual/latest-2.3.x/developers-guide/connect-console.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -101,46 +101,7 @@ </td> <td height="100%" width="100%"> <div class="wiki-content"> -<h1 id="Programmaticallyconnecttotheconsole">Programmatically connect to the console</h1><p>A connection to the Karaf console can also be done programmatically.<br/>The following code is a simplified version of the code from the client library.</p><div class="syntax"><pre name='code' class='brush: java; gutter: false;'><code> -import org.apache.sshd.ClientChannel; -import org.apache.sshd.ClientSession; -import org.apache.sshd.SshClient; -import org.apache.sshd.client.future.ConnectFuture; - -public class Main { - - public static void main(String[] args) throws Exception { - String host = "localhost"; - int port = 8101; - String user = "karaf"; - String password = "karaf"; - - SshClient client = null; - try { - client = SshClient.setUpDefaultClient(); - client.start(); - ConnectFuture future = client.connect(host, port); - future.await(); - ClientSession session = future.getSession(); - session.authPassword(user, password); - ClientChannel channel = session.createChannel("shell"); - channel.setIn(System.in); - channel.setOut(System.out); - channel.setErr(System.err); - channel.open(); - channel.waitFor(ClientChannel.CLOSED, 0); - } catch (Throwable t) { - t.printStackTrace(); - System.exit(1); - } finally { - try { - client.stop(); - } catch (Throwable t) { } - } - System.exit(0); - } - -}</code></pre></div><p>You can find a more complete example at the <a href="http://svn.apache.org/repos/asf/karaf/trunk/client/src/main/java/org/apache/karaf/client/Main.java">following location</a>.</p> +<h1 id="Programmaticallyconnecttotheconsole">Programmatically connect to the console</h1><p>A connection to the Karaf console can also be done programmatically.<br/>The following code is a simplified version of the code from the client library.</p><div class="syntax"><div class="highlight"><pre><span class="kn">import</span> <span class="nn">org.apache.sshd.ClientChannel</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.apache.sshd.ClientSession</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.apache.sshd.SshClient</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.apache.sshd.client.future.ConnectFuture</span><span class="o">;</span>

<span class="kd">public</span> <span class="kd">class</span> <span class="nc">Main</span> <span class="o">{</span>

 <span class="kd">public</span> <span class="kd">static</span> <span class="kt">void</ span> <span class="nf">main</span><span class="o">(</span><span class="n">String</span><span class="o">[]</span> <span class="n">args</span><span class="o">)</span> <span class="kd">throws</span> <span class="n">Exception</span> <span class="o">{</span>
 <span class="n">String</span> <span class="n">host</span> <span class="o">=</span> <span class="s">"localhost"</span><span class="o">;</span>
 <span class="kt">int</span> <span class="n">port</span> <span class="o">=</span> <span class="mi">8101</span><span class="o">;</span>
 <span class="n">String</span> <span class="n">user</span> <span class="o">=</span> <span class="s">"karaf"</span><span class="o">;</span>
 <span class="n">String</span> <span class="n">password</span> <span class="o">=</span> <span class="s">"karaf"</span><span class="o">;</span>

 <span class="n">SshClient</span> <span class="n">client</span> <span class ="o">=</span> <span class="kc">null</span><span class="o">;</span>
 <span class="k">try</span> <span class="o">{</span>
 <span class="n">client</span> <span class="o">=</span> <span class="n">SshClient</span><span class="o">.</span><span class="na">setUpDefaultClient</span><span class="o">();</span>
 <span class="n">client</span><span class="o">.</span><span class="na">start</span><span class="o">();</span>
 <span class="n">ConnectFuture</span> <span class="n">future</span> <span class="o">=</span> <span class="n">client</span><span class="o">.</span><span class="na">connect</span><span class="o">(</span><span class="n">host</span><span class="o">,</span> <span class="n">port</span><span class="o">);</span>
 <span class="n">future</span><span class="o">.</span><span class="na">await</span><span class="o">();</span>
 <span class="n">ClientSession</span> <span class="n">session</spa n> <span class="o">=</span> <span class="n">future</span><span class="o">.</span><span class="na">getSession</span><span class="o">();</span>
 <span class="n">session</span><span class="o">.</span><span class="na">authPassword</span><span class="o">(</span><span class="n">user</span><span class="o">,</span> <span class="n">password</span><span class="o">);</span>
 <span class="n">ClientChannel</span> <span class="n">channel</span> <span class="o">=</span> <span class="n">session</span><span class="o">.</span><span class="na">createChannel</span><span class="o">(</span><span class="s">"shell"</span><span class="o">);</span>
 <span class="n">channel</span><span class="o">.</span><span class="na">setIn</span><span class="o">(</span><span class="n">System</span><span class="o">.</span><span class="na">in</span><span class="o">);</span>
 <span class="n">channel</span><span class="o">.</span><span class="na" >setOut</span><span class="o">(</span><span class="n">System</span><span >class="o">.</span><span class="na">out</span><span >class="o">);</span>
 <span class="n">channel</span><span >class="o">.</span><span class="na">setErr</span><span class="o">(</span><span >class="n">System</span><span class="o">.</span><span >class="na">err</span><span class="o">);</span>
 <span >class="n">channel</span><span class="o">.</span><span >class="na">open</span><span class="o">();</span>
 <span >class="n">channel</span><span class="o">.</span><span >class="na">waitFor</span><span class="o">(</span><span >class="n">ClientChannel</span><span class="o">.</span><span >class="na">CLOSED</span><span class="o">,</span> <span >class="mi">0</span><span class="o">);</span>
 <span >class="o">}</span> <span class="k">catch</span> <span class="o">(</span><span >class="n">Throwable</span> <span class="n">t</span><span class="o">)</span> ><span class="o">{</span >
 <span class="n">t</span><span class="o">.</span><span >class="na">printStackTrace</span><span class="o">();</span>
 > <span class="n">System</span><span class="o">.</span><span >class="na">exit</span><span class="o">(</span><span class="mi">1</span><span >class="o">);</span>
 <span class="o">}</span> <span >class="k">finally</span> <span class="o">{</span>
 <span >class="k">try</span> <span class="o">{</span>
 <span >class="n">client</span><span class="o">.</span><span >class="na">stop</span><span class="o">();</span>
 <span >class="o">}</span> <span class="k">catch</span> <span class="o">(</span><span >class="n">Throwable</span> <span class="n">t</span><span class="o">)</span> ><span class="o">{</span> <span class="o">}</span>
 <span >class="o">}</span>
 <span class="n">System</span><span >class="o">.</span><span class="na">exit</span><span class="o">(</span> <span class="mi">0</span><span class="o">);</span>
 <span class="o">}</span>

<span class="o">}</span>
</pre></div>
</div><p>You can find a more complete example at the <a href="http://svn.apache.org/repos/asf/karaf/trunk/client/src/main/java/org/apache/karaf/client/Main.java">following location</a>.</p> </div> </td> </tr> Modified: karaf/site/production/manual/latest-2.3.x/developers-guide/creating-bundles.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/developers-guide/creating-bundles.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/developers-guide/creating-bundles.html (original) +++ karaf/site/production/manual/latest-2.3.x/developers-guide/creating-bundles.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -118,7 +118,7 @@ <build> <resources> <resource> - <directory>/x1/asf/karaf-2.3.x/manual/src/main/resources</directory> + <directory>/home/jbonofre/Workspace/karaf/manual/src/main/resources</directory> <filtering>true</filtering> <includes> <include>**/*</include> Modified: karaf/site/production/manual/latest-2.3.x/developers-guide/custom-distribution.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/developers-guide/custom-distribution.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/developers-guide/custom-distribution.html (original) +++ karaf/site/production/manual/latest-2.3.x/developers-guide/custom-distribution.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -119,13 +119,13 @@ <dependency> <groupId>org.apache.karaf</groupId> <artifactId>apache-karaf</artifactId> - <version>2.3.2</version> + <version>2.3.7-SNAPSHOT</version> <type>tar.gz</type> </dependency> <dependency> <groupId>org.apache.karaf.assemblies.features</groupId> <artifactId>standard</artifactId> - <version>2.3.2</version> + <version>2.3.7-SNAPSHOT</version> <type>xml</type> <classifier>features</classifier> </dependency> @@ -134,7 +134,7 @@ <build> <resources> <resource> - <directory>/x1/asf/karaf-2.3.x/manual/src/main/filtered-resources</directory> + <directory>/home/jbonofre/Workspace/karaf/manual/src/main/filtered-resources</directory> <filtering>true</filtering> <includes> <include>**/*</include> @@ -158,7 +158,7 @@ <plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>features-maven-plugin</artifactId> - <version>2.3.2</version> + <version>2.3.7-SNAPSHOT</version> <executions> <execution> <id>add-features-to-repo</id> @@ -168,8 +168,8 @@ </goals> <configuration> <descriptors> - <descriptor>mvn:org.apache.karaf.assemblies.features/standard/2.3.2/xml/features</descriptor> - <descriptor>file:/x1/asf/karaf-2.3.x/manual/target/classes/my-features.xml</descriptor> + <descriptor>mvn:org.apache.karaf.assemblies.features/standard/2.3.7-SNAPSHOT/xml/features</descriptor> + <descriptor>file:/home/jbonofre/Workspace/karaf/manual/target/classes/my-features.xml</descriptor> </descriptors> <features> <feature>my-feature</feature> @@ -250,7 +250,7 @@ # # Comma separated list of features repositories to register by default # -featuresRepositories=mvn:org.apache.karaf/apache-karaf/2.3.2/xml/features,mvn:my.groupId/my-features/2.3.2/xml/features +featuresRepositories=mvn:org.apache.karaf/apache-karaf/2.3.7-SNAPSHOT/xml/features,mvn:my.groupId/my-features/2.3.7-SNAPSHOT/xml/features # # Comma separated list of features to install at startup @@ -361,7 +361,7 @@ org.osgi.framework.system.packages.extra <!-- Expanded Karaf Standard Distribution --> <fileSet> - <directory>target/dependencies/apache-karaf-2.3.2</directory> + <directory>target/dependencies/apache-karaf-2.3.7-SNAPSHOT</directory> <outputDirectory>/</outputDirectory> <excludes> <exclude>**/demos/**</exclude> @@ -381,7 +381,7 @@ org.osgi.framework.system.packages.extra <!-- Copy over bin/* separately to get the correct file mode --> <fileSet> - <directory>target/dependencies/apache-karaf-2.3.2</directory> + <directory>target/dependencies/apache-karaf-2.3.7-SNAPSHOT</directory> <outputDirectory>/</outputDirectory> <includes> <include>bin/admin</include> @@ -422,16 +422,16 @@ org.osgi.framework.system.packages.extra <files> <file> - <source>/x1/asf/karaf-2.3.x/manual/target/dependencies/apache-karaf-2.3.2/bin/karaf</source> + <source>/home/jbonofre/Workspace/karaf/manual/target/dependencies/apache-karaf-2.3.7-SNAPSHOT/bin/karaf</source> <outputDirectory>/bin/</outputDirectory> <destName>my-custom</destName> <fileMode>0755</fileMode> <lineEnding>unix</lineEnding> </file> <file> - <source>/x1/asf/karaf-2.3.x/manual/target/classes/features.xml</source> - <outputDirectory>/system/my.groupid/my-features/2.3.2</outputDirectory> - <destName>my-features-2.3.2-features.xml</destName> + <source>/home/jbonofre/Workspace/karaf/manual/target/classes/features.xml</source> + <outputDirectory>/system/my.groupid/my-features/2.3.7-SNAPSHOT</outputDirectory> + <destName>my-features-2.3.7-SNAPSHOT-features.xml</destName> <fileMode>0644</fileMode> <lineEnding>unix</lineEnding> </file> Modified: karaf/site/production/manual/latest-2.3.x/developers-guide/debugging.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/developers-guide/debugging.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/developers-guide/debugging.html (original) +++ karaf/site/production/manual/latest-2.3.x/developers-guide/debugging.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -117,9 +117,14 @@ or on Windows export DEFAULT_JAVA_DEBUG_OPTS='-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005' </pre><p>and on Windows,</p><pre> set DEFAULT_JAVA_DEBUG_OPTS='-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005' -</pre><h2 id="Profiling">Profiling</h2><h3 id="YourKit">YourKit</h3><p>You need a few steps to be able to profile Karaf using YourKit.<br/>The first one is to edit the <tt>etc/config.properties</tt> configuration file and add the following property:</p><pre>org.osgi.framework.bootdelegation=com.yourkit.* -</pre><p>Then, set the <tt>JAVA_OPTS</tt> environment variable:</p><pre>export JAVA_OPTS='-Xmx512M -agentlib:yjpagent' -</pre><p>or, on Windows</p><pre>set JAVA_OPTS='-Xmx512M -agentlib:yjpagent' +</pre><h2 id="Profiling">Profiling</h2><h3 id="jVisualVM">jVisualVM</h3><p>You have to edit the <tt>etc/config.properties</tt> configuration file to add the jVisualVM package:</p><pre> +org.osgi.framework.bootdelegation=...,org.netbeans.lib.profiler.server +</pre><p>Run Karaf from the console, and you should now be able to connect using jVisualVM.</p><h3 id="YourKit">YourKit</h3><p>You need a few steps to be able to profile Karaf using YourKit.<br/>The first one is to edit the <tt>etc/config.properties</tt> configuration file and add the following property:</p><pre> +org.osgi.framework.bootdelegation=com.yourkit.* +</pre><p>Then, set the <tt>JAVA_OPTS</tt> environment variable:</p><pre> +export JAVA_OPTS='-Xmx512M -agentlib:yjpagent' +</pre><p>or, on Windows</p><pre> +set JAVA_OPTS='-Xmx512M -agentlib:yjpagent' </pre><p>Run Karaf from the console, and you should now be able to connect using YourKit standalone or from your favorite IDE.</p><h2 id="Monitoring">Monitoring</h2><p>Karaf uses JMX for monitoring and management of all Karaf components.</p><p>The JMX connection could be:</p><ul><li>local using the process id</li></ul><p><img border="1" src="../images/jconsole_connect.jpg"/></p><ul><li>remote using the <tt>rmiRegistryPort</tt> property defined in <tt>etc/org.apache.karaf.management.cfg</tt> file.</li></ul><p>Using JMX, you can have a clean overview of the running Karaf instance:</p><ul><li>A overview with graphics displaying the load in terms of thread, heap/GC, etc:</li></ul><p><img border="1" src="../images/jconsole_overview.jpg"/></p><ul><li>A thread overview:</li></ul><p><img border="1" src="../images/jconsole_threads.jpg"/></p><ul><li>A memory heap consumption, including "Perform GC" button:</li></ul><p><img border="1" src="../images/jconsole_memory.jpg"/></p><ul><li>A complete JVM summary, with all number of threads, etc:</li></ul><p><img border="1" src="../images/jconsole_summary.jpg"/></p><p>You can manage Karaf features like you are in the shell. For example, you have access to the Admin service MBean, allowing you to create, rename, destroy, change SSH port, etc. Karaf instances:</p><p><img border="1" src="../images/jconsole_admin.jpg"/></p><p>You can also manage Karaf features MBean to list, install, and uninstall Karaf features:</p><p><img border="1" src="../images/jconsole_features.jpg"/></p> </div> </td> Modified: karaf/site/production/manual/latest-2.3.x/developers-guide/developer-commands.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/developers-guide/developer-commands.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/developers-guide/developer-commands.html (original) +++ karaf/site/production/manual/latest-2.3.x/developers-guide/developer-commands.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> Modified: karaf/site/production/manual/latest-2.3.x/developers-guide/extending-console.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/developers-guide/extending-console.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/developers-guide/extending-console.html (original) +++ karaf/site/production/manual/latest-2.3.x/developers-guide/extending-console.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -115,94 +115,13 @@ Define value for groupId: : org.apache.k Define value for artifactId: : shell-sample-commands Define value for version: 1.0-SNAPSHOT: : Define value for package: : org.apache.karaf.shell.samples -</pre><h3 id="Manualcreation">Manual creation</h3><p>Alternatively, you can simply create the directory <tt>shell-sample-commands</tt> and create the <tt>pom.xml</tt> file inside it:</p><div class="syntax"><pre name='code' class='brush: xml; gutter: false;'><code> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.karaf.shell.samples</groupId> - <artifactId>shell-sample-commands<artifactId> - <packaging>bundle</packaging> - <version>1.0-SNAPSHOT</version> - <name>shell-sample-commmands</name> - - - <dependencies> - <dependency> - <groupId>org.apache.karaf.shell</groupId> - <artifactId>org.apache.karaf.shell.console</artifactId> - <version>2.3.2</version> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.felix</groupId> - <artifactId>maven-bundle-plugin</artifactId> - <version>2.3.7</version> - <configuration> - <instructions> - <Import-Package> - org.apache.felix.service.command, - org.apache.felix.gogo.commands, - org.apache.karaf.shell.console, - * - </Import-Package> - </instructions> - </configuration> - </plugin> - </plugins> - </build> - -</project></code></pre></div><h2 id="ConfiguringforJava5">Configuring for Java 5</h2><p>We are using annotations to define commands, so we need to ensure Maven will actually use JDK 1.5 to compile the jar.<br/>Just add the following snippet after the <tt>dependencies</tt> section.</p><div class="syntax"><pre name='code' class='brush: xml; gutter: false;'><code> -<build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <target>1.5</target> - <source>1.5</source> - </configuration> - </plugin> - </plugins> -</build></code></pre></div><h2 id="LoadingtheprojectinyourIDE">Loading the project in your IDE</h2><p>We can use Maven to generate the needed files for your IDE:</p><p>Inside the project, run the following command</p><pre> +</pre><h3 id="Manualcreation">Manual creation</h3><p>Alternatively, you can simply create the directory <tt>shell-sample-commands</tt> and create the <tt>pom.xml</tt> file inside it:</p><div class="syntax"><div class="highlight"><pre><span class="nt"><project</span> <span class="na">xmlns=</span><span class="s">"http://maven.apache.org/POM/4.0.0"</span> <span class="na">xmlns:xsi=</span><span class="s">"http://www.w3.org/2001/XMLSchema-instance"</span> <span class="na">xsi:schemaLocation=</span><span class="s">"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"</span><span class="nt">></span>

 <span class="nt"><modelVersion></span>4.0.0<span class="nt"></modelVersion></span>

 <span class="nt"><groupId></span>org.apache.karaf.shell.samples<span class="nt"></groupId></span>
 <span class="nt"><artifactId></span>shell-sample-commands<span class="nt"><a rtifactId></span>
 <span class="nt"><packaging></span>bundle<span class="nt"></packaging></span>
 <span class="nt"><version></span>1.0-SNAPSHOT<span class="nt"></version></span>
 <span class="nt"><name></span>shell-sample-commmands<span class="nt"></name></span>


 <span class="nt"><dependencies></span>
 <span class="nt"><dependency></span>
 <span class="nt"><groupId></span>org.apache.karaf.shell<span class="nt"></groupId></span>
 <span class="nt"><artifactId></span>org.apache.karaf.shell.console<span class="nt"></artifactId></span>
 <span class="nt"><version></span>2.3.7-SNAPSHOT<span class="nt"></version></span>
 <span class="nt"></dependency></span>
 <span class="nt"><dependency></span>
 <span class="nt"><groupId></span>junit<span class="nt"></groupId& gt;</span>
 <span class="nt"><artifactId></span>junit<span class="nt"></artifactId></span>
 <span class="nt"><version></span>3.8.1<span class="nt"></version></span>
 <span class="nt"><scope></span>test<span class="nt"></scope></span>
 <span class="nt"></dependency></span>
 <span class="nt"></dependencies></span>

 <span class="nt"><build></span>
 <span class="nt"><plugins></span>
 <span class="nt"><plugin></span>
 <span class="nt"><groupId></span>org.apache.felix<span class="nt"></groupId></span>
 <span class="nt"><artifactId></span>maven-bundle-plugin<span class="nt"></artifactId></span>
 <span class="nt"><version></span>2.4.0<span class="nt"></version></span>
 <span class="nt"><configuration></span>
 <span class="n t"><instructions></span>
 <span class="nt"><Import-Package></span>
 org.apache.felix.service.command,
 org.apache.felix.gogo.commands,
 org.apache.karaf.shell.console,
 *
 <span class="nt"></Import-Package></span>
 <span class="nt"></instructions></span>
 <span class="nt"></configuration></span>
 <span class="nt"></plugin></span>
 <span class="nt"></plugins></span>
 <span class="nt"></build></span>

<span class="nt"></project></span>
</pre></div>
</div><h2 id="ConfiguringforJava5">Configuring for Java 5</h2><p>We are using annotations to define commands, so we need to ensure Maven will actually use JDK 1.5 to compile the jar.<br/>Just add the following snippet after the <tt>dependencies</tt> section.</p><div class="syntax"><div c lass="highlight"><pre><span class="nt"><build></span>
 <span class="nt"><plugins></span>
 <span class="nt"><plugin></span>
 <span class="nt"><groupId></span>org.apache.maven.plugins<span class="nt"></groupId></span>
 <span class="nt"><artifactId></span>maven-compiler-plugin<span class="nt"></artifactId></span>
 <span class="nt"><configuration></span>
 <span class="nt"><target></span>1.5<span class="nt"></target></span>
 <span class="nt"><source></span>1.5<span class="nt"></source></span>
 <span class="nt"></configuration></span>
 <span class="nt"></plugin></span>
 <span class="nt"></plugins></span>
<span class="nt"></build></span>
</pre></div>
</div><h2 id="LoadingtheprojectinyourIDE">Loading the project in your IDE</h2><p>We can use Maven to generate the ne eded files for your IDE:</p><p>Inside the project, run the following command</p><pre> mvn eclipse:eclipse </pre><p>or</p><pre> mvn idea:idea -</pre><p>The project files for your IDE should now be created. Just open the IDE and load the project.</p><h2 id="Creatingabasiccommandclass">Creating a basic command class</h2><p>We can now create the command class <tt>HelloShellCommand.java</tt></p><div class="syntax"><pre name='code' class='brush: java; gutter: false;'><code> -package org.apache.karaf.shell.samples; - -import org.apache.felix.gogo.commands.Command; -import org.apache.karaf.shell.console.OsgiCommandSupport; - -@Command(scope = "test", name = "hello", description="Says hello") -public class HelloShellCommand extends OsgiCommandSupport { - - @Override - protected Object doExecute() throws Exception { - System.out.println("Executing Hello command"); - return null; - } -}</code></pre></div><h2 id="Creatingtheassociatedblueprintconfigurationfiles">Creating the associated blueprint configuration files</h2><p>The blueprint configuration file will be used to create the command and register it in the OSGi registry, which is the way to make the command available to Karaf console. This blueprint file must be located in the <tt>OSGI-INF/blueprint/</tt> directory inside the bundle.</p><p>If you don't have the <tt>src/main/resources</tt> directory yet, create it.</p><pre> +</pre><p>The project files for your IDE should now be created. Just open the IDE and load the project.</p><h2 id="Creatingabasiccommandclass">Creating a basic command class</h2><p>We can now create the command class <tt>HelloShellCommand.java</tt></p><div class="syntax"><div class="highlight"><pre><span class="kn">package</span> <span class="n">org</span><span class="o">.</span><span class="na">apache</span><span class="o">.</span><span class="na">karaf</span><span class="o">.</span><span class="na">shell</span><span class="o">.</span><span class="na">samples</span><span class="o">;</span>

<span class="kn">import</span> <span class="nn">org.apache.felix.gogo.commands.Command</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.apache.karaf.shell.console.OsgiCommandSupport</span><span class="o">;</span>

<span class="nd">@Command</span><span class="o">(</span><span class="n">scope</span> <span class="o">=</span> <span class="s">"test"</span><span class="o">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s">"hello"</span><span class="o">,</span> <span class="n">description</span><span class="o">=</span><span class="s">"Says hello"</span><span class="o">)</span>
<span class="kd">public</span> <span class="kd">class</span> <span class="nc">HelloShellCommand</span> <span class="kd">extends</span> <span class="n">OsgiCommandSupport</span> <span class="o">{</span>

 <span class="nd">@Override</span>
 <span class="kd">protected</span> <span class="n">Object</span> <span class="nf">doExecute</span><span class="o">()</span> <span class="kd">throws</span> <span class="n">Exception</span> <span class="o">{</span>
 <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">"Executing H ello command"</span><span class="o">);</span>
 <span class="k">return</span> <span class="kc">null</span><span class="o">;</span>
 <span class="o">}</span>
<span class="o">}</span>
</pre></div>
</div><h2 id="Creatingtheassociatedblueprintconfigurationfiles">Creating the associated blueprint configuration files</h2><p>The blueprint configuration file will be used to create the command and register it in the OSGi registry, which is the way to make the command available to Karaf console. This blueprint file must be located in the <tt>OSGI-INF/blueprint/</tt> directory inside the bundle.</p><p>If you don't have the <tt>src/main/resources</tt> directory yet, create it.</p><pre> mkdir src/main/resources -</pre><p>Then, re-generate the IDE project files and reload it so that this folder is now recognized as a source folder.</p><p>Inside this directory, create the <tt>OSGI-INF/blueprint/</tt> directory and put the following file inside (the name of this file has no impact at all):</p><div class="syntax"><pre name='code' class='brush: xml; gutter: false;'><code> -<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"> - - <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0"> - <command name="test/hello"> - <action class="org.apache.karaf.shell.samples.HelloShellCommand"/> - </command> - </command-bundle> - -</blueprint></code></pre></div><h2 id="Compilingthejar">Compiling the jar</h2><p>Let's try to build the jar. Remove the test classes and sample classes if you used the artifact, then from the command line, run:</p><pre> +</pre><p>Then, re-generate the IDE project files and reload it so that this folder is now recognized as a source folder.</p><p>Inside this directory, create the <tt>OSGI-INF/blueprint/</tt> directory and put the following file inside (the name of this file has no impact at all):</p><div class="syntax"><div class="highlight"><pre><span class="nt"><blueprint</span> <span class="na">xmlns=</span><span class="s">"http://www.osgi.org/xmlns/blueprint/v1.0.0"</span><span class="nt">></span>

 <span class="nt"><command-bundle</span> <span class="na">xmlns=</span><span class="s">"http://karaf.apache.org/xmlns/shell/v1.0.0"</span><span class="nt">></span>
 <span class="nt"><command</span> <span class="na">name=</span><span class="s">"test/hello"</span><span class="nt">></span>
 <span class="nt"><action</span> <span class="na">class=</span><span class="s">"org.apache.karaf.shell.samples.Hel loShellCommand"</span><span class="nt">/></span>
 <span class="nt"></command></span>
 <span class="nt"></command-bundle></span>

<span class="nt"></blueprint></span>
</pre></div>
</div><h2 id="Compilingthejar">Compiling the jar</h2><p>Let's try to build the jar. Remove the test classes and sample classes if you used the artifact, then from the command line, run:</p><pre> mvn install </pre><p>The end of the maven output should look like:</p><pre> [INFO] ------------------------------------------------------------------------ Modified: karaf/site/production/manual/latest-2.3.x/developers-guide/features-maven-plugin-add.html URL: http://svn.apache.org/viewvc/karaf/site/production/manual/latest-2.3.x/developers-guide/features-maven-plugin-add.html?rev=1615948&r1=1615947&r2=1615948&view=diff ============================================================================== --- karaf/site/production/manual/latest-2.3.x/developers-guide/features-maven-plugin-add.html (original) +++ karaf/site/production/manual/latest-2.3.x/developers-guide/features-maven-plugin-add.html Tue Aug 5 15:46:54 2014 @@ -8,7 +8,7 @@ <link href="../css/style.css" rel="stylesheet" type="text/css"/> <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/> <title> - Apache Karaf 2.3.2 Guides + Apache Karaf 2.3.7-SNAPSHOT Guides </title> </head> <body> @@ -101,40 +101,7 @@ </td> <td height="100%" width="100%"> <div class="wiki-content"> -<h2 id="Goalfeaturesaddfeaturestorepo">Goal <tt>features:add-features-to-repo</tt></h2><p>The <tt>features:add-features-to-repo</tt> goal adds all the required bundles for a given set of features into directory. You can use this goal to create a <tt>/system</tt> directory for building your own Karaf-based distribution.</p><p>By default, the Karaf core features descriptors (standard and enterprise) are automatically included in the descriptors set.</p><h3 id="Example">Example</h3><p>The example below copies the bundles for the <tt>spring</tt> and <tt>war</tt> features defined in the Karaf features XML descriptor into the <tt>target/features-repo</tt> directory.</p><div class="syntax"><pre name='code' class='brush: xml; gutter: false;'><code> -<project> - <build> - <plugins> - <plugin> - <groupId>org.apache.karaf.tooling</groupId> - <artifactId>features-maven-plugin</artifactId> - <version>2.3.2</version> - - <executions> - <execution> - <id>add-features-to-repo</id> - <phase>generate-resources</phase> - <goals> - <goal>add-features-to-repo</goal> - </goals> - <configuration> - <descriptors> - <descriptor>mvn:my.groupid/my.artifactid/1.0.0/xml/features</descriptor> - </descriptors> - <features> - <feature>spring</feature> - <feature>war</feature> - <feature>my</feature> - <feature>other/1.0-SNAPSHOT</feature> - </features> - <repository>target/features-repo</repository> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> -</project></code></pre></div><h3 id="Parameters">Parameters</h3><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> <tt>descriptors</tt> </td><td class="confluenceTd"> <tt>String[]</tt> </td><td class="confluenceTd"> List of features XML descriptors where the features are defined <br/> NB: Karaf core features descriptors (standard and enterprise) are automatically added in this list </td></tr><tr><td class="confluenceTd"> <tt>features</tt> </td><td class="confluenceTd"> <tt>String[]</tt> </td><td class="confluenceTd"> List of features that bundles should be copied to the repository directory. A feature could be just a feature name or a name/version. If it's just a name, the features-maven-plugin will take the first feature with the given name, whatever the version is. </td></tr><tr><td class="confluenceTd"> <tt>repository< /tt> </td><td class="confluenceTd"> <tt>File</tt> </td><td class="confluenceTd"> The directory where the bundles will be copied by the plugin goal </td></tr><tr><td class="confluenceTd"> <tt>karafVersion</tt> </td><td class="confluenceTd"> <tt>String</tt> </td><td class="confluenceTd"> Target Karaf version to use to resolve the Karaf core features descriptors (standard and enterprise) </td></tr></table></div> +<h2 id="Goalfeaturesaddfeaturestorepo">Goal <tt>features:add-features-to-repo</tt></h2><p>The <tt>features:add-features-to-repo</tt> goal adds all the required bundles for a given set of features into directory. You can use this goal to create a <tt>/system</tt> directory for building your own Karaf-based distribution.</p><p>By default, the Karaf core features descriptors (standard and enterprise) are automatically included in the descriptors set.</p><h3 id="Example">Example</h3><p>The example below copies the bundles for the <tt>spring</tt> and <tt>war</tt> features defined in the Karaf features XML descriptor into the <tt>target/features-repo</tt> directory.</p><div class="syntax"><div class="highlight"><pre><span class="nt"><project></span>
 <span class="nt"><build></span>
 <span class="nt"><plugins></span>
 <span class="nt"><plugin></span>
 <span class="nt"><groupId></span>org.apache.karaf.tooling<span cl ass="nt"></groupId></span>
 <span class="nt"><artifactId></span>features-maven-plugin<span class="nt"></artifactId></span>
 <span class="nt"><version></span>2.3.7-SNAPSHOT<span class="nt"></version></span>

 <span class="nt"><executions></span>
 <span class="nt"><execution></span>
 <span class="nt"><id></span>add-features-to-repo<span class="nt"></id></span>
 <span class="nt"><phase></span>generate-resources<span class="nt"></phase></span>
 <span class="nt"><goals></span>
 <span class="nt"><goal></span>add-features-to-repo<span class="nt"></goal></span>
 <span class="nt"></goals></span>
 <span class="nt"><configuration></span>
 <span class="nt"><descriptors></span>
 <sp an class="nt"><descriptor></span>mvn:my.groupid/my.artifactid/1.0.0/xml/features<span class="nt"></descriptor></span>
 <span class="nt"></descriptors></span>
 <span class="nt"><features></span>
 <span class="nt"><feature></span>spring<span class="nt"></feature></span>
 <span class="nt"><feature></span>war<span class="nt"></feature></span>
 <span class="nt"><feature></span>my<span class="nt"></feature></span>
 <span class="nt"><feature></span>other/1.0-SNAPSHOT<span class="nt"></feature></span>
 <span class="nt"></features></span>
 <span class="nt"><repository></span>target/features-repo<span class="nt"></repository></span>
 <span class="nt"></configuration></span>
 <span class="nt"></exe cution></span>
 <span class="nt"></executions></span>
 <span class="nt"></plugin></span>
 <span class="nt"></plugins></span>
 <span class="nt"></build></span> 
<span class="nt"></project></span>
</pre></div>
</div><h3 id="Parameters">Parameters</h3><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Name </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> <tt>descriptors</tt> </td><td class="confluenceTd"> <tt>String[]</tt> </td><td class="confluenceTd"> List of features XML descriptors where the features are defined <br/> NB: Karaf core features descriptors (standard and enterprise) are automatically added in this list </td></tr><tr><td class="confluenceTd"> <tt>features</tt> </td><td class="confluenceTd"> <tt>String[]</tt> </td><td class="confluenceTd"> List of features that bundles sh ould be copied to the repository directory. A feature could be just a feature name or a name/version. If it's just a name, the features-maven-plugin will take the first feature with the given name, whatever the version is. </td></tr><tr><td class="confluenceTd"> <tt>repository</tt> </td><td class="confluenceTd"> <tt>File</tt> </td><td class="confluenceTd"> The directory where the bundles will be copied by the plugin goal </td></tr><tr><td class="confluenceTd"> <tt>karafVersion</tt> </td><td class="confluenceTd"> <tt>String</tt> </td><td class="confluenceTd"> Target Karaf version to use to resolve the Karaf core features descriptors (standard and enterprise) </td></tr></table></div> </div> </td> </tr>
