From 10b9b9914cb775cb892036d4ae895c47ff602946 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Mon, 24 Jan 2011 23:33:42 +0100 Subject: [PATCH] SONAR-791 add a project with invalid source dir in IT --- .../invalid-java-source-dir/pom.xml | 24 +++++++++++++++++++ .../src/main/java/com/foo/Bar.java | 8 +++++++ 2 files changed, 32 insertions(+) create mode 100644 tests/integration/tests/custom-projects/invalid-java-source-dir/pom.xml create mode 100644 tests/integration/tests/custom-projects/invalid-java-source-dir/src/main/java/com/foo/Bar.java 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 -- 2.39.5