aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-deprecated/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-10-16 17:57:54 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-10-16 17:57:54 +0200
commitb7a6509ebe171c78132c1b6c8739743088dd86ca (patch)
tree3e058320303f17af3846323fcecbf8d85b983f8b /sonar-deprecated/src
parent8aa56b454c0b126baba39be04e60541a98d3f532 (diff)
downloadsonarqube-b7a6509ebe171c78132c1b6c8739743088dd86ca.tar.gz
sonarqube-b7a6509ebe171c78132c1b6c8739743088dd86ca.zip
Remove file system refactoring from API
Diffstat (limited to 'sonar-deprecated/src')
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/batch/FileFilter.java2
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/scan/filesystem/FileSystemFilter.java60
2 files changed, 1 insertions, 61 deletions
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/batch/FileFilter.java b/sonar-deprecated/src/main/java/org/sonar/api/batch/FileFilter.java
index 49fd6e7a4ea..16c4161bd94 100644
--- a/sonar-deprecated/src/main/java/org/sonar/api/batch/FileFilter.java
+++ b/sonar-deprecated/src/main/java/org/sonar/api/batch/FileFilter.java
@@ -24,7 +24,7 @@ import org.sonar.api.scan.filesystem.FileSystemFilter;
import java.io.File;
/**
- * @deprecated in 3.5. Replaced by {@link org.sonar.api.scan.filesystem.InputFileFilter}
+ * @deprecated in 3.5. Replaced by {@link org.sonar.api.scan.filesystem.FileSystemFilter}
*/
@Deprecated
public abstract class FileFilter implements java.io.FileFilter, FileSystemFilter {
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/scan/filesystem/FileSystemFilter.java b/sonar-deprecated/src/main/java/org/sonar/api/scan/filesystem/FileSystemFilter.java
deleted file mode 100644
index 3a215937d23..00000000000
--- a/sonar-deprecated/src/main/java/org/sonar/api/scan/filesystem/FileSystemFilter.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2013 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.api.scan.filesystem;
-
-import org.sonar.api.BatchExtension;
-
-import java.io.File;
-
-/**
- * Extension point to exclude some files from project scan. Some use-cases :
- * <ul>
- * <li>exclude the files that are older than x days</li>
- * <li>exclude the files which names start with Generated</li>
- * </ul>
- * @since 3.5
- * @deprecated in 4.0. Replaced by {@link InputFileFilter}.
- */
-@Deprecated
-public interface FileSystemFilter extends BatchExtension {
-
- /**
- * Plugins must not implement this interface. It is provided at runtime.
- */
- public interface Context {
- ModuleFileSystem fileSystem();
-
- FileType type();
-
- File relativeDir();
-
- /**
- * File path relative to source directory. Never return null.
- */
- String relativePath();
-
- /**
- * Absolute file path. Directory separator is slash, even on windows. Never return null.
- */
- String canonicalPath();
- }
-
- boolean accept(File file, Context context);
-}