966 if (getClassOutDir() != null) { |
966 if (getClassOutDir() != null) { |
967 dir = getClassOutDir(); |
967 dir = getClassOutDir(); |
968 } else { |
968 } else { |
969 File siblingDir = null; |
969 File siblingDir = null; |
970 if (sibling != null && sibling instanceof RegularFileObject) { |
970 if (sibling != null && sibling instanceof RegularFileObject) { |
971 siblingDir = ((RegularFileObject)sibling).f.getParentFile(); |
971 siblingDir = ((RegularFileObject)sibling).file.getParentFile(); |
972 } |
972 } |
973 return new RegularFileObject(this, new File(siblingDir, fileName.basename())); |
973 return new RegularFileObject(this, new File(siblingDir, fileName.basename())); |
974 } |
974 } |
975 } else if (location == SOURCE_OUTPUT) { |
975 } else if (location == SOURCE_OUTPUT) { |
976 dir = (getSourceOutDir() != null ? getSourceOutDir() : getClassOutDir()); |
976 dir = (getSourceOutDir() != null ? getSourceOutDir() : getClassOutDir()); |