equal
deleted
inserted
replaced
109 java_home: Path = default_java_home, |
109 java_home: Path = default_java_home, |
110 progress: Progress = new Progress |
110 progress: Progress = new Progress |
111 ): Unit = { |
111 ): Unit = { |
112 Isabelle_System.require_command("ant", test = "-version") |
112 Isabelle_System.require_command("ant", test = "-version") |
113 Isabelle_System.require_command("patch") |
113 Isabelle_System.require_command("patch") |
114 Isabelle_System.require_command("unzip", test = "-h") |
|
115 |
114 |
116 val component_dir = Components.Directory.create(component_path, progress = progress) |
115 val component_dir = Components.Directory.create(component_path, progress = progress) |
117 |
116 |
118 |
117 |
119 /* jEdit directory */ |
118 /* jEdit directory */ |
204 Isabelle_System.with_tmp_file("tmp", ext = "zip") { zip_path => |
203 Isabelle_System.with_tmp_file("tmp", ext = "zip") { zip_path => |
205 val url = |
204 val url = |
206 "https://sourceforge.net/projects/jedit-plugins/files/" + name + "/" + vers + "/" + |
205 "https://sourceforge.net/projects/jedit-plugins/files/" + name + "/" + vers + "/" + |
207 name + "-" + vers + "-bin.zip/download" |
206 name + "-" + vers + "-bin.zip/download" |
208 Isabelle_System.download_file(url, zip_path, progress = progress) |
207 Isabelle_System.download_file(url, zip_path, progress = progress) |
209 Isabelle_System.bash("unzip -x " + File.bash_path(zip_path), cwd = jars_dir.file).check |
208 Isabelle_System.extract(zip_path, jars_dir) |
210 } |
209 } |
211 } |
210 } |
212 |
211 |
213 |
212 |
214 /* resources */ |
213 /* resources */ |