Created
November 1, 2013 12:00
-
-
Save willis7/7264446 to your computer and use it in GitHub Desktop.
Running a wlst script from gradle.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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