summaryrefslogtreecommitdiff
path: root/ant
diff options
context:
space:
mode:
authorTim Baverstock <weasel@google.com>2010-01-18 12:15:45 +0000
committerTim Baverstock <weasel@google.com>2010-01-18 12:15:45 +0000
commit0b5519af3cd5ac3a90a29d110fea49345e8e286b (patch)
tree1a42f184f1dffcd7f846d4e22d9c6e74a50e44df /ant
parentb5a69bd25745d7d022d38407a3f0f5cf9ca604a8 (diff)
downloademma-0b5519af3cd5ac3a90a29d110fea49345e8e286b.tar.gz
Add LCOV handling to Emma's ANT driver/jar
Diffstat (limited to 'ant')
-rw-r--r--ant/ant14/com/vladium/emma/emmajavaTask.java8
-rw-r--r--ant/ant14/com/vladium/emma/report/ReportCfg.java26
-rw-r--r--ant/ant14/com/vladium/emma/report/reportTask.java6
3 files changed, 38 insertions, 2 deletions
diff --git a/ant/ant14/com/vladium/emma/emmajavaTask.java b/ant/ant14/com/vladium/emma/emmajavaTask.java
index cf4339a..929390c 100644
--- a/ant/ant14/com/vladium/emma/emmajavaTask.java
+++ b/ant/ant14/com/vladium/emma/emmajavaTask.java
@@ -19,6 +19,7 @@ import com.vladium.emma.report.ReportCfg;
import com.vladium.emma.report.IReportEnums.DepthAttribute;
import com.vladium.emma.report.IReportEnums.UnitsTypeAttribute;
import com.vladium.emma.report.ReportCfg.Element_HTML;
+import com.vladium.emma.report.ReportCfg.Element_LCOV;
import com.vladium.emma.report.ReportCfg.Element_TXT;
import com.vladium.emma.report.ReportCfg.Element_XML;
@@ -471,6 +472,11 @@ class emmajavaTask extends Java
return m_reportCfg.createTxt ();
}
+ public final Element_LCOV createLcov ()
+ {
+ return m_reportCfg.createLcov ();
+ }
+
public final Element_HTML createHtml ()
{
return m_reportCfg.createHtml ();
@@ -584,4 +590,4 @@ class emmajavaTask extends Java
private Boolean m_outFileMerge;
} // end of class
-// ---------------------------------------------------------------------------- \ No newline at end of file
+// ----------------------------------------------------------------------------
diff --git a/ant/ant14/com/vladium/emma/report/ReportCfg.java b/ant/ant14/com/vladium/emma/report/ReportCfg.java
index 71a01b4..2d8b73f 100644
--- a/ant/ant14/com/vladium/emma/report/ReportCfg.java
+++ b/ant/ant14/com/vladium/emma/report/ReportCfg.java
@@ -195,6 +195,24 @@ class ReportCfg implements IReportProperties
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ public static class Element_LCOV extends Element
+ {
+ protected final String getType ()
+ {
+ return TYPE;
+ }
+
+ Element_LCOV (final Task task, final IProperties settings)
+ {
+ super (task, settings);
+ }
+
+ static final String TYPE = "lcov";
+
+ } // end of nested class
+
+ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
public static class Element_XML extends Element
{
protected final String getType ()
@@ -308,6 +326,12 @@ class ReportCfg implements IReportProperties
new Element_TXT (m_task, m_settings));
}
+ public Element_LCOV createLcov ()
+ {
+ return (Element_LCOV) addCfgElement (Element_LCOV.TYPE,
+ new Element_LCOV (m_task, m_settings));
+ }
+
public Element_HTML createHtml ()
{
return (Element_HTML) addCfgElement (Element_HTML.TYPE,
@@ -421,4 +445,4 @@ class ReportCfg implements IReportProperties
private transient boolean m_processed;
} // end of class
-// ---------------------------------------------------------------------------- \ No newline at end of file
+// ----------------------------------------------------------------------------
diff --git a/ant/ant14/com/vladium/emma/report/reportTask.java b/ant/ant14/com/vladium/emma/report/reportTask.java
index 931fad4..eb57873 100644
--- a/ant/ant14/com/vladium/emma/report/reportTask.java
+++ b/ant/ant14/com/vladium/emma/report/reportTask.java
@@ -16,6 +16,7 @@ import com.vladium.util.IProperties;
import com.vladium.emma.ant.FileTask;
import com.vladium.emma.ant.SuppressableTask;
import com.vladium.emma.report.ReportCfg.Element_HTML;
+import com.vladium.emma.report.ReportCfg.Element_LCOV;
import com.vladium.emma.report.ReportCfg.Element_TXT;
import com.vladium.emma.report.ReportCfg.Element_XML;
@@ -104,6 +105,11 @@ final class reportTask extends FileTask implements IReportProperties, IReportEnu
return m_reportCfg.createTxt ();
}
+ public Element_LCOV createLcov ()
+ {
+ return m_reportCfg.createLcov ();
+ }
+
public Element_HTML createHtml ()
{
return m_reportCfg.createHtml ();