[Incident]: Some users report they are unable to access the case portal. Please see this community notice for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JDM6763
Level 4

Writing an installscript project to deploy an EAR File

I'm having some trouble setting up my script. I want my script to handle setting up environment variables, backing up configuration files, and copying the Ear file(s) where they need to go but I don't want to have the installer actually "install" files or other "objects", etc.
All of my functions (including ones that are copying files) are getting called during the initial welcome screen. My installscript is controlled through a program...endprogram block. Should I restructure my script to call thes functions through the events? If so, what would be recommended?

I'd like to have the each function show what is currently happening in the status screen/progress screen. Is there a pre-defined function to make this happen?

Thanks in advance!
Jim
Labels (1)
0 Kudos
2 Replies
Johannes_T
Level 6

I do somethig similar, only a setup.rul with

declare
...
program
START:
...
endprogram


I do everything "manually", show dialogs, copy files and much, much more. You don't really have to use events.

You can show the status window with something like this:
Enable(STATUS); 
StatusUpdate (ON, 10);
SetStatusWindow (10, "We're doing useful things...");
// Do something useful...
SetStatusWindow (20, "...");
Disable(STATUS)


Check the SetStatusWindow Example in the manual.
HTH,
Johannes
0 Kudos
JDM6763
Level 4

Johannes_T wrote:
I do somethig similar, only a setup.rul with

declare
...
program
START:
...
endprogram


I do everything "manually", show dialogs, copy files and much, much more. You don't really have to use events.

You can show the status window with something like this:
Enable(STATUS); 
StatusUpdate (ON, 10);
SetStatusWindow (10, "We're doing useful things...");
// Do something useful...
SetStatusWindow (20, "...");
Disable(STATUS)


Check the SetStatusWindow Example in the manual.
HTH,
Johannes


How are you doing your deploy? Are you using the Ant Tasks that come with OC4J? Do you have any examples you can share? I'm in the process of beating my head into a wall trying to make some sense of this mess. :confused:

This is the code I'm scrapping my head against:


























Deploying ${deploy.ear} to ${targetenv} via ${oc4j.deployer.uri}


userId="${oc4j.admin.user}"
password="${oc4j.admin.password}"
file="${deploy.ear}"
deploymentName="${oc4j.deployment.name}"
bindAllWebApps="default-web-site"
logFile="${log.dir}/deploy.log"/>



Undeploying ${oc4j.deployment.name} via ${oc4j.deployer.uri}


userId="${oc4j.admin.user}"
password="${oc4j.admin.password}"
deploymentName="${oc4j.deployment.name}"
logFile="${log.dir}/undeploy.log"/>



Redeploying ${deploy.ear} to ${targetenv} via ${oc4j.deployer.uri}


userId="${oc4j.admin.user}"
password="${oc4j.admin.password}"
file="${deploy.ear}"
deploymentName="${oc4j.deployment.name}"
logFile="${log.dir}/redeploy.log"/>

































Thanks in advance! 🙂
0 Kudos