}
}
@Override
public FileObject getFileForOutput(Location location, String packageName, String relativeName, FileObject sibling) throws IOException {
FileKey key = FileKey.newResourceName(packageName, relativeName);
// Address a bug
if (location == StandardLocation.SOURCE_PATH) {
FileObject file = sourcePath.getReadable(key);
if (file == null) {
throw new FileNotFoundException("Not found:" + key.toString());
}
return file;
}
else {
FileManager files = getFiles(location);