aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-plugin
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-04-09 02:19:28 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-04-26 13:00:11 +0400
commite174628696636f74808f61c76a44da994edcadc7 (patch)
tree06af7a9e94d17294cce72ddded48a84c8b2b3f1f /plugins/sonar-core-plugin
parent4eb630d0ff939898efdd9ef29330736ca4e50ebc (diff)
downloadsonarqube-e174628696636f74808f61c76a44da994edcadc7.tar.gz
sonarqube-e174628696636f74808f61c76a44da994edcadc7.zip
SONAR-2298 Add support for multi-modules for non-Maven projects
* Use ProjectDefinition in ProjectTree instead of MavenProject * Allow to specify extensions for project's container via ProjectDefinition, so MavenProject not passed directly to batch in mojos * ProjectDefinition should store all information in properties * Replace DefaultProjectFileSystem by DefaultProjectFileSystem2, which works not only for Maven projects * Add DefaultProjectClasspath, which works not only for Maven projects * Enable ProjectLinksSensor only for Maven
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ProjectLinksSensor.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ProjectLinksSensor.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ProjectLinksSensor.java
index c9ef33368dc..5f0ace5847f 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ProjectLinksSensor.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ProjectLinksSensor.java
@@ -26,9 +26,11 @@ import org.apache.maven.model.Scm;
import org.apache.maven.project.MavenProject;
import org.sonar.api.batch.Sensor;
import org.sonar.api.batch.SensorContext;
+import org.sonar.api.batch.SupportedEnvironment;
import org.sonar.api.resources.Project;
import org.sonar.api.resources.ProjectLink;
+@SupportedEnvironment("maven")
public class ProjectLinksSensor implements Sensor {
public static final String KEY_HOME = "homepage";