MCPcopy Create free account
hub / github.com/Whiley/WhileyCompiler / extractDependencies

Method extractDependencies

src/main/java/wyc/Compiler.java:186–196  ·  view source on GitHub ↗
(File dep, List<WyilFile> dependencies)

Source from the content-addressed store, hash-verified

184 }
185
186 public static void extractDependencies(File dep, List<WyilFile> dependencies) throws IOException {
187 String suffix = getSuffix(dep.getName());
188 //
189 switch(suffix) {
190 case "zip":
191 extractFromZip(dep,dependencies);
192 break;
193 default:
194 throw new IllegalArgumentException("invalid whileypath entry \"" + dep.getName() + "\"");
195 }
196 }
197
198 /**
199 * Extract all WyilFiles contained in a zipfile.

Callers 3

runMethod · 0.95
runMethod · 0.95
runMethod · 0.95

Calls 3

getSuffixMethod · 0.95
extractFromZipMethod · 0.95
getNameMethod · 0.65

Tested by

no test coverage detected