java - how to run after compiling thru gradle? -


i using java plugin in build.gradle.

apply plugin: 'java'   repositories {     mavencentral()  }   dependencies {     compile 'xyz:xyz:4.11' }  sourcesets {     test {         java {             srcdir 'agent'         }     } } 

i generating .class files doing

$ gradle compilejava 

now .class files have been generated in build/, how run code? 1 of class files contains main. want gradle task:

classpath=./mysql-connector-java-commercial-5.1.13-bin.jar:. $java_home/bin/java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=10000 collector arg1 

you may want take @ gradle application plugin.

with it, able run application using run task.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -