aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlavo <zjx001202@126.com>2019-12-06 03:54:47 +0800
committerGlavo <zjx001202@126.com>2019-12-06 03:54:47 +0800
commit568e70982ee0d574345cb5ae90ebd43ceaa090e8 (patch)
tree19de0235d813ee6e48d9cc11ae55cfb3fb6d77f8
parent9d9b24ef2e70290dbcec47de530d4dd72c35d32d (diff)
downloadgjavah-568e70982ee0d574345cb5ae90ebd43ceaa090e8.zip
gjavah-568e70982ee0d574345cb5ae90ebd43ceaa090e8.tar.gz
gjavah-568e70982ee0d574345cb5ae90ebd43ceaa090e8.tar.bz2
update README.mdHEADmaster
-rw-r--r--README.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/README.md b/README.md
index 42f596a..0600b90 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ repositories {
}
dependencies {
- compile 'org.glavo.glavo:gjavah:0.1.1'
+ compile 'org.glavo.glavo:gjavah:0.2.0'
}
```
@@ -16,8 +16,10 @@ dependencies {
```java
import org.glavo.javah.*;
-var writer = new PrintWriter(System.out);
-HeaderGenerator.generateHeader("java.lang.Object", writer);
-writer.flush();
-
+var task = new JavahTask();
+task.setOutputDir(Paths.get(""));
+task.addRuntimeSearchPath();
+task.addClass("java.lang.Object");
+task.addClass("java.lang.String");
+task.run();
``` \ No newline at end of file