-
-
Save willis7/c8a64da4253a52039ee3 to your computer and use it in GitHub Desktop.
Gradle - importToOSB (Fail)
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
:configEnv | |
Environment is set to local | |
:deployToOSB FAILED | |
FAILURE: Build failed with an exception. | |
* Where: | |
Build file '\build.gradle' line: 56 | |
* What went wrong: | |
Execution failed for task ':deployToOSB'. | |
> Cannot get the value of write-only property 'script' on root project 'XXXX'. | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. | |
BUILD FAILED | |
Total time: 3.871 secs |
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 | |
osb | |
} | |
dependencies { | |
weblogic "com.oracle.weblogic:wlfullclient:10.3" | |
osb "com.oracle.osb:alsb:11.1.0.0.0", "com.oracle.osb:sb-kernel-api:11.1.0.0.0", "com.oracle.osb:sb-kernel-impl:11.1.0.0.0", "com.oracle.osb:sb-kernel-wls:11.1.0.0.0" | |
} | |
task deployToOSB << { | |
ant.taskdef(name: 'wlst', | |
classname: 'weblogic.ant.taskdefs.management.WLSTTask', | |
classpath: (configurations.weblogic + configurations.osb).asPath) | |
ant.wlst(fileName: config.osb.importScript, | |
debug: true , | |
failOnError: false , | |
arguments: "$config.wls.user $config.wls.password $config.wls.adminurl $project.name $config.osb.importjar $config.osb.importCustomFile"){ | |
script(){ | |
adminUser=sys.argv[1] | |
adminPassword=sys.argv[2] | |
adminUrl=sys.argv[3] | |
passphrase = "osb" | |
project=sys.argv[4] | |
importJar=sys.argv[5] | |
customFile=sys.argv[6] | |
connect(adminUser,adminPassword,adminUrl) | |
domainRuntime() | |
}} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment