Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

Commit

Permalink
Avoid pushing dev builds to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolykt committed Jul 12, 2022
1 parent 9ea0178 commit 28302b1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ static Path getDownload(Path relativePath, String path, String hash, String file
}
URL url = new URL(path);
if ("file".equals(url.getProtocol())) {
if (!Boolean.getBoolean("de.geolykt.starloader.brachyura.bootstrap.supressFileComplaints")) {
System.setProperty("de.geolykt.starloader.brachyura.bootstrap.supressFileComplaints", "true");
System.out.println("Warning: Buildscript dependencies are being linked to through using an absolute path. As such this install may not work on other systems!");
}
return Paths.get(url.toURI()); // For debug usage
}
Path target = BOOTSTRAP_DIR.resolve(fileName);
Expand Down

0 comments on commit 28302b1

Please sign in to comment.