I want to automate parsing and saving a json object for a resource or source directory during gradle build. I have a Jaw JsS class and I know how to run it from gradle. I do not know how to save the results or this class to any of the folders above. Below is an example of how I will run the script. Am I trying to do this in the current state?
package com.mrhaki.java;
public class SimpleParser {
public static void main(String[] args) {
}
}
Gradle Build
apply plugin: 'java'
task(runSimpleParser, dependsOn: 'classes', type: JavaExec) {
main = 'com.mrhaki.java.SimpleParser'
classpath = sourceSets.main.runtimeClasspath
args 'mrhaki'
systemProperty 'simpleparser.message', 'Hello '
}
defaultTasks 'runSimpleParser'
source
share