Improved errors publishing IGs
This commit is contained in:
parent
0fdb8e767a
commit
74893e42e7
|
@ -161,7 +161,11 @@ public class TextFile {
|
|||
}
|
||||
|
||||
public static String fileToString(String src) throws FileNotFoundException, IOException {
|
||||
FileInputStream fs = new FileInputStream(new CSFile(src));
|
||||
CSFile f = new CSFile(src);
|
||||
if (!f.exists()) {
|
||||
throw new IOException("File "+src+" not found");
|
||||
}
|
||||
FileInputStream fs = new FileInputStream(f);
|
||||
try {
|
||||
return streamToString(fs);
|
||||
} finally {
|
||||
|
|
|
@ -351,5 +351,14 @@ public class PackageList {
|
|||
return list;
|
||||
}
|
||||
|
||||
public boolean hasPath(String pathVer) {
|
||||
for (PackageListEntry t : versions) {
|
||||
if (t.path() != null && t.path().equals(pathVer)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue