del tempdir.txt
del eip.txt
del ../../sword/EipCompressUrl.js
del ../../sword/framework/EipLib-debug.js
del ../../sword/framework/EipLib.js
dir ../../sword/controllibrary/wfs/*.js /a-d/b/s >>tempdir.txt
dir ../../sword/controllibrary/eip/*.js /a-d/b/s >>tempdir.txt
dir ../../sword/controllibrary/cms/*.js /a-d/b/s >>tempdir.txt
dir ../../sword/controllibrary/employeePlanning/*.js /a-d/b/s >>tempdir.txt
setlocal EnableDelayedExpansion
echo
set sub=,
set yinhao="
echo sword.framework.scriptManager.addLoadedFiles([ >>../../sword/EipCompressUrl.js
for /f %%i in (tempdir.txt) do (
set line=%%i
set line=!line:/=/!
set line=!line:~50!
set line=%yinhao%!line!
set line=!line!%yinhao%
set line=!line!%sub%
echo !line!>>../../sword/EipCompressUrl.js
)
echo "/sword/EipCompressUrl.js"]);>>../../sword/EipCompressUrl.js
set maohao=../..
for /f %%i in (tempdir.txt) do (
set eipline=%%i
set eipline=!eipline:~50!
set eipline=%maohao%!eipline!
echo !eipline!>>eip.txt
)
echo ../../sword/EipCompressUrl.js>>eip.txt
for /f %%i in (eip.txt) do (
type %%i >> ../../sword/framework/EipLib-debug.js
echo ;>>../../sword/framework/EipLib-debug.js
)
java -jar ../yuicompressor-2.4.2.jar --type js --nomunge --preserve-semi --charset utf-8 -o ../../sword/framework/EipLib.js ../../sword/framework/EipLib-debug.js
endlocal