From: simonbrandhof Date: Mon, 24 Jan 2011 22:33:42 +0000 (+0100) Subject: SONAR-791 add a project with invalid source dir in IT X-Git-Tag: 2.6~115 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=10b9b9914cb775cb892036d4ae895c47ff602946;p=sonarqube.git SONAR-791 add a project with invalid source dir in IT --- diff --git a/tests/integration/tests/custom-projects/invalid-java-source-dir/pom.xml b/tests/integration/tests/custom-projects/invalid-java-source-dir/pom.xml new file mode 100644 index 00000000000..814f2a8f99e --- /dev/null +++ b/tests/integration/tests/custom-projects/invalid-java-source-dir/pom.xml @@ -0,0 +1,24 @@ + + + + 4.0.0 + org.sonar.tests + invalid-java-source-dir + invalid-java-source-dir + 1.0-SNAPSHOT + + SONAR-791 When the source directory is not exactly the java package root, Sonar should stop the analysis. + See http://jira.codehaus.org/browse/SONAR-791 + + + + + src + + + + false + + \ No newline at end of file diff --git a/tests/integration/tests/custom-projects/invalid-java-source-dir/src/main/java/com/foo/Bar.java b/tests/integration/tests/custom-projects/invalid-java-source-dir/src/main/java/com/foo/Bar.java new file mode 100644 index 00000000000..94482bf6d3b --- /dev/null +++ b/tests/integration/tests/custom-projects/invalid-java-source-dir/src/main/java/com/foo/Bar.java @@ -0,0 +1,8 @@ +package com.foo; + +public class Bar { + public void hello(String param) { + String s="hello"; + int i=3000; + } +} \ No newline at end of file