Hi,
I am trying to start weblogic through build.gradle…I have tried two ways 1)I have written wlst script to start weblogic but when try to execute this script through build.gradle, I get very strange error while starting weblogic that "Provide_URL is not set. Although when I run this wlst script through command line directly,weblogic starts properly. wlst command to start weblogic in build.gradle:
task startWeblogic(type: JavaExec) {
def weblogicScriptingClasspath = fileTree(‘C:\bea-10.3.6\wlserver_10.3\server\lib’) {
includes = [’**/*.jar’]
}
def weblogicDomainDirectory = 'C:\bea-10.3.6\user_projects\domains\domainlocal
main = ‘weblogic.WLST’
classpath = weblogicScriptingClasspath
args = [‘weblogicScript-Start.py’] as List
2)In second way,I am starting weblgic though batch file and I am trying to call this batch file though build.gradle but I get this below error: Execution failed for task startWeblogic caused by Process ‘command ‘cmd’’ finished with non-zero exit value 1
this is the command I am using to call batch file:
task startWeblogic(type:Exec) {
commandLine “cmd”, “/c, startweblogic.bat”
}
Please help me with this.