diff options
author | liamfallon <liam.fallon@est.tech> | 2020-10-16 13:09:11 +0100 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2020-10-16 13:09:16 +0100 |
commit | 0cf967c0239a8ab9c8b8831b700b72d9a08f7b03 (patch) | |
tree | a4fbcd97008769d55ac443bc22abf517308bf6a7 /tools/tools-common/src/site-docs/adoc/fragments/example-cli-version.adoc | |
parent | 9833876720ff14517ee78bda557e6021df723800 (diff) |
Remove apex asciidoc documents
Apex documentation has now all been ported to use the ONAP recommended
rst format. This review removes the old asciidoc documents.
Issue-ID: POLICY-2824
Change-Id: I562bd344cb7d6ff36e7d54bdb8f95e3b656468f8
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'tools/tools-common/src/site-docs/adoc/fragments/example-cli-version.adoc')
-rw-r--r-- | tools/tools-common/src/site-docs/adoc/fragments/example-cli-version.adoc | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/tools/tools-common/src/site-docs/adoc/fragments/example-cli-version.adoc b/tools/tools-common/src/site-docs/adoc/fragments/example-cli-version.adoc deleted file mode 100644 index 178799c44..000000000 --- a/tools/tools-common/src/site-docs/adoc/fragments/example-cli-version.adoc +++ /dev/null @@ -1,50 +0,0 @@ -// -// ============LICENSE_START======================================================= -// Copyright (C) 2016-2018 Ericsson. All rights reserved. -// ================================================================================ -// This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE -// Full license text at https://creativecommons.org/licenses/by/4.0/legalcode -// -// SPDX-License-Identifier: CC-BY-4.0 -// ============LICENSE_END========================================================= -// -// @author Sven van der Meer (sven.van.der.meer@ericsson.com) -// - -== Autoversioning an Application - -The APEX utilities project provides means to versioning an application automatically towards the APEX version it is written for. -This is realized by generating a file called `app-version.txt` that includes the Maven project version. -This file is then automatically deployed in the folder `etc` of a full APEX distribution. -The CLI Parser here provides a mthod to access this version for an application. - -First, create a new CLI Parser object, add some options (in the example an option for version, but any options will do), then parse the command line: - -[source,java,linenums,subs="attributes+"] ----- -include::{adsite-tools-common-dir}/test/java/org/onap/policy/apex/tools/common/docs/ExampleAppVersionTest.java[tags=setupParser,indent=0] ----- - -Next, we check if the version option was used in the command line and print application name and version if it was used: - -[source,java,linenums,subs="attributes+"] ----- -include::{adsite-tools-common-dir}/test/java/org/onap/policy/apex/tools/common/docs/ExampleAppVersionTest.java[tags=processCliVersion,indent=0] ----- - -The output will be: - -[source,sh,subs="attributes+"] ----- -myApp {release-version} ----- - -The auto-version information comes from the method call `cli.getAppVersion()` in line 2 in the example above. -The method is defined in the `CliParser` class as: - -[source,java,linenums,subs="attributes+"] ----- -include::{adsite-tools-common-dir}/main/java/org/onap/policy/apex/tools/common/CliParser.java[tags=cliParserVersion,indent=0] ----- - -The file `app-version.txt` is automatically added to an APEX full distribution, as described above (for details on this see the POM files in the APEX application packaging projects). |