use of org.apache.maven.shared.io.location.FileLocation in project maven-plugins by apache.
the class RelativeFileLocatorStrategy method resolve.
@Override
public Location resolve(String locationSpecification, MessageHolder messageHolder) {
File file = new File(basedir, locationSpecification);
messageHolder.addInfoMessage("Searching for file location: " + file.getAbsolutePath());
Location location = null;
if (file.exists()) {
location = new FileLocation(file, locationSpecification);
} else {
messageHolder.addMessage("File: " + file.getAbsolutePath() + " does not exist.");
}
return location;
}
Aggregations