|
Hi, Something like this should do what you want: createTask('run', dependsOn: 'compile') { ant.java(classname: 'MainClassName') { classpath(path: dependencies.antpath('runtime')) classpath(path: classesDir) } } You can then execute 'gradle run' to compile and run the main class. Adam Johannes Zillmann wrote: --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
- [gradle-dev] starting main from gradle Johannes Zillmann
- Re: [gradle-dev] starting main from gradle Adam Murdoch
- Re: [gradle-dev] starting main from gradle Johannes Zillmann
