This file contains 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 << { |
This file contains 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
def execute(String command, List<String> parameters) { | |
def ant = new AntBuilder() | |
ant.exec(outputproperty:"cmdOut", | |
errorproperty: "cmdErr", | |
resultproperty:"cmdExit", | |
failonerror: "true", | |
executable: command) { | |
arg(line: parameters.join(" ")) | |
} | |
[exitCode: ant.project.properties.cmdExit, stderr: ant.project.properties.cmdErr, stdout: ant.project.properties.cmdOut] |