Add support for remote URLs in --read-inheritance
This commit is contained in:
parent
8b5465f36a
commit
4fd0cde9d1
@ -107,7 +107,7 @@ public class SpecialSource {
|
|||||||
.ofType(File.class);
|
.ofType(File.class);
|
||||||
acceptsAll(asList("h", "read-inheritance"), "Read inheritance map from file")
|
acceptsAll(asList("h", "read-inheritance"), "Read inheritance map from file")
|
||||||
.withRequiredArg()
|
.withRequiredArg()
|
||||||
.ofType(File.class);
|
.ofType(String.class);
|
||||||
|
|
||||||
//acceptsAll(asList("G", "remap-reflect-field"), "Remap reflection calls to getDeclaredField()"); // TODO
|
//acceptsAll(asList("G", "remap-reflect-field"), "Remap reflection calls to getDeclaredField()"); // TODO
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ public class SpecialSource {
|
|||||||
if (options.has("read-inheritance")) {
|
if (options.has("read-inheritance")) {
|
||||||
InheritanceMap inheritanceMap = new InheritanceMap();
|
InheritanceMap inheritanceMap = new InheritanceMap();
|
||||||
|
|
||||||
BufferedReader reader = new BufferedReader(new FileReader((File) options.valueOf("read-inheritance")));
|
BufferedReader reader = new BufferedReader(new FileReader(FileLocator.getFile((String) options.valueOf("read-inheritance"))));
|
||||||
|
|
||||||
BiMap<String, String> inverseClassMap = HashBiMap.create(jarMapping.classes).inverse();
|
BiMap<String, String> inverseClassMap = HashBiMap.create(jarMapping.classes).inverse();
|
||||||
inheritanceMap.load(reader, inverseClassMap);
|
inheritanceMap.load(reader, inverseClassMap);
|
||||||
|
Loading…
Reference in New Issue
Block a user