-
Hi, I'm new to Rewrite and I'm interested in using it to parse java files into their LSTs and export them as an XML file. I understand I can write a recipe to do this, but recipes are designed to be added to a project as a dependency and ran internally as a tool. Instead, I would like to use this recipe like a standalone java application (like a JAR file) and pass it in java source files as CLI arguments. How can I accomplish this? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @kjy5 . There would be a couple of complications with this approach, so I'm wondering if OpenRewrite is the right choice for you. What would you like to use this for? One complication is that our parsers require you to set up the classpath correctly, which is no easy feat if you look to our Maven and Gradle plugin handling. Another complication is that serialization of LSTs has explicitly not been open sourced, as we view that as unique what we do at Moderne. For more information you can also view What is the difference between OpenRewrite and Moderne?. |
Beta Was this translation helpful? Give feedback.
Hi @kjy5 . There would be a couple of complications with this approach, so I'm wondering if OpenRewrite is the right choice for you. What would you like to use this for?
One complication is that our parsers require you to set up the classpath correctly, which is no easy feat if you look to our Maven and Gradle plugin handling. Another complication is that serialization of LSTs has explicitly not been open sourced, as we view that as unique what we do at Moderne. For more information you can also view What is the difference between OpenRewrite and Moderne?.