Entering content frame

This graphic is explained in the accompanying text Example: Command Line Parameters Locate the document in its SAP Library structure

Examples

This section specifies two scripts as examples, which use dc.bat to load (sync) a set of components from the DTR and build them. The examples are designed to illustrate how you can write your own scripts to automate the central component build.

In these examples, we assume that %JAVA_HOME% already points to a JDK installation:

Making a Set of DCs Locally Available (sync)

set SAPDEVSTUDIOHOME=C:\Program Files\SAP\JDT\eclipse

set CONFIG=-f "C:\Documents and Settings\john\.dtc\TestConfig1"

set SYNCPARAMS= -c sync %CONFIG% -u john -p %1 -d ERROR

call dc %SYNCPARAMS% -s sap.com_SC1 -v  sap.com -n  dc1 

call dc %SYNCPARAMS% -s sap.com_SC1 -v  sap.com -n  dc2

call dc %SYNCPARAMS% -s sap.com_SC2 -v  sap.com -n  dc3

This example calls dc.bat several times to sync three DCs dc1,dc2 and dc3. The script is called with the DTR password as the first parameter.

Example

Assuming that the script is called sync.cmd, the call would be:

sync dtrpassword 2> trace.txt

Building a Set of Components

set SAPDEVSTUDIOHOME=C:\Program Files\SAP\JDT\eclipse

set BUILDPARAMS= -c build -d ERROR -f "C:\Documents and Settings\john\.dtc\TestConfig1"

call dc %BUILDPARAMS% -s sap.com_SC1 -v  sap.com -n  dc1

call dc %BUILDPARAMS% -s sap.com_SC1 -v  sap.com -n  dc2

call dc %BUILDPARAMS% -s sap.com_SC2 -v  sap.com -n  dc3

This example calls dc.bat several times to build three DCs dc1,dc2 and dc3.

Example

Assuming that the script is called build.cmd, the call would be:

build 2> trace.txt.

 

 

 

 

Leaving content frame