Skip to content

Instantly share code, notes, and snippets.

@willis7
Created November 1, 2013 12:00
Show Gist options
  • Save willis7/7264446 to your computer and use it in GitHub Desktop.
Save willis7/7264446 to your computer and use it in GitHub Desktop.
Running a wlst script from gradle.
configurations {
weblogic
}
dependencies {
weblogic "com.oracle.weblogic:wlfullclient:10.3"
}
task runWLST << {
ant.taskdef(name: 'wlst',
classname: 'weblogic.ant.taskdefs.management.WLSTTask',
classpath: "$System.env.WEBLOGIC_CLASSPATH")
ant.wlst(fileName: "$rootDir/gradle/myPyScript.py",
debug: true ,
failOnError: true ,
classpath: "$System.env.WEBLOGIC_CLASSPATH",
arguments: "$config.wls.user $config.wls.password $config.wls.adminurl $warName $config.wls.targets")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment