Title: [40864] trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model: Add Purify metrics

Diff

Modified: trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/pom.xml (40863 => 40864)


--- trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/pom.xml	2013-05-13 20:16:56 UTC (rev 40863)
+++ trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/pom.xml	2013-05-16 22:15:18 UTC (rev 40864)
@@ -33,7 +33,7 @@
     </parent>
 
     <artifactId>dtkit-tusar-model</artifactId>
-    <version>0.21-SNAPSHOT</version>
+    <version>0.21</version>
     <name>DTKit TUSAR Model</name>
 
     <licenses>
@@ -214,7 +214,19 @@
                             <goal>xjc</goal>
                         </goals>
                     </execution>
-
+					 <execution>
+                        <id>tusarv11</id>
+                        <configuration>
+                            <schemaDirectory>${basedir}/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd
+                            </schemaDirectory>
+                            <schemaFiles>tusar-11.xsd</schemaFiles>
+                            <staleFile>${project.build.directory}/generated-sources/jaxb/tusarv11/.staleFlag.</staleFile>
+                            <clearOutputDir>false</clearOutputDir>
+                        </configuration>
+                        <goals>
+                            <goal>xjc</goal>
+                        </goals>
+                    </execution>
                 </executions>
             </plugin>
         </plugins>

Added: trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/java/com/thalesgroup/dtkit/tusar/model/Tusarv11.java (0 => 40864)


--- trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/java/com/thalesgroup/dtkit/tusar/model/Tusarv11.java	                        (rev 0)
+++ trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/java/com/thalesgroup/dtkit/tusar/model/Tusarv11.java	2013-05-16 22:15:18 UTC (rev 40864)
@@ -0,0 +1,36 @@
+package com.thalesgroup.dtkit.tusar.model;
+
+import com.thalesgroup.dtkit.metrics.model.AbstractOutputMetric;
+
+import javax.xml.bind.annotation.XmlElement;
+import java.io.Serializable;
+
+/**
+ * @author Mohamed Koundoussi
+ */
+public class Tusarv11 extends AbstractOutputMetric implements Serializable {
+
+    @Override
+    @XmlElement
+    public String getKey() {
+        return "tusar";
+    }
+
+    @Override
+    @XmlElement
+    public String getDescription() {
+        return "TUSAR OUTPUT FORMAT 11.0";
+    }
+
+    @Override
+    @XmlElement
+    public String getVersion() {
+        return "11.0";
+    }
+
+    @Override
+    @XmlElement
+    public String[] getXsdNameList() {
+        return new String[]{"xsd/design-1.xsd", "xsd/size-2.xsd", "xsd/memory-1.xsd", "xsd/documentation-1.xsd", "xsd/duplications-1.xsd", "xsd/tests-5.xsd", "xsd/line-coverage-1.xsd", "xsd/branch-coverage-1.xsd", "xsd/coverage-4.xsd", "xsd/violations-4.xsd", "xsd/measures-7.xsd", "xsd/tusar-11.xsd"};
+    }
+}

Added: trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/measures-7.xsd (0 => 40864)


--- trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/measures-7.xsd	                        (rev 0)
+++ trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/measures-7.xsd	2013-05-16 22:15:18 UTC (rev 40864)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xs:schema
+        xmlns:duplications="http://www.thalesgroup.com/tusar/duplications/v1"
+        xmlns:design="http://www.thalesgroup.com/tusar/design/v1"
+        xmlns:documentation="http://www.thalesgroup.com/tusar/documentation/v1"
+        xmlns:size="http://www.thalesgroup.com/tusar/size/v2"
+        xmlns:memory="http://www.thalesgroup.com/tusar/memory/v1"
+        targetNamespace="http://www.thalesgroup.com/tusar/measures/v7"
+        xmlns:xs="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified">
+
+    <xs:import namespace="http://www.thalesgroup.com/tusar/duplications/v1"
+               schemaLocation="duplications-1.xsd"/>
+    <xs:import namespace="http://www.thalesgroup.com/tusar/design/v1"
+               schemaLocation="design-1.xsd"/>
+    <xs:import namespace="http://www.thalesgroup.com/tusar/documentation/v1"
+               schemaLocation="documentation-1.xsd"/>
+    <xs:import namespace="http://www.thalesgroup.com/tusar/size/v2"
+               schemaLocation="size-2.xsd"/>
+    <xs:import namespace="http://www.thalesgroup.com/tusar/memory/v1"
+               schemaLocation="memory-1.xsd"/>
+
+    <xs:complexType name="MeasuresComplexType">
+        <xs:sequence>
+            <xs:element name="duplications" type="duplications:DuplicationsComplexType" minOccurs="0" maxOccurs="1"/>
+            <xs:element name="design" type="design:DesignComplexType" minOccurs="0" maxOccurs="1"/>
+            <xs:element name="documentation" type="documentation:DocumentationComplexType" minOccurs="0" maxOccurs="1"/>
+            <xs:element name="size" type="size:SizeComplexType" minOccurs="0" maxOccurs="1"/>
+            <xs:element name="memory" type="memory:MemoryComplexType" minOccurs="0" maxOccurs="1"/>
+        </xs:sequence>
+        <xs:attribute name="toolname" type="xs:string" use="optional"/>
+        <xs:attribute name="version" type="xs:string" use="optional"/>
+        <xs:attribute name="xmlns_xsi" type="xs:string" use="optional"/>
+    </xs:complexType>
+
+</xs:schema>

Added: trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/memory-1.xsd (0 => 40864)


--- trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/memory-1.xsd	                        (rev 0)
+++ trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/memory-1.xsd	2013-05-16 22:15:18 UTC (rev 40864)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xs:schema targetNamespace="http://www.thalesgroup.com/tusar/memory/v1"
+           xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           elementFormDefault="qualified">
+    <xs:complexType name="MemoryComplexType">
+        <xs:sequence>
+            <xs:element name="resource" minOccurs="0" maxOccurs="unbounded">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="measure" maxOccurs="unbounded">
+                            <xs:complexType>
+                                <xs:attribute name="key" type="xs:string" use="required"/>
+                                <xs:attribute name="value" type="xs:string" use="required"/>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:sequence>
+                    <xs:attribute name="type" use="required">
+                        <xs:simpleType>
+                            <xs:restriction base="xs:string">
+                                <xs:enumeration value="PROJECT"/>
+                                <xs:enumeration value="DIRECTORY"/>
+                                <xs:enumeration value="FILE"/>
+                            </xs:restriction>
+                        </xs:simpleType>
+                    </xs:attribute>
+                    <xs:attribute name="value" type="xs:string" use="required"/>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+        <xs:attribute name="toolname" type="xs:string" use="optional"/>
+        <xs:attribute name="version" type="xs:string" use="optional"/>
+    </xs:complexType>
+
+</xs:schema>
\ No newline at end of file

Added: trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/size-2.xsd (0 => 40864)


--- trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/size-2.xsd	                        (rev 0)
+++ trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/size-2.xsd	2013-05-16 22:15:18 UTC (rev 40864)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xs:schema targetNamespace="http://www.thalesgroup.com/tusar/size/v2"
+           xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           elementFormDefault="qualified">
+    <xs:complexType name="SizeComplexType">
+        <xs:sequence>
+            <xs:element name="resource" minOccurs="0" maxOccurs="unbounded">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="measure" maxOccurs="unbounded">
+                            <xs:complexType>
+                                <xs:attribute name="key" type="xs:string" use="required"/>
+                                <xs:attribute name="value" type="xs:string" use="required"/>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:sequence>
+                    <xs:attribute name="type" use="required">
+                        <xs:simpleType>
+                            <xs:restriction base="xs:string">
+                                <xs:enumeration value="PROJECT"/>
+                                <xs:enumeration value="DIRECTORY"/>
+                                <xs:enumeration value="FILE"/>
+                                <xs:enumeration value="FUNCTION"/>
+                            </xs:restriction>
+                        </xs:simpleType>
+                    </xs:attribute>
+                    <xs:attribute name="value" type="xs:string" use="required"/>
+                    
+                    <!-- If the attribute "type" is function, you have to specify the filename where you can find the function.-->
+                    <xs:attribute name="functionFilename" type="xs:string" use="optional"/>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+        <xs:attribute name="toolname" type="xs:string" use="optional"/>
+        <xs:attribute name="version" type="xs:string" use="optional"/>
+    </xs:complexType>
+
+</xs:schema>
\ No newline at end of file

Added: trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/tusar-11.xsd (0 => 40864)


--- trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/tusar-11.xsd	                        (rev 0)
+++ trunk/hudson/dtkit/dtkit-format/dtkit-tusar-model/src/main/resources/com/thalesgroup/dtkit/tusar/model/xsd/tusar-11.xsd	2013-05-16 22:15:18 UTC (rev 40864)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+/*******************************************************************************
+* Copyright (c) 2011 Thales Corporate Services SAS                             *
+* Author : Gregory Boissinot, Guillaume Tanier, Aravindan Mahendran            *
+*                                                                              *
+* Permission is hereby granted, free of charge, to any person obtaining a copy *
+* of this software and associated documentation files (the "Software"), to deal*
+* in the Software without restriction, including without limitation the rights *
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell    *
+* copies of the Software, and to permit persons to whom the Software is        *
+* furnished to do so, subject to the following conditions:                     *
+*                                                                              *
+* The above copyright notice and this permission notice shall be included in   *
+* all copies or substantial portions of the Software.                          *
+*                                                                              *
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR   *
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,     *
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE  *
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER       *
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,*
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN    *
+* THE SOFTWARE.                                                                *
+*******************************************************************************/
+-->
+<xs:schema
+        xmlns:tests="http://www.thalesgroup.com/tusar/tests/v5"
+        xmlns:coverage="http://www.thalesgroup.com/tusar/coverage/v4"
+        xmlns:measures="http://www.thalesgroup.com/tusar/measures/v7"
+        xmlns:violations="http://www.thalesgroup.com/tusar/violations/v4"
+        targetNamespace="http://www.thalesgroup.com/tusar/v11"
+        xmlns:xs="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified">
+
+    <xs:import namespace="http://www.thalesgroup.com/tusar/tests/v5"
+               schemaLocation="tests-5.xsd"/>
+    <xs:import namespace="http://www.thalesgroup.com/tusar/measures/v7"
+               schemaLocation="measures-7.xsd"/>
+    <xs:import namespace="http://www.thalesgroup.com/tusar/coverage/v4"
+               schemaLocation="coverage-4.xsd"/>
+    <xs:import namespace="http://www.thalesgroup.com/tusar/violations/v4"
+               schemaLocation="violations-4.xsd"/>
+
+    <xs:element name="tusar">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="tests" type="tests:TestsComplexType" minOccurs="0" maxOccurs="1"/>
+                <xs:element name="coverage" type="coverage:CoverageComplexType" minOccurs="0" maxOccurs="1"/>
+                <xs:element name="violations" type="violations:ViolationsComplexType" minOccurs="0" maxOccurs="1"/>
+                <xs:element name="measures" type="measures:MeasuresComplexType" minOccurs="0" maxOccurs="1"/>
+            </xs:sequence>
+            <xs:attribute name="version" type="xs:string" use="optional"/>
+            <xs:attribute name="xmlns_xsi" type="xs:string" use="optional"/>
+        </xs:complexType>
+    </xs:element>
+
+</xs:schema>

--
You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to