Saturday, November 7, 2009

WLST script to post source path of an application

Yesterday Neeraj posted question in Oracle forums, how to get absolute source path of an application using WLST, below is the script for this.

NOTE :- Replacec "#TAB#" with "tab" keystroke. Blogspot removes "tabs", so please replace the "#TAB#" else code will not work.


# START OF SCRIPT

connect('vasadmin','vaspassword','t3://localhost:7001')
domainConfig()
vasApps = cmo.getAppDeployments()

for app in vasApps:
#TAB#vasAppPath = '/AppDeployments/' + app.getName()
#TAB#cd(vasAppPath)
#TAB#print app.getName() + ' : source path is : ' + cmo.getAbsoluteSourcePath()

# END OF SCRIPT

Thanks.

Vijay Bheemineni.

0 comments: