小石头
Excellence in any department can be attained only by the labor of a lifetime; it is not to be purchased at a lesser price.
posts - 91,comments - 22,trackbacks - 0

JBoss_run.bat

@echo off
rem -------------------------------------------------------------------------
rem JBoss Bootstrap Script for Win32
rem -------------------------------------------------------------------------

rem $Id: run.bat,v 1.13.4.3 2006/05/12 10:40:07 dimitris Exp $

@if not "%ECHO%" == ""  echo %ECHO%
@if "%OS%" == "Windows_NT"  setlocal

set DIRNAME=.\
if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
set PROGNAME=run.bat
if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%

rem Read all command line arguments

REM
REM The %ARGS% env variable commented out in favor of using %* to include
REM all args in java command line. See bug #840239. [jpl]
REM
REM set ARGS=
REM :loop
REM if [%1] == [] goto endloop
REM         set ARGS=%ARGS% %1
REM         shift
REM         goto loop
REM :endloop

rem Find run.jar, or we can't continue

set RUNJAR=%DIRNAME%\run.jar
if exist "%RUNJAR%" goto FOUND_RUN_JAR
echo Could not locate %RUNJAR%. Please check that you are in the
echo bin directory when running this script.
goto END

:FOUND_RUN_JAR

if not "%JAVA_HOME%" == "" goto ADD_TOOLS

set JAVA=java

echo JAVA_HOME is not set.  Unexpected results may occur.
echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
goto SKIP_TOOLS

:ADD_TOOLS

set JAVA=%JAVA_HOME%\bin\java

if exist "%JAVA_HOME%\lib\tools.jar" goto SKIP_TOOLS
echo Could not locate %JAVA_HOME%\lib\tools.jar. Unexpected results may occur.
echo Make sure that JAVA_HOME points to a JDK and not a JRE.

:SKIP_TOOLS

rem Include the JDK javac compiler for JSP pages. The default is for a Sun JDK
rem compatible distribution to which JAVA_HOME points

set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar

rem If JBOSS_CLASSPATH is empty, don't include it, as this will
rem result in including the local directory, which makes error tracking
rem harder.
if "%JBOSS_CLASSPATH%" == "" (
 set JBOSS_CLASSPATH=%JAVAC_JAR%;%RUNJAR%
) ELSE (
 set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%JAVAC_JAR%;%RUNJAR%
)

rem Setup JBoss specific properties
set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME%
set JBOSS_HOME=%DIRNAME%\..

rem Sun JVM memory allocation pool parameters. Modify as appropriate.
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

rem JPDA options. Uncomment and modify as appropriate to enable remote debugging.
rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%

rem Setup the java endorsed dirs
set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed

echo ===============================================================================
echo .
echo   JBoss Bootstrap Environment
echo .
echo   JBOSS_HOME: %JBOSS_HOME%
echo .
echo   JAVA: %JAVA%
echo .
echo   JAVA_OPTS: %JAVA_OPTS%
echo .
echo   CLASSPATH: %JBOSS_CLASSPATH%
echo .
echo ===============================================================================
echo .

:RESTART
"%JAVA%" %JAVA_OPTS% "-Djava.endorsed.dirs=%JBOSS_ENDORSED_DIRS%" -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %*
IF ERRORLEVEL 10 GOTO RESTART

:END
if "%NOPAUSE%" == "" pause

:END_NO_PAUSE



par.bat

@echo off
call basedir.bat
call %CODEDIR%\tools\setenv.bat
call maven clean par
pause

basedir.bat

@FOR /F "usebackq tokens=1-10 delims=\" %%a in ('%~dp0') do (set a=%%a)
@FOR /F "usebackq tokens=1-10 delims=\" %%a in ('%~dp0') do (set b=%%b)
@FOR /F "usebackq tokens=1-10 delims=\" %%a in ('%~dp0') do (set c=%%c)
@FOR /F "usebackq tokens=1-10 delims=\" %%a in ('%~dp0') do (set d=%%d)
@FOR /F "usebackq tokens=1-10 delims=\" %%a in ('%~dp0') do (set e=%%e)
@FOR /F "usebackq tokens=1-10 delims=\" %%a in ('%~dp0') do (set f=%%f)
@FOR /F "usebackq tokens=1-10 delims=\" %%a in ('%~dp0') do (set g=%%g)
@FOR /F "usebackq tokens=1-10 delims=\" %%a in ('%~dp0') do (set h=%%h)
@FOR /F "usebackq tokens=1-10 delims=\" %%a in ('%~dp0') do (set i=%%i)
@FOR /F "usebackq tokens=1-10 delims=\" %%a in ('%~dp0') do (set j=%%j)
@set dirend=false
@set CODEDIR=%a%
@set v=%b%s
if %v% NEQ s (if %dirend%==false (if %v% NEQ CODEs (@set CODEDIR=%CODEDIR%\%b%) else @set dirend=true))
@set v=%c%s
if %v% NEQ s (if %dirend%==false (if %v% NEQ CODEs (@set CODEDIR=%CODEDIR%\%c%) else @set dirend=true))
@set v=%d%s
if %v% NEQ s (if %dirend%==false (if %v% NEQ CODEs (@set CODEDIR=%CODEDIR%\%d%) else @set dirend=true))
@set v=%e%s
if %v% NEQ s (if %dirend%==false (if %v% NEQ CODEs (@set CODEDIR=%CODEDIR%\%e%) else @set dirend=true))
@set v=%f%s
if %v% NEQ s (if %dirend%==false (if %v% NEQ CODEs (@set CODEDIR=%CODEDIR%\%f%) else @set dirend=true))
@set v=%g%s
if %v% NEQ s (if %dirend%==false (if %v% NEQ CODEs (@set CODEDIR=%CODEDIR%\%g%) else @set dirend=true))
@set v=%h%s
if %v% NEQ s (if %dirend%==false (if %v% NEQ CODEs (@set CODEDIR=%CODEDIR%\%h%) else @set dirend=true))
@set v=%i%s
if %v% NEQ s (if %dirend%==false (if %v% NEQ CODEs (@set CODEDIR=%CODEDIR%\%i%) else @set dirend=true))
@set v=%j%s
if %v% NEQ s (if %dirend%==false (if %v% NEQ CODEs (@set CODEDIR=%CODEDIR%\%j%) else @set dirend=true))
@set CODEDIR=%CODEDIR%\CODE
@rem @echo %CODEDIR%

@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set A=%%A)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set B=%%B)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set C=%%C)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set D=%%D)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set E=%%E)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set F=%%F)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set G=%%G)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set H=%%H)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set I=%%I)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set J=%%J)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set K=%%K)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set L=%%L)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set M=%%M)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set N=%%N)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set O=%%O)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set P=%%P)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set Q=%%Q)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set R=%%R)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set S=%%S)
@FOR /F "usebackq tokens=1-10 delims=\" %%A in ('%~dp0') do (set T=%%T)
@set dirend=false
@set v=%B%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%B%)) else @set dirend=true
@set v=%C%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%C%)) else @set dirend=true
@set v=%D%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%D%)) else @set dirend=true
@set v=%E%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%E%)) else @set dirend=true
@set v=%F%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%F%)) else @set dirend=true
@set v=%G%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%G%)) else @set dirend=true
@set v=%H%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%H%)) else @set dirend=true
@set v=%I%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%I%)) else @set dirend=true
@set v=%J%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%J%)) else @set dirend=true
@set v=%K%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%K%)) else @set dirend=true
@set v=%L%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%L%)) else @set dirend=true
@set v=%M%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%M%)) else @set dirend=true
@set v=%N%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%N%)) else @set dirend=true
@set v=%O%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%O%)) else @set dirend=true
@set v=%P%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%P%)) else @set dirend=true
@set v=%Q%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%Q%)) else @set dirend=true
@set v=%R%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%R%)) else @set dirend=true
@set v=%S%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%S%)) else @set dirend=true
@set v=%T%s
if %v% NEQ s (if %dirend%==false (@set PARNAME=%T%)) else @set dirend=true
@rem @echo %PARNAME%

setenv.bat
@echo off
set JTEST_HOME=%CODEDIR%\tools\jtest
set MAVEN_HOME=%CODEDIR%\tools\Maven
set ANT_HOME=%CODEDIR%\tools\ant
set PATH=%MAVEN_HOME%\bin;%JTEST_HOME%\bin;%PATH%
set JAVA_HOME=%CODEDIR%\template\ums\jdk-windows\
set MAVEN_OPTS=-Xmx512m -Dmaven.repo.local=%CODEDIR%\tools\jarsdb -Dcode.env.dir=%CODEDIR% -Dproject.par.name=%PARNAME%

deploy-OMC-RV3.17.010aBV3.16.200d.bat

@echo off
cd ..\
call basedir.bat
call %CODEDIR%\tools\setenv.bat
call maven -Dapp.version=R010aB200d deploy > .\version\build-R010aB200d.log 2>&1

echo --RNC-CM required zdb2sql or Globalcheck to deploy uniquely
echo --zxwomc-tools-rnc\GlobalCheck\deploy.bat
cd %CODEDIR%\RNS\RNC\zxwomc-tools-rnc\GlobalCheck
call maven par:deploy >> %CODEDIR%\deploy\version\build-R010aB200d.log 2>>&1

echo --zxwomc-tools-rnc\zdb2sql\deploy.bat
cd %CODEDIR%\RNS\RNC\zxwomc-tools-rnc\zdb2sql
call maven par:deploy >> %CODEDIR%\deploy\version\build-R010aB200d.log 2>>&1

echo --zxwomc-tools-rnc\dbtools\modbtype\deploy.bat
cd %CODEDIR%\RNS\RNC\zxwomc-tools-rnc\dbtools\modbtype
call maven par:deploy >> %CODEDIR%\deploy\version\build-R010aB200d.log 2>>&1
echo --zxwomc-bme-tools\zdb2sql\deploy.bat
cd %CODEDIR%\BME\zxwomc-bme-tools\zdb2sql
call maven par:deploy >> %CODEDIR%\deploy\version\build-R010aB200d.log 2>>&1

echo --copy zxwomc-common-rnc-api.jar
del %CODEDIR%\deploy\output\zxwomc\ums-svr\tools\zxwomc-tools-rnc\GlobalCheck\lib\zxwomc-common-rnc-api-1.0-dev.jar /S /Q
cd %CODEDIR%\deploy\output\zxwomc\ums-svr\zxwomc\RNS\RNC\zxwomc-common-rnc-api.par
copy zxwomc-common-rnc-api.jar %CODEDIR%\deploy\output\zxwomc\ums-svr\tools\zxwomc-tools-rnc\GlobalCheck\lib\zxwomc-common-rnc-api-1.0-dev.jar /y

del %CODEDIR%\deploy\output\zxwomc\ums-clnt\tools\zxwomc-tools-rnc\GlobalCheck\lib\zxwomc-common-rnc-api-1.0-dev.jar /S /Q
cd %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-common-rnc-api.par
copy zxwomc-common-rnc-api.jar %CODEDIR%\deploy\output\zxwomc\ums-clnt\tools\zxwomc-tools-rnc\GlobalCheck\lib\zxwomc-common-rnc-api-1.0-dev.jar /y

echo --copy zxwomc-tools-nodeb\tcpagent
md %CODEDIR%\deploy\output\zxwomc\ums-clnt\tools\zxwomc-tools-nodeb\tcpagent
cd %CODEDIR%\deploy\output\zxwomc\ums-clnt\tools\zxwomc-tools-nodeb\tcpagent
xcopy %CODEDIR%\RNS\NODEB\tools\tcpagent\bin\tcpagent.exe bin\ /ECRY
xcopy %CODEDIR%\RNS\NODEB\tools\tcpagent\bin\MSVCRTD.DLL bin\ /ECRY
xcopy %CODEDIR%\RNS\NODEB\tools\tcpagent\conf\tcpagent.ini conf\ /ECRY
copy %CODEDIR%\RNS\NODEB\tools\tcpagent\readme.txt /Y

echo --topo+rackgragh
md %CODEDIR%\deploy\output\zxwomc\ums-svr\inet\model\incompatible\ums-clnt\equip
cd %CODEDIR%\deploy\output\zxwomc\ums-svr\inet\model\incompatible\ums-clnt\equip
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-wsf-cm-rnc.par\conf\rack .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-wsf-cm-rnc.par\res\rack\*.* .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-common-rnc-api.par\conf\i18n\*-cm-dev-rack-i18n.xml .\ /ECRY

xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\conf\rack\n3cm\zxwomc-nodeb-equip-template.xml .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\conf\rack\n3cm\zxwomc-nodeb-nb3-rack.xml .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\conf\rack\n3cm\zxwomc-nodeb-nb3-shelf.xml .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\conf\rack\n3cm\zxwomc-nodeb-nb3-card.xml .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\conf\rack\n3cm\zxwomc-nodeb-equip-state.xml .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\res\n3cm\n3dev\image\rack\*.png .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\res\n3cm\n3dev\image\shelf\*.png .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\res\n3cm\n3dev\image\card\*.png .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\res\n3cm\n3dev\image\rack\*.gif .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\res\n3cm\n3dev\image\shelf\*.gif .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\res\n3cm\n3dev\image\card\*.gif .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\res\n3cm\n3dev\image\state\*.gif .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-common-nodeb-api.par\conf\cm\i18n\n3cm\zxwomc-wsf-nodeb-cm-n3dev-i18n.xml .\ /ECRY


md %CODEDIR%\deploy\output\zxwomc\ums-svr\inet\model\compatible\ums-clnt\topo
cd %CODEDIR%\deploy\output\zxwomc\ums-svr\inet\model\compatible\ums-clnt\topo

xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-wsf-cm-rnc.par\conf\zxwomc-pal-rnc-topo-topocustomized.xml .\ /CRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-wsf-cm-rnc.par\conf\zxwomc-wsf-rnc-topo-i18n.xml .\ /CRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\zxwomc-wsf-topo-rns.par\conf\*-topo-topocustomized.xml .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\zxwomc-wsf-topo-rns.par\conf\*-rns-topo-i18n.xml .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\zxwomc-wsf-topo-rns.par\res\*.gif .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-common-rnc-api.par\conf\i18n\*-rnc-cm-dev-i18n.xml .\ /ECRY

xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-wsf-cm-rnc.par\res\dev\*-rnc-icon-dev-rncmanagedelement.gif .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-wsf-cm-rnc.par\res\*-rnc-nodeb-linkicon.gif .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-wsf-cm-rnc.par\res\*-rnc-icon-subtreecomp.gif .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-wsf-cm-rnc.par\res\*-rnc-icon-unblock.gif .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-wsf-cm-rnc.par\res\*-rnc-icon-block.gif .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-wsf-cm-rnc.par\res\*-rnc-icon-observe.gif .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\RNC\zxwomc-wsf-cm-rnc.par\res\*-rnc-icon-unobserve.gif .\ /ECRY

xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\conf\zxwomc-pal-nodeb-topo-topocustomized.xml .\ /CRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\conf\zxwomc-wsf-nodeb-topo-i18n.xml .\ /CRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-common-nodeb-api.par\conf\cm\i18n\n3cm\*-wsf-nodeb-cm-n3dev-i18n.xml .\ /ECRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-cm-nodeb.par\res\n3cm\n3dev\*-nodeb-icon-n3dev-nb3managedelement-normal.gif .\ /ECRY

xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-piconodeb.par\conf\zxwomc-wsf-nodeb-nbpico-topo-topocustomized.xml .\ /CRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-piconodeb.par\conf\zxwomc-wsf-nodeb-nbpico-topo-i18n.xml .\ /CRY
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\zxwomc\RNS\NODEB\zxwomc-wsf-piconodeb.par\res\picocm\zxwomc-wsf-nodeb-icon-picocm-nbpicomanagedelement-normal.gif .\ /ECRY

del %CODEDIR%\deploy\output\zxwomc\update\container\data\deploy\ums-svr\deploy\*.* /q/s
xcopy %CODEDIR%\deploy\output\zxwomc\ums-svr\deploy %CODEDIR%\deploy\output\zxwomc\update\container\data\deploy\ums-svr\deploy /y/e/f
del %CODEDIR%\deploy\output\zxwomc\update\container\data\deploy\ums-clnt\deploy\*.* /q/s
xcopy %CODEDIR%\deploy\output\zxwomc\ums-clnt\deploy %CODEDIR%\deploy\output\zxwomc\update\container\data\deploy\ums-clnt\deploy /y/e/f

del %CODEDIR%\deploy\output\zxwomc\update\container\jre\jre-windows\*.* /q/s
xcopy %CODEDIR%\deploy\output\zxwomc\jdk-windows %CODEDIR%\deploy\output\zxwomc\update\container\jre\jre-windows /y/e/f
del %CODEDIR%\deploy\output\zxwomc\update\container\jre\jre-solaris\*.* /q/s
xcopy %CODEDIR%\deploy\output\zxwomc\jdk-solaris %CODEDIR%\deploy\output\zxwomc\update\container\jre\jre-solaris /y/e/f

pause

if.bat
set JAVA_HOME=C:\JBuilderX\jdk1.4
set CLASSPATH=%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;.;
set path=%JAVA_HOME%\bin;%JAVA_HOME%;%path%

@echo off

if not exist "%JAVA_HOME%\lib\tools.jar" (
 echo Please set JAVA_HOME to the home of a SUN JDK, where JAVA_HOME\lib\tools.jar exists, and run again.
 goto EOF
)

%JAVA_HOME%\bin\java.exe -cp javashell.jar;"%JAVA_HOME%\lib\tools.jar" com.zte.omcb.jstool.ShellTool

:EOF

pause

posted on 2007-02-15 14:06 小石头 阅读(775) 评论(0)  编辑  收藏 所属分类: 批处理学习

只有注册用户登录后才能发表评论。


网站导航: