ITPub博客

首页 > 应用开发 > IT综合 > 【BATCH】BOESDK-Upload Deploy Tool

【BATCH】BOESDK-Upload Deploy Tool

原创 IT综合 作者:xiangjinling 时间:2010-09-17 22:25:30 0 删除 编辑
SDK-Upload Deploy tool (路径均为反斜杠,|为反斜杠,使用时将|全部替换成反斜杠即可)[@more@]

rem 不显示命令行
@ echo.
@echo off
@ echo Please input the BOE HOME_Path:
@ echo.
@ echo Default(Y): C:|Program Files|Business Objects
@ echo New (N): Input by yourself
@ echo.
:start
set/p choosed=Choose: Y or N:

if %choosed%==Y goto 11
if %choosed%==N goto 22
@ echo Sorry.Please input 'Y'or'N'.
goto start

: 11
set apphome="C:|Program Files|Business Objects
set contest=|Tomcat55|webapps|InfoViewApp
set apphome=%apphome%%contest%
set apphome
@ echo.
@ echo Start...
pause
goto dotran

: 22
set yin="
set/p costomerapphome=Input the path:
set apphome=%yin%%costomerapphome%
set contest=|Tomcat55|webapps|InfoViewApp
set apphome=%apphome%%contest%
set apphome
@ echo.
@ echo Start...
pause
goto dotran

:dotran

@ echo.
@ echo Create upload folder Start...
set addupload=|uploads"
set uploadnew=%apphome%%addupload%
set uploadnew
md %uploadnew%
@ echo Create upload folder Over!

@ echo.
@ echo Deploy CSS files Start...
set addfolder=|css"
set newfolderstr=%apphome%%addfolder%
set newfolder
md %newfolderstr%
@ echo new folder 'css' created.
xcopy .|css %newfolderstr% /s /e
@ echo Deploy CSS files Over!

@ echo.
@ echo Deploy JS files Start...
set jsfolder=|js"
set jspath=%apphome%%jsfolder%
xcopy .|js %jspath% /s /e
@ echo Deploy JS files Over!

@ echo.
@ echo Deploy Image files Start...
set addimagefolder=|images"
set newimagestr=%apphome%%addimagefolder%
set newimagestr
md %newimagestr%
@ echo new folder 'image' created.
xcopy .|images %newimagestr% /s /e
@ echo Deploy Image files Over!

@ echo.
@ echo Deploy Java files Start...
set classfolder=|WEB-INF|classes"
set classpath=%apphome%%classfolder%
xcopy .|classes %classpath% /s /e
@ echo Deploy Java files Over!


@ echo.
@ echo Deploy Jar files Start...
set jarfolder=|WEB-INF|lib"
set jarpath=%apphome%%jarfolder%
xcopy .|jars %jarpath% /s /e
@ echo Deploy Jar files Over!


@ echo.
@ echo Deploy JSP files Start...
set jspfolder="
set jsppath=%apphome%%jspfolder%
xcopy .|jsp %jsppath% /s /e
@ echo Deploy JSP files Over!

@ echo.
@ echo Deploy Upload-Tool finished!
pause
exit

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24167472/viewspace-1038518/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 【BATCH】BATCH-Copy
请登录后发表评论 登录
全部评论

注册时间:2010-06-29

  • 博文量
    19
  • 访问量
    26372