CentraSite Documentation : Runtime Governance with CentraSite : Virtualized Services in CentraSite : Deploying Virtualized Services and Consumer Applications : Deploying, Undeploying and Redeploying Consumer Applications : Deploying Consumer Applications Using a Script File : Creating a Script File to Invoke the Deployment Operation (for Windows)
Creating a Script File to Invoke the Deployment Operation (for Windows)
Create a script file that looks as follows if CentraSite is running under Windows.
@echo off
set JAVAEXE=fullPathToJava.exe set REDIST=CentraSiteHomeDirectory\redist
set BASEDIR=%~dp0
cd /d %REDIST%
 
REM build CLASSPATH with all files from jar directory
set LOCAL_CLASSPATH=
for %%I in (".\*.jar") do call "CentraSiteHomeDirectory\bin\cfg\lcp.cmd" %%I
 
%JAVAEXE% -cp %LOCAL_CLASSPATH% deployerClassName %*
cd /d %BASEDIR%
Where deployerClassName is the name of the deployer that you want to run.
Example 29. Example
The following is an example of a script file that calls the Consumer Applications deployer:
@echo off
REM
REM Run Consumer Applications deployer
REM
set JAVAEXE=D:\software\java\jdk1.5.0_12\bin\java
set REDIST=C:\SoftwareAG\CentraSite\redist
set BASEDIR=%~dp0
cd /d %REDIST%
 
REM build CLASSPATH with all files from jar directory
set LOCAL_CLASSPATH=
for %%I in (".\*.jar") do call "C:\SoftwareAG\CentraSite\bin\cfg\lcp.cmd" %%I
 
%JAVAEXE% -cp %LOCAL_CLASSPATH%
com.softwareag.centrasite.runtime.pep.util.VirtualServiceDeployer %*
cd /d %BASEDIR%
Copyright © Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback