0

I wrote a simple java program in Eclipse which parses a xml file and I need to write Gradle script which receives the path to the xml file as a property and invokes the Java program. Could you guys help me with the script? I`m new to java and this is my first time working with gradle.

1
  • does my answer solve the problem? If yes, please accept. Commented Mar 25, 2015 at 5:49

1 Answer 1

1

What you need is a task of type JavaExec. See here for docs and here for a nice example.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.