// =====================================================================
//
// Copyright (C) 2012 - 2016, Philip Graf
//
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// =====================================================================
package ch.acanda.eclipse.pmd.v07tov08;
import java.nio.file.Path;
import org.eclipse.core.resources.IProject;
/**
* A rule set configuration stored in the file system.
*
* @author Philip Graf
*/
@Deprecated
class FileSystemRuleSetConfiguration extends RuleSetConfiguration {
private final Path location;
public FileSystemRuleSetConfiguration(final int id, final String name, final Path location) {
super(id, name);
this.location = location.toAbsolutePath().normalize();
}
@Override
public String getType() {
return "File System";
}
@Override
public String getLocation() {
return location.toString();
}
@Override
public Path getConfiguration(final IProject project) {
return location;
}
}