Finish changes for Npm loading changes
This commit is contained in:
parent
2f253f3457
commit
3570bcb07f
|
@ -496,17 +496,17 @@ public class CorePackageVersionConvertor {
|
||||||
try {
|
try {
|
||||||
cnt = conv.convert(cnt);
|
cnt = conv.convert(cnt);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new Exception("Error processing "+folder.getName()+"/"+s+": "+e.getMessage(), e);
|
throw new Exception("Error processing "+folder.getFolderName()+"/"+s+": "+e.getMessage(), e);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// nothing
|
// nothing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cnt != null) {
|
if (cnt != null) {
|
||||||
dst.addFile(folder.getName(), s, cnt, null);
|
dst.addFile(folder.getFolderName(), s, cnt, null);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dst.addFile(folder.getName(), s, cnt, null);
|
dst.addFile(folder.getFolderName(), s, cnt, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,10 +81,7 @@ public class PackageCacheTests {
|
||||||
Assertions.assertEquals(uscore.list("package").size(), uscoreMin.list("package").size());
|
Assertions.assertEquals(uscore.list("package").size(), uscoreMin.list("package").size());
|
||||||
byte[] b1 = TextFile.streamToBytes(uscore.load(uscore.list("package").get(1)));
|
byte[] b1 = TextFile.streamToBytes(uscore.load(uscore.list("package").get(1)));
|
||||||
byte[] b2 = TextFile.streamToBytes(uscoreMin.load(uscore.list("package").get(1)));
|
byte[] b2 = TextFile.streamToBytes(uscoreMin.load(uscore.list("package").get(1)));
|
||||||
// TextFile.bytesToFile(b1, "/Users/grahamegrieve/temp/b1.json");
|
Assertions.assertArrayEquals(b1, b2);
|
||||||
// TextFile.bytesToFile(b2, "/Users/grahamegrieve/temp/b2.json");
|
|
||||||
Assertions.assertArrayEquals(b1, b2);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue