Skip to content

Commit 3e13690

Browse files
committed
添加demo
1 parent bf8feeb commit 3e13690

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • morpher-passes/src/main/java/com/github/luiox/passes

morpher-passes/src/main/java/com/github/luiox/passes/Main.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public static void main(String[] args) {
1717
PassContext context = new PassContext();
1818
ResourceHelper.importFromJar(context.getContainer(), "sample-001.jar");
1919

20+
// 添加依赖库路径,如果不加的话,可能会导致找不到类
21+
// context.getPassHelper().addLibPath("dep");
22+
2023
PassRunner runner = new PassRunner();
2124
runner.add(Pipeline.of("test")
2225
.add(Phase.of("test1", 0, ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS)

0 commit comments

Comments
 (0)