aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-projects/batch
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-08-14 14:49:49 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-08-18 09:36:10 +0200
commit2a5eea17c29c46566a13f84eead54b202a9bae83 (patch)
tree6e360aeea61672f86d090e52f281f6319953d4e2 /it/it-projects/batch
parent48bb07308a21354e7f904a03b0c593158bde82b5 (diff)
downloadsonarqube-2a5eea17c29c46566a13f84eead54b202a9bae83.tar.gz
sonarqube-2a5eea17c29c46566a13f84eead54b202a9bae83.zip
Migrate batch ITs
Diffstat (limited to 'it/it-projects/batch')
-rw-r--r--it/it-projects/batch/case-sensitive-file-extensions/sonar-project.properties5
-rw-r--r--it/it-projects/batch/case-sensitive-file-extensions/src/UPPER.XOO2
-rw-r--r--it/it-projects/batch/case-sensitive-file-extensions/src/UPPER.XOO.measures1
-rw-r--r--it/it-projects/batch/case-sensitive-file-extensions/src/lower.xoo10
-rw-r--r--it/it-projects/batch/case-sensitive-file-extensions/src/lower.xoo.measures1
-rw-r--r--it/it-projects/batch/custom-module-key/module_a/sonar-project.properties2
-rw-r--r--it/it-projects/batch/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo16
-rw-r--r--it/it-projects/batch/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures2
-rw-r--r--it/it-projects/batch/custom-module-key/module_b/sonar-project.properties2
-rw-r--r--it/it-projects/batch/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo12
-rw-r--r--it/it-projects/batch/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures2
-rw-r--r--it/it-projects/batch/custom-module-key/sonar-project.properties12
-rw-r--r--it/it-projects/batch/duplicate-source/sonar-project.properties6
-rw-r--r--it/it-projects/batch/duplicate-source/src/main/xoo/org/sonar/tests/ClassOne.xoo5
-rw-r--r--it/it-projects/batch/duplicate-source/src/main/xoo2/org/sonar/tests/ClassOne.xoo5
-rw-r--r--it/it-projects/batch/duplicate-source/src/test/xoo/org/sonar/tests/ClassOne.xoo5
-rw-r--r--it/it-projects/batch/extension-lifecycle/module_a/pom.xml14
-rw-r--r--it/it-projects/batch/extension-lifecycle/module_a/src/main/java/HelloA.java10
-rw-r--r--it/it-projects/batch/extension-lifecycle/module_b/pom.xml13
-rw-r--r--it/it-projects/batch/extension-lifecycle/module_b/src/main/java/HelloB.java10
-rw-r--r--it/it-projects/batch/extension-lifecycle/pom.xml13
-rw-r--r--it/it-projects/batch/links-project/pom.xml31
-rw-r--r--it/it-projects/batch/links-project/sonar-project.properties11
-rw-r--r--it/it-projects/batch/links-project/src/main/java/sample/Sample.java12
-rw-r--r--it/it-projects/batch/multi-languages/java-module/pom.xml15
-rw-r--r--it/it-projects/batch/multi-languages/java-module/src/main/java/HelloJava.java10
-rw-r--r--it/it-projects/batch/multi-languages/javascript-module/pom.xml20
-rw-r--r--it/it-projects/batch/multi-languages/javascript-module/src/Person.js14
-rw-r--r--it/it-projects/batch/multi-languages/pom.xml16
-rw-r--r--it/it-projects/batch/multi-languages/python-module/pom.xml19
-rw-r--r--it/it-projects/batch/multi-languages/python-module/src/__init__.py0
-rw-r--r--it/it-projects/batch/multi-languages/python-module/src/badfortune.py92
-rw-r--r--it/it-projects/batch/multi-languages/sonar-project.properties19
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAB/module_a/sonar-project.properties2
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo16
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures2
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAB/module_b/sonar-project.properties2
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo12
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures2
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAB/sonar-project.properties12
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAC/module_a/sonar-project.properties2
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo16
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures2
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAC/module_c/sonar-project.properties2
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo12
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures2
-rw-r--r--it/it-projects/batch/prevent-common-module/projectAC/sonar-project.properties12
-rw-r--r--it/it-projects/batch/project-builder/module_a/src/HelloA.java10
-rw-r--r--it/it-projects/batch/project-builder/module_b/src/HelloB.java10
-rw-r--r--it/it-projects/batch/project-builder/module_b/src/IgnoredFile.java1
-rw-r--r--it/it-projects/batch/project-builder/pom.xml15
-rw-r--r--it/it-projects/batch/tracking/v1/sonar-project.properties5
-rw-r--r--it/it-projects/batch/tracking/v1/src/main/xoo/sample/Sample.xoo12
-rw-r--r--it/it-projects/batch/tracking/v1/src/main/xoo/sample/Sample.xoo.measures1
-rw-r--r--it/it-projects/batch/tracking/v2/sonar-project.properties5
-rw-r--r--it/it-projects/batch/tracking/v2/src/main/xoo/sample/Sample.xoo14
-rw-r--r--it/it-projects/batch/tracking/v2/src/main/xoo/sample/Sample.xoo.measures1
-rw-r--r--it/it-projects/batch/xoo-history-v2/sonar-project.properties5
-rw-r--r--it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo12
-rw-r--r--it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures3
-rw-r--r--it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo16
-rw-r--r--it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures3
-rw-r--r--it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo12
-rw-r--r--it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures2
-rw-r--r--it/it-projects/batch/xoo-multi-languages/sonar-project.properties4
-rw-r--r--it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo12
-rw-r--r--it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo.measures10
-rw-r--r--it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo212
-rw-r--r--it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo2.measures10
-rw-r--r--it/it-projects/batch/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo12
-rw-r--r--it/it-projects/batch/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo.measures11
-rw-r--r--it/it-projects/batch/xoo-sample-with-spaces/v1/sonar-project.properties5
-rw-r--r--it/it-projects/batch/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo12
-rw-r--r--it/it-projects/batch/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo.measures11
-rw-r--r--it/it-projects/batch/xoo-sample-with-spaces/v2/sonar-project.properties5
75 files changed, 734 insertions, 0 deletions
diff --git a/it/it-projects/batch/case-sensitive-file-extensions/sonar-project.properties b/it/it-projects/batch/case-sensitive-file-extensions/sonar-project.properties
new file mode 100644
index 00000000000..795bbeb5cf9
--- /dev/null
+++ b/it/it-projects/batch/case-sensitive-file-extensions/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=case-sensitive-file-extensions
+sonar.projectName=Case Sensitive
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src
+sonar.language=xoo
diff --git a/it/it-projects/batch/case-sensitive-file-extensions/src/UPPER.XOO b/it/it-projects/batch/case-sensitive-file-extensions/src/UPPER.XOO
new file mode 100644
index 00000000000..7a7569a867b
--- /dev/null
+++ b/it/it-projects/batch/case-sensitive-file-extensions/src/UPPER.XOO
@@ -0,0 +1,2 @@
+File extension is upper case.
+It should not be ignored since SQ 4.0.
diff --git a/it/it-projects/batch/case-sensitive-file-extensions/src/UPPER.XOO.measures b/it/it-projects/batch/case-sensitive-file-extensions/src/UPPER.XOO.measures
new file mode 100644
index 00000000000..5143bc664f8
--- /dev/null
+++ b/it/it-projects/batch/case-sensitive-file-extensions/src/UPPER.XOO.measures
@@ -0,0 +1 @@
+ncloc:2
diff --git a/it/it-projects/batch/case-sensitive-file-extensions/src/lower.xoo b/it/it-projects/batch/case-sensitive-file-extensions/src/lower.xoo
new file mode 100644
index 00000000000..fd97999fff8
--- /dev/null
+++ b/it/it-projects/batch/case-sensitive-file-extensions/src/lower.xoo
@@ -0,0 +1,10 @@
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/batch/case-sensitive-file-extensions/src/lower.xoo.measures b/it/it-projects/batch/case-sensitive-file-extensions/src/lower.xoo.measures
new file mode 100644
index 00000000000..f82c5911efa
--- /dev/null
+++ b/it/it-projects/batch/case-sensitive-file-extensions/src/lower.xoo.measures
@@ -0,0 +1 @@
+ncloc:5
diff --git a/it/it-projects/batch/custom-module-key/module_a/sonar-project.properties b/it/it-projects/batch/custom-module-key/module_a/sonar-project.properties
new file mode 100644
index 00000000000..7c95bd81729
--- /dev/null
+++ b/it/it-projects/batch/custom-module-key/module_a/sonar-project.properties
@@ -0,0 +1,2 @@
+sonar.projectName=Module A
+sonar.moduleKey=com.sonarsource.it.samples:moduleA
diff --git a/it/it-projects/batch/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo b/it/it-projects/batch/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo
new file mode 100644
index 00000000000..74d29a4fa08
--- /dev/null
+++ b/it/it-projects/batch/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo
@@ -0,0 +1,16 @@
+package com.sonar.it.samples.modules.a1;
+
+public class HelloA1 {
+ private int i;
+ private HelloA1() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " xoo");
+ }
+
+ protected String getHello() {
+ return "hello";
+ }
+} \ No newline at end of file
diff --git a/it/it-projects/batch/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures b/it/it-projects/batch/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures
new file mode 100644
index 00000000000..7812e4167fb
--- /dev/null
+++ b/it/it-projects/batch/custom-module-key/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1
diff --git a/it/it-projects/batch/custom-module-key/module_b/sonar-project.properties b/it/it-projects/batch/custom-module-key/module_b/sonar-project.properties
new file mode 100644
index 00000000000..04cd79e2247
--- /dev/null
+++ b/it/it-projects/batch/custom-module-key/module_b/sonar-project.properties
@@ -0,0 +1,2 @@
+sonar.projectName=Module B
+sonar.moduleKey=com.sonarsource.it.samples:moduleB
diff --git a/it/it-projects/batch/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo b/it/it-projects/batch/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo
new file mode 100644
index 00000000000..42039538a92
--- /dev/null
+++ b/it/it-projects/batch/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo
@@ -0,0 +1,12 @@
+package com.sonar.it.samples.modules.a2;
+
+public class HelloA2 {
+ private int i;
+ private HelloA2() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " xoo");
+ }
+} \ No newline at end of file
diff --git a/it/it-projects/batch/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures b/it/it-projects/batch/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures
new file mode 100644
index 00000000000..3947d3bdbff
--- /dev/null
+++ b/it/it-projects/batch/custom-module-key/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1 \ No newline at end of file
diff --git a/it/it-projects/batch/custom-module-key/sonar-project.properties b/it/it-projects/batch/custom-module-key/sonar-project.properties
new file mode 100644
index 00000000000..7935cb5ffb0
--- /dev/null
+++ b/it/it-projects/batch/custom-module-key/sonar-project.properties
@@ -0,0 +1,12 @@
+# Root project information
+sonar.projectKey=com.sonarsource.it.samples:multi-modules-sample
+sonar.projectName=Sonar :: Integration Tests :: Multi-modules Sample
+sonar.projectVersion=1.0-SNAPSHOT
+
+sonar.language=xoo
+
+# Some properties that will be inherited by the modules
+sonar.sources=src/main/xoo
+
+# List of the module identifiers
+sonar.modules=module_a,module_b
diff --git a/it/it-projects/batch/duplicate-source/sonar-project.properties b/it/it-projects/batch/duplicate-source/sonar-project.properties
new file mode 100644
index 00000000000..cf176850bae
--- /dev/null
+++ b/it/it-projects/batch/duplicate-source/sonar-project.properties
@@ -0,0 +1,6 @@
+sonar.projectKey=com.sonarsource.it.projects.batch:duplicate-source
+sonar.projectName=exclusions
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo,src/main/xoo2
+sonar.tests=src/test/xoo
+sonar.language=xoo
diff --git a/it/it-projects/batch/duplicate-source/src/main/xoo/org/sonar/tests/ClassOne.xoo b/it/it-projects/batch/duplicate-source/src/main/xoo/org/sonar/tests/ClassOne.xoo
new file mode 100644
index 00000000000..8cf8aec82fe
--- /dev/null
+++ b/it/it-projects/batch/duplicate-source/src/main/xoo/org/sonar/tests/ClassOne.xoo
@@ -0,0 +1,5 @@
+package org.sonar.tests;
+
+public class ClassOne {
+
+}
diff --git a/it/it-projects/batch/duplicate-source/src/main/xoo2/org/sonar/tests/ClassOne.xoo b/it/it-projects/batch/duplicate-source/src/main/xoo2/org/sonar/tests/ClassOne.xoo
new file mode 100644
index 00000000000..8cf8aec82fe
--- /dev/null
+++ b/it/it-projects/batch/duplicate-source/src/main/xoo2/org/sonar/tests/ClassOne.xoo
@@ -0,0 +1,5 @@
+package org.sonar.tests;
+
+public class ClassOne {
+
+}
diff --git a/it/it-projects/batch/duplicate-source/src/test/xoo/org/sonar/tests/ClassOne.xoo b/it/it-projects/batch/duplicate-source/src/test/xoo/org/sonar/tests/ClassOne.xoo
new file mode 100644
index 00000000000..8cf8aec82fe
--- /dev/null
+++ b/it/it-projects/batch/duplicate-source/src/test/xoo/org/sonar/tests/ClassOne.xoo
@@ -0,0 +1,5 @@
+package org.sonar.tests;
+
+public class ClassOne {
+
+}
diff --git a/it/it-projects/batch/extension-lifecycle/module_a/pom.xml b/it/it-projects/batch/extension-lifecycle/module_a/pom.xml
new file mode 100644
index 00000000000..8cc056c4e81
--- /dev/null
+++ b/it/it-projects/batch/extension-lifecycle/module_a/pom.xml
@@ -0,0 +1,14 @@
+<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>
+ <artifactId>module_a</artifactId>
+ <packaging>jar</packaging>
+ <name>Module A</name>
+
+ <parent>
+ <groupId>com.sonarsource.it.projects.batch</groupId>
+ <artifactId>extension-lifecycle</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+</project> \ No newline at end of file
diff --git a/it/it-projects/batch/extension-lifecycle/module_a/src/main/java/HelloA.java b/it/it-projects/batch/extension-lifecycle/module_a/src/main/java/HelloA.java
new file mode 100644
index 00000000000..847098b9a50
--- /dev/null
+++ b/it/it-projects/batch/extension-lifecycle/module_a/src/main/java/HelloA.java
@@ -0,0 +1,10 @@
+public class HelloA {
+ private int i;
+ private HelloA() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " world");
+ }
+} \ No newline at end of file
diff --git a/it/it-projects/batch/extension-lifecycle/module_b/pom.xml b/it/it-projects/batch/extension-lifecycle/module_b/pom.xml
new file mode 100644
index 00000000000..449325b7691
--- /dev/null
+++ b/it/it-projects/batch/extension-lifecycle/module_b/pom.xml
@@ -0,0 +1,13 @@
+<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>
+ <artifactId>module_b</artifactId>
+ <packaging>jar</packaging>
+ <name>Module B</name>
+
+ <parent>
+ <groupId>com.sonarsource.it.projects.batch</groupId>
+ <artifactId>extension-lifecycle</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+</project> \ No newline at end of file
diff --git a/it/it-projects/batch/extension-lifecycle/module_b/src/main/java/HelloB.java b/it/it-projects/batch/extension-lifecycle/module_b/src/main/java/HelloB.java
new file mode 100644
index 00000000000..afc7d2c906c
--- /dev/null
+++ b/it/it-projects/batch/extension-lifecycle/module_b/src/main/java/HelloB.java
@@ -0,0 +1,10 @@
+public class HelloB {
+ private int i;
+ private HelloB() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " world");
+ }
+} \ No newline at end of file
diff --git a/it/it-projects/batch/extension-lifecycle/pom.xml b/it/it-projects/batch/extension-lifecycle/pom.xml
new file mode 100644
index 00000000000..30de64cef8c
--- /dev/null
+++ b/it/it-projects/batch/extension-lifecycle/pom.xml
@@ -0,0 +1,13 @@
+<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>com.sonarsource.it.projects.batch</groupId>
+ <artifactId>extension-lifecycle</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>Sonar :: Integration Tests :: Extension Lifecycle Sample</name>
+ <modules>
+ <module>module_a</module>
+ <module>module_b</module>
+ </modules>
+</project> \ No newline at end of file
diff --git a/it/it-projects/batch/links-project/pom.xml b/it/it-projects/batch/links-project/pom.xml
new file mode 100644
index 00000000000..a0bc27aaab6
--- /dev/null
+++ b/it/it-projects/batch/links-project/pom.xml
@@ -0,0 +1,31 @@
+<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>com.sonarsource.it.samples</groupId>
+ <artifactId>simple-sample</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>Sonar :: Integration Tests :: Simple Sample</name>
+
+ <url>http://www.simplesample.org</url>
+
+ <issueManagement>
+ <system>jira</system>
+ <url>http://jira.codehaus.org/browse/SIMPLESAMPLE</url>
+ </issueManagement>
+
+ <scm>
+ <connection>scm:git:git@github.com:SonarSource/simplesample.git</connection>
+ <developerConnection>scm:git:git@github.com:SonarSource/simplesample.git</developerConnection>
+ <url>https://github.com/SonarSource/simplesample</url>
+ </scm>
+
+ <ciManagement>
+ <system>bamboo</system>
+ <url>http://bamboo.ci.codehaus.org/browse/SIMPLESAMPLE</url>
+ </ciManagement>
+
+ <properties>
+ <!-- The following property MUST override the <url> definition of the POM -->
+ <sonar.links.homepage>http://www.simplesample.org_OVERRIDDEN</sonar.links.homepage>
+ </properties>
+
+</project> \ No newline at end of file
diff --git a/it/it-projects/batch/links-project/sonar-project.properties b/it/it-projects/batch/links-project/sonar-project.properties
new file mode 100644
index 00000000000..4352408bd5c
--- /dev/null
+++ b/it/it-projects/batch/links-project/sonar-project.properties
@@ -0,0 +1,11 @@
+sonar.projectKey=com.sonarsource.it.samples:simple-sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.projectName=Sonar :: Integration Tests :: Simple Sample
+
+sonar.sources=src/main/java
+
+sonar.links.homepage=http://www.simplesample.org_OVERRIDDEN
+sonar.links.ci=http://bamboo.ci.codehaus.org/browse/SIMPLESAMPLE
+sonar.links.issue=http://jira.codehaus.org/browse/SIMPLESAMPLE
+sonar.links.scm=https://github.com/SonarSource/simplesample
+sonar.links.scm_dev=scm:git:git@github.com:SonarSource/simplesample.git
diff --git a/it/it-projects/batch/links-project/src/main/java/sample/Sample.java b/it/it-projects/batch/links-project/src/main/java/sample/Sample.java
new file mode 100644
index 00000000000..b1210973dd9
--- /dev/null
+++ b/it/it-projects/batch/links-project/src/main/java/sample/Sample.java
@@ -0,0 +1,12 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/batch/multi-languages/java-module/pom.xml b/it/it-projects/batch/multi-languages/java-module/pom.xml
new file mode 100644
index 00000000000..9b9cb11763f
--- /dev/null
+++ b/it/it-projects/batch/multi-languages/java-module/pom.xml
@@ -0,0 +1,15 @@
+<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>
+ <parent>
+ <groupId>com.sonarsource.it.projects.batch.multi-languages</groupId>
+ <artifactId>multi-languages</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>java-module</artifactId>
+ <name>Java Module</name>
+
+ <properties>
+ <sonar.language>java</sonar.language>
+ </properties>
+</project>
diff --git a/it/it-projects/batch/multi-languages/java-module/src/main/java/HelloJava.java b/it/it-projects/batch/multi-languages/java-module/src/main/java/HelloJava.java
new file mode 100644
index 00000000000..c575aeb9d4c
--- /dev/null
+++ b/it/it-projects/batch/multi-languages/java-module/src/main/java/HelloJava.java
@@ -0,0 +1,10 @@
+public class HelloJava {
+ private int i;
+ private HelloJava() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " java");
+ }
+} \ No newline at end of file
diff --git a/it/it-projects/batch/multi-languages/javascript-module/pom.xml b/it/it-projects/batch/multi-languages/javascript-module/pom.xml
new file mode 100644
index 00000000000..f0eb641e9e2
--- /dev/null
+++ b/it/it-projects/batch/multi-languages/javascript-module/pom.xml
@@ -0,0 +1,20 @@
+<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>
+ <parent>
+ <groupId>com.sonarsource.it.projects.batch.multi-languages</groupId>
+ <artifactId>multi-languages</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>javascript-module</artifactId>
+ <name>Javascript Module</name>
+
+ <properties>
+ <sonar.language>js</sonar.language>
+ </properties>
+
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ </build>
+
+</project> \ No newline at end of file
diff --git a/it/it-projects/batch/multi-languages/javascript-module/src/Person.js b/it/it-projects/batch/multi-languages/javascript-module/src/Person.js
new file mode 100644
index 00000000000..d5eb180de72
--- /dev/null
+++ b/it/it-projects/batch/multi-languages/javascript-module/src/Person.js
@@ -0,0 +1,14 @@
+
+var Person = function(first, last, middle) {
+ this.first = first;
+ this.middle = middle;
+ this.last = last;
+};
+
+Person.prototype = {
+
+ whoAreYou : function() {
+ return this.first + (this.middle ? ' ' + this.middle: '') + ' ' + this.last;
+ }
+
+};
diff --git a/it/it-projects/batch/multi-languages/pom.xml b/it/it-projects/batch/multi-languages/pom.xml
new file mode 100644
index 00000000000..bdde8327393
--- /dev/null
+++ b/it/it-projects/batch/multi-languages/pom.xml
@@ -0,0 +1,16 @@
+<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>com.sonarsource.it.projects.batch.multi-languages</groupId>
+ <artifactId>multi-languages</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>Multi Languages</name>
+ <description>One language per module</description>
+
+ <modules>
+ <module>java-module</module>
+ <module>javascript-module</module>
+ <module>python-module</module>
+ </modules>
+</project> \ No newline at end of file
diff --git a/it/it-projects/batch/multi-languages/python-module/pom.xml b/it/it-projects/batch/multi-languages/python-module/pom.xml
new file mode 100644
index 00000000000..02520cd6de9
--- /dev/null
+++ b/it/it-projects/batch/multi-languages/python-module/pom.xml
@@ -0,0 +1,19 @@
+<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>
+ <parent>
+ <groupId>com.sonarsource.it.projects.batch.multi-languages</groupId>
+ <artifactId>multi-languages</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>python-module</artifactId>
+ <name>Python Module</name>
+
+ <properties>
+ <sonar.language>py</sonar.language>
+ </properties>
+
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ </build>
+</project> \ No newline at end of file
diff --git a/it/it-projects/batch/multi-languages/python-module/src/__init__.py b/it/it-projects/batch/multi-languages/python-module/src/__init__.py
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/it/it-projects/batch/multi-languages/python-module/src/__init__.py
diff --git a/it/it-projects/batch/multi-languages/python-module/src/badfortune.py b/it/it-projects/batch/multi-languages/python-module/src/badfortune.py
new file mode 100644
index 00000000000..b0900dc1695
--- /dev/null
+++ b/it/it-projects/batch/multi-languages/python-module/src/badfortune.py
@@ -0,0 +1,92 @@
+
+# fortune.py -- chooses a random fortune, as the fortune(8) program in
+# the BSD-games package does
+#
+# Copyright (c) 2010, Andrew M. Kuchling
+#
+# 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.
+
+import struct, random, string
+
+# C long variables are different sizes on 32-bit and 64-bit machines,
+# so we have to measure how big they are on the machine where this is running.
+LONG_SIZE = struct.calcsize('L')
+is_64_bit = (LONG_SIZE == 8)
+
+def get(filename):
+ "Select a random quotation, using a pregenerated .dat file"
+
+ # First, we open the .dat file, and read the header information.
+ # The C structure containing this info looks like:
+ ## typedef struct { /* information table */
+ ## #define VERSION 1
+ ## unsigned long str_version; /* version number */
+ ## unsigned long str_numstr; /* # of strings in the file */
+ ## unsigned long str_longlen; /* length of longest string */
+ ## unsigned long str_shortlen; /* length of shortest string */
+ ## #define STR_RANDOM 0x1 /* randomized pointers */
+ ## #define STR_ORDERED 0x2 /* ordered pointers */
+ ## #define STR_ROTATED 0x4 /* rot-13'd text */
+ ## unsigned long str_flags; /* bit field for flags */
+ ## unsigned char stuff[4]; /* long aligned space */
+ ## #define str_delim stuff[0] /* delimiting character */
+ ## } STRFILE;
+
+ datfile = open(filename+'.dat', 'r')
+ data = datfile.read(5 * LONG_SIZE)
+ if is_64_bit:
+ v1, v2, n1, n2, l1, l2, s1, s2, f1, f2 = struct.unpack('!10L', data)
+ version = v1 + (v2 << 32)
+ numstr = n1 + (n2 << 32)
+ longlen = l1 + (l2 << 32)
+ shortlen = s1 + (s2 << 32)
+ flags = f1 + (f2 << 32)
+ else:
+ version, numstr, longlen, shortlen, flags = struct.unpack('5l', data)
+
+ delimiter = datfile.read(1)
+ datfile.read(3) # Throw away padding bytes
+ if is_64_bit: datfile.read(4) # 64-bit machines align to 8 bytes
+
+ # Pick a random number
+ r = random.randint(0, numstr)
+ datfile.seek(LONG_SIZE * r, 1) # Seek to the chosen pointer
+ data = datfile.read(LONG_SIZE * 2)
+
+ if is_64_bit:
+ s1, s2, e1, e2 = struct.unpack('!4L', data)
+ start, end = s1 + (s2 << 32), e1 + (e2 << 32)
+ else:
+ start, end = struct.unpack('!ll', data)
+ datfile.close()
+
+ file = open(filename, 'r')
+ file.seek(start)
+ quotation = file.read(end-start)
+ L=string.split(quotation, '\n')
+ while string.strip(L[-1]) == delimiter or string.strip(L[-1]) == "":
+ L=L[:-1]
+ return string.join(L, '\n')
+
+if __name__ == '__main__':
+ import sys
+ if len(sys.argv) == 1:
+ print 'Usage: fortune.py <filename>'
+ sys.exit()
+ print get(sys.argv[1])
diff --git a/it/it-projects/batch/multi-languages/sonar-project.properties b/it/it-projects/batch/multi-languages/sonar-project.properties
new file mode 100644
index 00000000000..ab848fa49f4
--- /dev/null
+++ b/it/it-projects/batch/multi-languages/sonar-project.properties
@@ -0,0 +1,19 @@
+sonar.projectKey=multi-languages
+sonar.projectName=Multi Languages
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.modules=java-module,javascript-module,python-module
+
+# not used but mandatory parameter because of https://jira.codehaus.org/browse/SONARPLUGINS-2297
+sonar.sources=src
+
+java-module.sonar.projectName=Java Module
+java-module.sonar.sources=src/main/java
+java-module.sonar.language=java
+
+javascript-module.sonar.projectName=Javascript Module
+javascript-module.sonar.sources=src
+javascript-module.sonar.language=js
+
+python-module.sonar.projectName=Python Module
+python-module.sonar.sources=src
+python-module.sonar.language=py \ No newline at end of file
diff --git a/it/it-projects/batch/prevent-common-module/projectAB/module_a/sonar-project.properties b/it/it-projects/batch/prevent-common-module/projectAB/module_a/sonar-project.properties
new file mode 100644
index 00000000000..7c95bd81729
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAB/module_a/sonar-project.properties
@@ -0,0 +1,2 @@
+sonar.projectName=Module A
+sonar.moduleKey=com.sonarsource.it.samples:moduleA
diff --git a/it/it-projects/batch/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo b/it/it-projects/batch/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo
new file mode 100644
index 00000000000..74d29a4fa08
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo
@@ -0,0 +1,16 @@
+package com.sonar.it.samples.modules.a1;
+
+public class HelloA1 {
+ private int i;
+ private HelloA1() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " xoo");
+ }
+
+ protected String getHello() {
+ return "hello";
+ }
+} \ No newline at end of file
diff --git a/it/it-projects/batch/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures b/it/it-projects/batch/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures
new file mode 100644
index 00000000000..7812e4167fb
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAB/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1
diff --git a/it/it-projects/batch/prevent-common-module/projectAB/module_b/sonar-project.properties b/it/it-projects/batch/prevent-common-module/projectAB/module_b/sonar-project.properties
new file mode 100644
index 00000000000..04cd79e2247
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAB/module_b/sonar-project.properties
@@ -0,0 +1,2 @@
+sonar.projectName=Module B
+sonar.moduleKey=com.sonarsource.it.samples:moduleB
diff --git a/it/it-projects/batch/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo b/it/it-projects/batch/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo
new file mode 100644
index 00000000000..42039538a92
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo
@@ -0,0 +1,12 @@
+package com.sonar.it.samples.modules.a2;
+
+public class HelloA2 {
+ private int i;
+ private HelloA2() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " xoo");
+ }
+} \ No newline at end of file
diff --git a/it/it-projects/batch/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures b/it/it-projects/batch/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures
new file mode 100644
index 00000000000..3947d3bdbff
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAB/module_b/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1 \ No newline at end of file
diff --git a/it/it-projects/batch/prevent-common-module/projectAB/sonar-project.properties b/it/it-projects/batch/prevent-common-module/projectAB/sonar-project.properties
new file mode 100644
index 00000000000..e3c23037ee1
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAB/sonar-project.properties
@@ -0,0 +1,12 @@
+# Root project information
+sonar.projectKey=projectAB
+sonar.projectName=Project AB
+sonar.projectVersion=1.0-SNAPSHOT
+
+sonar.language=xoo
+
+# Some properties that will be inherited by the modules
+sonar.sources=src/main/xoo
+
+# List of the module identifiers
+sonar.modules=module_a,module_b
diff --git a/it/it-projects/batch/prevent-common-module/projectAC/module_a/sonar-project.properties b/it/it-projects/batch/prevent-common-module/projectAC/module_a/sonar-project.properties
new file mode 100644
index 00000000000..7c95bd81729
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAC/module_a/sonar-project.properties
@@ -0,0 +1,2 @@
+sonar.projectName=Module A
+sonar.moduleKey=com.sonarsource.it.samples:moduleA
diff --git a/it/it-projects/batch/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo b/it/it-projects/batch/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo
new file mode 100644
index 00000000000..74d29a4fa08
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo
@@ -0,0 +1,16 @@
+package com.sonar.it.samples.modules.a1;
+
+public class HelloA1 {
+ private int i;
+ private HelloA1() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " xoo");
+ }
+
+ protected String getHello() {
+ return "hello";
+ }
+} \ No newline at end of file
diff --git a/it/it-projects/batch/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures b/it/it-projects/batch/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures
new file mode 100644
index 00000000000..7812e4167fb
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAC/module_a/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1
diff --git a/it/it-projects/batch/prevent-common-module/projectAC/module_c/sonar-project.properties b/it/it-projects/batch/prevent-common-module/projectAC/module_c/sonar-project.properties
new file mode 100644
index 00000000000..670f26db1db
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAC/module_c/sonar-project.properties
@@ -0,0 +1,2 @@
+sonar.projectName=Module C
+sonar.moduleKey=com.sonarsource.it.samples:moduleC
diff --git a/it/it-projects/batch/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo b/it/it-projects/batch/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo
new file mode 100644
index 00000000000..42039538a92
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo
@@ -0,0 +1,12 @@
+package com.sonar.it.samples.modules.a2;
+
+public class HelloA2 {
+ private int i;
+ private HelloA2() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " xoo");
+ }
+} \ No newline at end of file
diff --git a/it/it-projects/batch/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures b/it/it-projects/batch/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures
new file mode 100644
index 00000000000..3947d3bdbff
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAC/module_c/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1 \ No newline at end of file
diff --git a/it/it-projects/batch/prevent-common-module/projectAC/sonar-project.properties b/it/it-projects/batch/prevent-common-module/projectAC/sonar-project.properties
new file mode 100644
index 00000000000..342fb68ec8f
--- /dev/null
+++ b/it/it-projects/batch/prevent-common-module/projectAC/sonar-project.properties
@@ -0,0 +1,12 @@
+# Root project information
+sonar.projectKey=projectAC
+sonar.projectName=Project AC
+sonar.projectVersion=1.0-SNAPSHOT
+
+sonar.language=xoo
+
+# Some properties that will be inherited by the modules
+sonar.sources=src/main/xoo
+
+# List of the module identifiers
+sonar.modules=module_a,module_c
diff --git a/it/it-projects/batch/project-builder/module_a/src/HelloA.java b/it/it-projects/batch/project-builder/module_a/src/HelloA.java
new file mode 100644
index 00000000000..847098b9a50
--- /dev/null
+++ b/it/it-projects/batch/project-builder/module_a/src/HelloA.java
@@ -0,0 +1,10 @@
+public class HelloA {
+ private int i;
+ private HelloA() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " world");
+ }
+} \ No newline at end of file
diff --git a/it/it-projects/batch/project-builder/module_b/src/HelloB.java b/it/it-projects/batch/project-builder/module_b/src/HelloB.java
new file mode 100644
index 00000000000..afc7d2c906c
--- /dev/null
+++ b/it/it-projects/batch/project-builder/module_b/src/HelloB.java
@@ -0,0 +1,10 @@
+public class HelloB {
+ private int i;
+ private HelloB() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " world");
+ }
+} \ No newline at end of file
diff --git a/it/it-projects/batch/project-builder/module_b/src/IgnoredFile.java b/it/it-projects/batch/project-builder/module_b/src/IgnoredFile.java
new file mode 100644
index 00000000000..9574c15b0ee
--- /dev/null
+++ b/it/it-projects/batch/project-builder/module_b/src/IgnoredFile.java
@@ -0,0 +1 @@
+this file has been selected by the extension CreateSubProjects. \ No newline at end of file
diff --git a/it/it-projects/batch/project-builder/pom.xml b/it/it-projects/batch/project-builder/pom.xml
new file mode 100644
index 00000000000..e79f785f013
--- /dev/null
+++ b/it/it-projects/batch/project-builder/pom.xml
@@ -0,0 +1,15 @@
+<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>com.sonarsource.it.projects.batch</groupId>
+ <artifactId>project-builder</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>Sonar :: Integration Tests :: Project Builder Sample</name>
+
+ <!-- modules are not defined in pom but in sonar plugin -->
+ <!-- <modules>
+ <module>module_a</module>
+ <module>module_b</module>
+ </modules>-->
+</project> \ No newline at end of file
diff --git a/it/it-projects/batch/tracking/v1/sonar-project.properties b/it/it-projects/batch/tracking/v1/sonar-project.properties
new file mode 100644
index 00000000000..e01f062e51b
--- /dev/null
+++ b/it/it-projects/batch/tracking/v1/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo \ No newline at end of file
diff --git a/it/it-projects/batch/tracking/v1/src/main/xoo/sample/Sample.xoo b/it/it-projects/batch/tracking/v1/src/main/xoo/sample/Sample.xoo
new file mode 100644
index 00000000000..b1210973dd9
--- /dev/null
+++ b/it/it-projects/batch/tracking/v1/src/main/xoo/sample/Sample.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/batch/tracking/v1/src/main/xoo/sample/Sample.xoo.measures b/it/it-projects/batch/tracking/v1/src/main/xoo/sample/Sample.xoo.measures
new file mode 100644
index 00000000000..7bb5f438500
--- /dev/null
+++ b/it/it-projects/batch/tracking/v1/src/main/xoo/sample/Sample.xoo.measures
@@ -0,0 +1 @@
+ncloc:8
diff --git a/it/it-projects/batch/tracking/v2/sonar-project.properties b/it/it-projects/batch/tracking/v2/sonar-project.properties
new file mode 100644
index 00000000000..e01f062e51b
--- /dev/null
+++ b/it/it-projects/batch/tracking/v2/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo \ No newline at end of file
diff --git a/it/it-projects/batch/tracking/v2/src/main/xoo/sample/Sample.xoo b/it/it-projects/batch/tracking/v2/src/main/xoo/sample/Sample.xoo
new file mode 100644
index 00000000000..3f624a15b08
--- /dev/null
+++ b/it/it-projects/batch/tracking/v2/src/main/xoo/sample/Sample.xoo
@@ -0,0 +1,14 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ System.out.println("foo");
+ }
+
+ private String myMethod() {
+ System.out.println("foo");
+ return "hello";
+ }
+}
diff --git a/it/it-projects/batch/tracking/v2/src/main/xoo/sample/Sample.xoo.measures b/it/it-projects/batch/tracking/v2/src/main/xoo/sample/Sample.xoo.measures
new file mode 100644
index 00000000000..69a10eb19d4
--- /dev/null
+++ b/it/it-projects/batch/tracking/v2/src/main/xoo/sample/Sample.xoo.measures
@@ -0,0 +1 @@
+ncloc:10
diff --git a/it/it-projects/batch/xoo-history-v2/sonar-project.properties b/it/it-projects/batch/xoo-history-v2/sonar-project.properties
new file mode 100644
index 00000000000..e01f062e51b
--- /dev/null
+++ b/it/it-projects/batch/xoo-history-v2/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo \ No newline at end of file
diff --git a/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo
new file mode 100644
index 00000000000..b0fd1087030
--- /dev/null
+++ b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class ClassAdded {
+
+ public ClassAdded(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures
new file mode 100644
index 00000000000..66ba834e1ef
--- /dev/null
+++ b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures
@@ -0,0 +1,3 @@
+ncloc:12
+classes:1
+
diff --git a/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo
new file mode 100644
index 00000000000..393111bbab0
--- /dev/null
+++ b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo
@@ -0,0 +1,16 @@
+package sample;
+
+public class ClassToModify {
+
+ public ClassToModify(int i) {
+ int j = i++;
+ }
+
+ public String addedMethod() {
+ return "This method was added in v2";
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures
new file mode 100644
index 00000000000..71d60758637
--- /dev/null
+++ b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures
@@ -0,0 +1,3 @@
+ncloc:16
+classes:1
+
diff --git a/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo
new file mode 100644
index 00000000000..2b0288fc971
--- /dev/null
+++ b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class ClassToModify {
+
+ public ClassToModify(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures
new file mode 100644
index 00000000000..7812e4167fb
--- /dev/null
+++ b/it/it-projects/batch/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1
diff --git a/it/it-projects/batch/xoo-multi-languages/sonar-project.properties b/it/it-projects/batch/xoo-multi-languages/sonar-project.properties
new file mode 100644
index 00000000000..a2941788c41
--- /dev/null
+++ b/it/it-projects/batch/xoo-multi-languages/sonar-project.properties
@@ -0,0 +1,4 @@
+sonar.projectKey=multi-language-sample
+sonar.projectName=Multi-Language Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src
diff --git a/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo b/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo
new file mode 100644
index 00000000000..b1210973dd9
--- /dev/null
+++ b/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo.measures b/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo.measures
new file mode 100644
index 00000000000..ab1671431fc
--- /dev/null
+++ b/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo.measures
@@ -0,0 +1,10 @@
+ncloc:13
+#Used by dashboard/widgets tests
+complexity_in_classes:3
+classes:1
+comment_lines:3
+public_api:5
+public_undocumented_api:2
+duplicated_files:1
+duplicated_blocks:2
+duplicated_lines:3
diff --git a/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo2 b/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo2
new file mode 100644
index 00000000000..b1210973dd9
--- /dev/null
+++ b/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo2
@@ -0,0 +1,12 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo2.measures b/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo2.measures
new file mode 100644
index 00000000000..ab1671431fc
--- /dev/null
+++ b/it/it-projects/batch/xoo-multi-languages/src/sample/Sample.xoo2.measures
@@ -0,0 +1,10 @@
+ncloc:13
+#Used by dashboard/widgets tests
+complexity_in_classes:3
+classes:1
+comment_lines:3
+public_api:5
+public_undocumented_api:2
+duplicated_files:1
+duplicated_blocks:2
+duplicated_lines:3
diff --git a/it/it-projects/batch/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo b/it/it-projects/batch/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo
new file mode 100644
index 00000000000..b1210973dd9
--- /dev/null
+++ b/it/it-projects/batch/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/batch/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo.measures b/it/it-projects/batch/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo.measures
new file mode 100644
index 00000000000..3f73ea8f695
--- /dev/null
+++ b/it/it-projects/batch/xoo-sample-with-spaces/v1/my sources/main/xoo/sample/My Sample.xoo.measures
@@ -0,0 +1,11 @@
+ncloc:13
+#Used by dashboard/widgets tests
+complexity:3
+complexity_in_classes:3
+classes:1
+comment_lines:3
+public_api:5
+public_undocumented_api:2
+duplicated_files:1
+duplicated_blocks:2
+duplicated_lines:3
diff --git a/it/it-projects/batch/xoo-sample-with-spaces/v1/sonar-project.properties b/it/it-projects/batch/xoo-sample-with-spaces/v1/sonar-project.properties
new file mode 100644
index 00000000000..bae5f7f152c
--- /dev/null
+++ b/it/it-projects/batch/xoo-sample-with-spaces/v1/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=my sources/main/xoo
+sonar.language=xoo \ No newline at end of file
diff --git a/it/it-projects/batch/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo b/it/it-projects/batch/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo
new file mode 100644
index 00000000000..8c91df8b6cf
--- /dev/null
+++ b/it/it-projects/batch/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod_modified() {
+ return "hello";
+ }
+}
diff --git a/it/it-projects/batch/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo.measures b/it/it-projects/batch/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo.measures
new file mode 100644
index 00000000000..3f73ea8f695
--- /dev/null
+++ b/it/it-projects/batch/xoo-sample-with-spaces/v2/my sources/main/xoo/sample/My Sample.xoo.measures
@@ -0,0 +1,11 @@
+ncloc:13
+#Used by dashboard/widgets tests
+complexity:3
+complexity_in_classes:3
+classes:1
+comment_lines:3
+public_api:5
+public_undocumented_api:2
+duplicated_files:1
+duplicated_blocks:2
+duplicated_lines:3
diff --git a/it/it-projects/batch/xoo-sample-with-spaces/v2/sonar-project.properties b/it/it-projects/batch/xoo-sample-with-spaces/v2/sonar-project.properties
new file mode 100644
index 00000000000..bae5f7f152c
--- /dev/null
+++ b/it/it-projects/batch/xoo-sample-with-spaces/v2/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=my sources/main/xoo
+sonar.language=xoo \ No newline at end of file