1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
From 59dd3a7450a57a8cf9f4d298df664348a9ef1af8 Mon Sep 17 00:00:00 2001
From: smehringer <svenja.mehringer@fu-berlin.de>
Date: Mon, 12 Feb 2018 16:46:04 +0000
Subject: [PATCH] [INTERNAL] Fix ctd output: add ctdVersion tag in header.
---
include/seqan/arg_parse/arg_parse_ctd_support.h | 2 +-
tests/arg_parse/test_app.ctd | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/seqan/arg_parse/arg_parse_ctd_support.h b/include/seqan/arg_parse/arg_parse_ctd_support.h
index 9125fd78b..a2164604f 100644
--- a/include/seqan/arg_parse/arg_parse_ctd_support.h
+++ b/include/seqan/arg_parse/arg_parse_ctd_support.h
@@ -377,7 +377,7 @@ writeCTD(ArgumentParser const & me, std::ostream & ctdfile)
}
ctdfile << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
- ctdfile << "<tool name=\"" << class_name << "\" version=\"" << xmlEscape(getVersion(me)) << "\" docurl=\"http://www.seqan.de\" category=\"" << xmlEscape(getCategory(me)) << "\" >\n";
+ ctdfile << "<tool name=\"" << class_name << "\" version=\"" << xmlEscape(getVersion(me)) << "\" docurl=\"http://www.seqan.de\" category=\"" << xmlEscape(getCategory(me)) << "\" ctdVersion=\"1.7\">\n";
ctdfile << _indent(currentIndent) << "<executableName>" << toolname << "</executableName>\n";
ctdfile << _indent(currentIndent) << "<description>" << xmlEscape(getShortDescription(me)) << "</description>\n";
ctdfile << _indent(currentIndent) << "<manual>" << xmlEscape(_getManual(me)) << "</manual>\n"; // TODO(aiche): as soon as we have a more sophisticated documentation embedded into the CmdParser, we should at this here
diff --git a/tests/arg_parse/test_app.ctd b/tests/arg_parse/test_app.ctd
index f4346e23e..55313b0e7 100644
--- a/tests/arg_parse/test_app.ctd
+++ b/tests/arg_parse/test_app.ctd
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<tool name="TestApp" version="0.1.0" docurl="http://www.seqan.de" category="SeqAn/Testing" >
+<tool name="TestApp" version="0.1.0" docurl="http://www.seqan.de" category="SeqAn/Testing" ctdVersion="1.7">
<executableName>test_app</executableName>
<description>This is a test-app.</description>
<manual>This is the first line of our test description.
|