CentraSite Documentation : Runtime Governance with CentraSite : Consumer Applications : Deploying or Publishing Consumer Applications to Gateways : Overview : Deploying Consumer Applications from the Command Line : Write a Script File to Invoke Deployment Operation (for Windows)
Write a Script File to Invoke 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
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 © 2005-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback