From 70bab56edfc812303a7cfbe2e108e153dec1c248 Mon Sep 17 00:00:00 2001 From: valery1707 Date: Thu, 10 Jan 2019 13:56:53 +0300 Subject: [PATCH] Describe maven and gradle plugins --- lang_java.adoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lang_java.adoc b/lang_java.adoc index c7fd221b9..bc0a3c555 100644 --- a/lang_java.adoc +++ b/lang_java.adoc @@ -24,6 +24,18 @@ https://docs.oracle.com/javase/7/docs/api/java/io/BufferedInputStream.html[Buffe etc) is not supported and probably won't be supported, as a lot of parsing functionality in KS relies on seek support. +== Generating code + +Before parsing structures described in Kaitai templates you need to generate code of Java classes +which implement parsing logic. + +Generating this code can be done by call `kaitai-struct-compiler` http://doc.kaitai.io/user_guide.html#_invocation[directly]. + +For some build tools exists plugins which can involve this step simiously into project's build flow: + +* https://maven.apache.org[Apache Maven]: https://github.com/valery1707/kaitai-maven-plugin[kaitai-maven-plugin] +* https://gradle.org[Gradle]: https://github.com/valery1707/kaitai-gradle-plugin[kaitai-gradle-plugin] + == Runtime library === Installation