use of com.sun.tools.javac.file.RelativePath.RelativeFile in project ceylon-compiler by ceylon.
the class JavacFileManager method getFileForInput.
public FileObject getFileForInput(Location location, String packageName, String relativeName) throws IOException {
nullCheck(location);
// validatePackageName(packageName);
nullCheck(packageName);
if (!isRelativeUri(relativeName))
throw new IllegalArgumentException("Invalid relative name: " + relativeName);
RelativeFile name = packageName.length() == 0 ? new RelativeFile(relativeName) : new RelativeFile(RelativeDirectory.forPackage(packageName), relativeName);
return getFileForInput(location, name);
}
Aggregations