Skip to content

Instantly share code, notes, and snippets.

@willis7

willis7/Error Secret

Last active December 20, 2015 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willis7/c8a64da4253a52039ee3 to your computer and use it in GitHub Desktop.
Save willis7/c8a64da4253a52039ee3 to your computer and use it in GitHub Desktop.
Gradle - importToOSB (Fail)
: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
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