# HG changeset patch # User wenzelm # Date 1625218553 -7200 # Node ID b5d52a4d6fd9d061833409ee1c833a78c4a3e593 # Parent c6631069357bfcdef613069142a4a94c50fc4f12 tuned whitespace; diff -r c6631069357b -r b5d52a4d6fd9 src/Tools/Setup/isabelle/setup/Build_Scala.java --- a/src/Tools/Setup/isabelle/setup/Build_Scala.java Fri Jul 02 11:29:33 2021 +0200 +++ b/src/Tools/Setup/isabelle/setup/Build_Scala.java Fri Jul 02 11:35:53 2021 +0200 @@ -39,65 +39,23 @@ if (Files.exists(path)) { props.load(Files.newBufferedReader(path)); } } - @Override public String toString() - { - return component_dir.toString(); - } - - public String component_name() - { - return component_dir.toFile().getName(); - } - - public String name() - { - return props.getProperty("name", component_name()); - } + @Override public String toString() { return component_dir.toString(); } - public String description() - { - return props.getProperty("description", name()); - } - - public String lib_name() - { - return props.getProperty("lib", "lib") + "/" + name(); - } - - public String jar_name() - { - return lib_name() + ".jar"; - } + public String component_name() { return component_dir.toFile().getName(); } + public String name() { return props.getProperty("name", component_name()); } + public String description() { return props.getProperty("description", name()); } - public String shasum_name() - { - return lib_name() + ".shasum"; - } + public String lib_name() { return props.getProperty("lib", "lib") + "/" + name(); } + public String jar_name() { return lib_name() + ".jar"; } + public String shasum_name() { return lib_name() + ".shasum"; } - public String main() - { - return props.getProperty("main", ""); - } - - public String[] sources() - { - return props.getProperty("sources", "").split("\\s+"); - } + public String main() { return props.getProperty("main", ""); } - public String[] services() - { - return props.getProperty("services", "").split("\\s+"); - } + public String[] sources() { return props.getProperty("sources", "").split("\\s+"); } + public String[] services() { return props.getProperty("services", "").split("\\s+"); } - public Path path(String file) - { - return component_dir.resolve(file); - } - - public boolean exists(String file) - { - return Files.exists(path(file)); - } + public Path path(String file) { return component_dir.resolve(file); } + public boolean exists(String file) { return Files.exists(path(file)); } public String shasum(String file) throws IOException, NoSuchAlgorithmException @@ -130,9 +88,7 @@ String shasum_sources; { StringBuilder _shasum = new StringBuilder(); - for (String s : sources) { - _shasum.append(context.shasum(s)); - } + for (String s : sources) { _shasum.append(context.shasum(s)); } shasum_sources = _shasum.toString(); } if (fresh || !shasum_old.equals(context.shasum(jar_name) + shasum_sources)) {