Commit 4a02fc53 authored by Alexey.Golubev's avatar Alexey.Golubev

Удалены не используемые ресурсы.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55712 954022d7-b5bf-4e40-9824-e11837661b57
parent cfd107dc
1.
- gcc, http://closure-compiler.googlecode.com/files/compiler-latest.zip
- , C:\Program Files (x86)\Google\Closure-compiler
- YUICompressor, http://yui.zenfs.com/releases/yuicompressor/yuicompressor-2.4.7.zip
- , C:\Program Files (x86)\Yahoo\yuicompressor-2.4.7\build\
- CLASSPATH, : C:\Program Files (x86)\Google\Closure-compiler\compiler.jar; C:\Program Files (x86)\Yahoo\yuicompressor-2.4.7\build\yuicompressor-2.4.7.jar
2. svn-.
- TortoiseSVN . TortoiseSVN/bin svn.exe, .
- TortoiseSVN/bin PATH
3. .
- heckout svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebExcel/.build
( E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebExcel\.build)
- , , , .
:
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebExcel (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebExcel)
-
-
- svn://fileserver/activex/ASC/Redist/WEB/sdk/OfficeWebExcel (E:\Subversion\ASC\Redist\WEB\sdk\OfficeWebExcel)
- commit_new_sdk_all.bat
4.
- , C:\Hg
- , build.bat MENU_FOLDER
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebExcel (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebExcel)
- build.bat
:
- .
- .
-
../../OfficeWebWord/Build/deploy (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebWord\Build)
- ( 3rdparty).
- :
deploy/apps/api/documents/index.html?doctype=text
- :
deploy/apps/api/documents/index.html?doctype=text&type=mobile
- :
deploy/apps/api/documents/index.html?doctype=spreadsheet
- :
deploy/apps/api/documents/index.html?doctype=spreadsheet&type=mobile
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebExcel/.build/Log (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebExcel\.build\Log)
// :
1. build_test.bat
2. ..\OfficeWebWord\Build\deploy\sdk\OfficeWebExcel\SpreadsheetTestMenu.html
"sdk-all.js" .
\ No newline at end of file
function GetSelectedCellInfo()
{
return Asc.editor.xll111l11Ext();
}
function getText()
{
return GetSelectedCellInfo().x1l1111ll()
}
function getName()
{
return GetSelectedCellInfo().x11l1ll1l()
}
function getHAlign()
{
return GetSelectedCellInfo().x1l111l11()
}
function getVAlign()
{
return GetSelectedCellInfo().x1l111l1l()
}
function getMerge()
{
return GetSelectedCellInfo().x1l111ll1().x11l1l111()
}
function getShrinkToFit()
{
return GetSelectedCellInfo().x1l111ll1().x11l1l11l()
}
function getWrapText()
{
return GetSelectedCellInfo().x1l111ll1().x11l1l1l1()
}
function getFontName()
{
return GetSelectedCellInfo().x1l111lll().x11l1ll1l()
}
function getFontSize()
{
return GetSelectedCellInfo().x1l111lll().x11l1lll1()
}
function getBold()
{
return GetSelectedCellInfo().x1l111lll().x11l1llll()
}
function getItalic()
{
return GetSelectedCellInfo().x1l111lll().x11ll1111()
}
function getUnderline()
{
return GetSelectedCellInfo().x1l111lll().x11ll111l()
}
function getStrikeout()
{
return GetSelectedCellInfo().x1l111lll().getStrikeout()
}
function getSubscript()
{
return GetSelectedCellInfo().x1l111lll().x11ll11ll()
}
function getSuperscript()
{
return GetSelectedCellInfo().x1l111lll().x11ll1l11()
}
function getFontColor()
{
return GetSelectedCellInfo().x1l111lll().x11ll1l1l()
}
function getFillColor()
{
return GetSelectedCellInfo().x1l11l111().x11ll1l1l()
}
function getLeftBorder()
{
return GetSelectedCellInfo().x1l11l11l().x11lll1ll()
}
function getRightBorder()
{
return GetSelectedCellInfo().x1l11l11l().x11llll1l()
}
function getTopBorder()
{
return GetSelectedCellInfo().x1l11l11l().x11llll11()
}
function getBottomBorder()
{
return GetSelectedCellInfo().x1l11l11l().x11lllll1()
}
function getDiagDownBorder()
{
return GetSelectedCellInfo().x1l11l11l().x11llllll()
}
function getDiagUpBorder()
{
return GetSelectedCellInfo().x1l11l11l().x1l111111()
}
function getBorderWidth()
{
return x11lll111()
}
function getBorderStyle()
{
return x11lll11l()
}
function getBorderColor()
{
return x11ll1l1l()
}
function getFormula()
{
return GetSelectedCellInfo().x1l1111l1()
}
function getInnerText()
{
return GetSelectedCellInfo().x1l11l1l1()
}
function getNumFormat()
{
return GetSelectedCellInfo().x1l11l1ll()
}
\ No newline at end of file
function GetSelectedCellInfo()
{
return Asc.editor.asc_getCellInfo(true);
}
function getText()
{
return GetSelectedCellInfo().asc_getText()
}
function getName()
{
return GetSelectedCellInfo().asc_getName()
}
function getHAlign()
{
return GetSelectedCellInfo().asc_getHorAlign()
}
function getVAlign()
{
return GetSelectedCellInfo().asc_getVertAlign()
}
function getMerge()
{
return GetSelectedCellInfo().asc_getFlags().asc_getMerge()
}
function getShrinkToFit()
{
return GetSelectedCellInfo().asc_getFlags().asc_getShrinkToFit()
}
function getWrapText()
{
return GetSelectedCellInfo().asc_getFlags().asc_getWrapText()
}
function getFontName()
{
return GetSelectedCellInfo().asc_getFont().asc_getName()
}
function getFontSize()
{
return GetSelectedCellInfo().asc_getFont().asc_getSize()
}
function getBold()
{
return GetSelectedCellInfo().asc_getFont().asc_getBold()
}
function getItalic()
{
return GetSelectedCellInfo().asc_getFont().asc_getItalic()
}
function getUnderline()
{
return GetSelectedCellInfo().asc_getFont().asc_getUnderline()
}
function getStrikeout()
{
return GetSelectedCellInfo().asc_getFont().getStrikeout()
}
function getSubscript()
{
return GetSelectedCellInfo().asc_getFont().asc_getSubscript()
}
function getSuperscript()
{
return GetSelectedCellInfo().asc_getFont().asc_getSuperscript()
}
function getFontColor()
{
return GetSelectedCellInfo().asc_getFont().asc_getColor()
}
function getFillColor()
{
return GetSelectedCellInfo().asc_getFill().asc_getColor()
}
function getLeftBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getLeft()
}
function getRightBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getRight()
}
function getTopBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getTop()
}
function getBottomBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getBottom()
}
function getDiagDownBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getDiagDown()
}
function getDiagUpBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getDiagUp()
}
function getBorderWidth()
{
return asc_getWidth()
}
function getBorderStyle()
{
return asc_getStyle()
}
function getBorderColor()
{
return asc_getColor()
}
function getFormula()
{
return GetSelectedCellInfo().asc_getFormula()
}
function getInnerText()
{
return GetSelectedCellInfo().asc_getInnerText()
}
function getNumFormat()
{
return GetSelectedCellInfo().asc_getNumFormat()
}
\ No newline at end of file
SET TABLE_ENGINE=..
SET DEPLOY_FOLDER=..\..\OfficeWebWord\Build\deploy
SET OUTPUT_FOLDER=%DEPLOY_FOLDER%\sdk\OfficeWebExcel
SET OUTPUT_SCRIPT_NAME=sdk-all.js
SET RESULT_SCRIPT=%OUTPUT_FOLDER%\%OUTPUT_SCRIPT_NAME%
ECHO Make output folder: %OUTPUT_FOLDER%
MKDIR %OUTPUT_FOLDER%
ECHO Copy resources
XCOPY "%TABLE_ENGINE%\css\*.css" "%OUTPUT_FOLDER%\css\" /Y /I /Q
SET BUILD_LOG_DIR=Log
call build_sdk_all.bat %RESULT_SCRIPT% %BUILD_LOG_DIR%
SET MENU_FOLDER=C:\Hg
CALL %MENU_FOLDER%\Build\build-se.bat
XCOPY /S %MENU_FOLDER%\deploy\api %DEPLOY_FOLDER%\apps\api\ /Y
XCOPY /S %MENU_FOLDER%\deploy\spreadsheeteditor %DEPLOY_FOLDER%\apps\spreadsheeteditor\ /Y
SET MENU_DEPLOY_FOLDER=%DEPLOY_FOLDER%\apps
SET EDITOR_MENU=%MENU_DEPLOY_FOLDER%\spreadsheeteditor
set EDITOR_MENU_JS_FILE=%EDITOR_MENU%\main\app-all.js
set TOUCH_EDITOR_MENU_JS_FILE=%EDITOR_MENU%\mobile\app-all.js
set API_TEST_JS_FILE=api_functions.js
set OUTPUT_API_TEST_JS_FILE=%BUILD_LOG_DIR%\%API_TEST_JS_FILE%
ECHO ON
ECHO Obfuscate callback name
SET OUTVAL_MAP_FILE=%BUILD_LOG_DIR%\out_val.map
SET OUTOBF_MAP_FILE=%BUILD_LOG_DIR%\out_obf.map
rem asc_\w*
ObfuscateStrings.exe ^
-api "%RESULT_SCRIPT%" ^
-pat "asc_\w+" -exp se -use-for-name -outmap "%OUTVAL_MAP_FILE%" "%OUTOBF_MAP_FILE%" ^
-apply "%RESULT_SCRIPT%" "%RESULT_SCRIPT%" ^
-apply "%EDITOR_MENU_JS_FILE%" "%EDITOR_MENU_JS_FILE%" ^
-apply "%TOUCH_EDITOR_MENU_JS_FILE%" "%TOUCH_EDITOR_MENU_JS_FILE%" ^
-apply "%API_TEST_JS_FILE%" "%OUTPUT_API_TEST_JS_FILE%"
pause
\ No newline at end of file
@ECHO off
SET BUILD_DIR=%CD%
SET OUTPUT_DIR=%BUILD_DIR%
SET LOG_DIR=%BUILD_DIR%\Log
SET OUTPUT_SCRIPT_NAME=sdk-all.js
SET SOURCE_MAP_NAME=SourceMap.js
call check_google_cc.cmd
SET GOOGLE_CC_LEVEL=ADVANCED_OPTIMIZATIONS
if NOT "%1"=="" (
SET OUTPUT_DIR=%~dp1
SET OUTPUT_SCRIPT_NAME=%~nx1
)
if NOT "%2"=="" SET LOG_DIR=%~f2
if NOT "%3"=="" SET GOOGLE_CC_LEVEL=%3
cd ..
SET TABLE_ENGINE=.
SET FONT_ENGINE=../OfficeWebWord
SET COMMON_FOLDER=../OfficeWebCommon
SET CHARTS_ENGINE=%COMMON_FOLDER%/Charts/libraries
SET VARIABLE_MAP_FILE=%LOG_DIR%\variable.map
SET PROPERTY_MAP_FILE=%LOG_DIR%\property.map
SET SRC_FONT_ENGINE=^
"%FONT_ENGINE%\FontsFreeType\font_engine.js" ^
"%FONT_ENGINE%\FontsFreeType\FontFile.js" ^
"%FONT_ENGINE%\FontsFreeType\FontManager.js" ^
"%FONT_ENGINE%\WebWord\Drawing\Externals.js" ^
"%FONT_ENGINE%\WebWord\Drawing\Metafile.js" ^
"%FONT_ENGINE%\WebWord\Drawing\AllFonts.js" ^
"%FONT_ENGINE%\WebWord\Drawing\GlobalLoaders.js" ^
"%FONT_ENGINE%\FontsFreeType\FontExport.js"
SET EDITOR_APIDEFINE_FILE=%TABLE_ENGINE%\apiDefines.js
SET OUTPUT_APIDEFINE_FILE=%EDITOR_APIDEFINE_FILE%.tmp
SET SRC_TABLE_EGINE=^
"%COMMON_FOLDER%\docscoapicommon.js" ^
"%COMMON_FOLDER%\docscoapi.js" ^
"%COMMON_FOLDER%\downloaderfiles.js" ^
"%TABLE_ENGINE%\offlinedocs\test-workbook9\Editor.js" ^
"%TABLE_ENGINE%\utils\utils.js" ^
"%TABLE_ENGINE%\clipboard.js" ^
"%TABLE_ENGINE%\charts.js" ^
"%TABLE_ENGINE%\graphics\DrawingContext.js" ^
"%TABLE_ENGINE%\graphics\pdfprinter.js" ^
"%TABLE_ENGINE%\model\CollaborativeEditing.js" ^
"%TABLE_ENGINE%\model\parserFormula.js" ^
"%TABLE_ENGINE%\model\dateandtimeFunctions.js" ^
"%TABLE_ENGINE%\model\engineeringFunctions.js" ^
"%TABLE_ENGINE%\model\cubeFunctions.js" ^
"%TABLE_ENGINE%\model\databaseFunctions.js" ^
"%TABLE_ENGINE%\model\textanddataFunctions.js" ^
"%TABLE_ENGINE%\model\statisticalFunctions.js" ^
"%TABLE_ENGINE%\model\financialFunctions.js" ^
"%TABLE_ENGINE%\model\mathematicFunctions.js" ^
"%TABLE_ENGINE%\model\lookupandreferenceFunctions.js" ^
"%TABLE_ENGINE%\model\informationFunctions.js" ^
"%TABLE_ENGINE%\model\logicalFunctions.js" ^
"%TABLE_ENGINE%\model\DrawingObjects.js" ^
"%TABLE_ENGINE%\model\NumFormat.js" ^
"%TABLE_ENGINE%\model\Serialize.js" ^
"%TABLE_ENGINE%\model\WorkbookElems.js" ^
"%TABLE_ENGINE%\model\Workbook.js" ^
"%TABLE_ENGINE%\model\CellInfo.js" ^
"%TABLE_ENGINE%\model\AdvancedOptions.js" ^
"%TABLE_ENGINE%\model\History.js" ^
"%TABLE_ENGINE%\view\StringRender.js" ^
"%TABLE_ENGINE%\view\CellTextRender.js" ^
"%TABLE_ENGINE%\view\CellEditorView.js" ^
"%TABLE_ENGINE%\view\WorksheetView.js" ^
"%TABLE_ENGINE%\view\HandlerList.js" ^
"%TABLE_ENGINE%\view\EventsController.js" ^
"%TABLE_ENGINE%\view\WorkbookView.js" ^
"%TABLE_ENGINE%\view\scroll.js" ^
"%EDITOR_APIDEFINE_FILE%" ^
"%TABLE_ENGINE%\api.js"
SET SRC_CHARTS_EGINE=^
"%CHARTS_ENGINE%\OfficeExcel.common.core.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.annotate.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.context.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.effects.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.key.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.resizing.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.tooltips.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.zoom.js" ^
"%CHARTS_ENGINE%\OfficeExcel.bar.js" ^
"%CHARTS_ENGINE%\OfficeExcel.bipolar.js" ^
"%CHARTS_ENGINE%\OfficeExcel.gantt.js" ^
"%CHARTS_ENGINE%\OfficeExcel.hbar.js" ^
"%CHARTS_ENGINE%\OfficeExcel.line.js" ^
"%CHARTS_ENGINE%\OfficeExcel.pie.js" ^
"%CHARTS_ENGINE%\OfficeExcel.radar.js" ^
"%CHARTS_ENGINE%\OfficeExcel.rose.js" ^
"%CHARTS_ENGINE%\OfficeExcel.rscatter.js" ^
"%CHARTS_ENGINE%\OfficeExcel.scatter.js" ^
"%CHARTS_ENGINE%\OfficeExcel.waterfall.js" ^
"%CHARTS_ENGINE%\OfficeExcel.chartProperties.js" ^
"%CHARTS_ENGINE%\hsv.js" ^
"%CHARTS_ENGINE%\rgbcolor.js"
SET SRC_FILE="%COMMON_FOLDER%\License.js" %SRC_FONT_ENGINE% %SRC_TABLE_EGINE% %SRC_CHARTS_EGINE%
ECHO ON
rem --formatting PRETTY_PRINT ^
java %GOOGLE_CC% ^
--version ^
--warning_level QUIET ^
--compilation_level %GOOGLE_CC_LEVEL% ^
--externs "%TABLE_ENGINE%\jquery\jquery-1.7.1.js" ^
--externs "%TABLE_ENGINE%\jquery\jquery.mousewheel-3.0.6.js" ^
--externs "%COMMON_FOLDER%\3rdparty\XRegExp\xregexp-all-min.js" ^
--js %SRC_FILE% ^
--js_output_file "%OUTPUT_SCRIPT_NAME%" ^
--variable_map_output_file "%VARIABLE_MAP_FILE%" ^
--property_map_output_file "%PROPERTY_MAP_FILE%" ^
--create_source_map "%OUTPUT_SCRIPT_NAME%.map" ^
--source_map_format=V3
@if NOT "%ERRORLEVEL%"=="0" goto error
java %GOOGLE_CC% ^
--compilation_level SIMPLE_OPTIMIZATIONS ^
--js "%EDITOR_APIDEFINE_FILE%" ^
--js_output_file "%OUTPUT_APIDEFINE_FILE%"
@if NOT "%ERRORLEVEL%"=="0" goto error
ECHO //@ sourceMappingURL=http://localhost:8080/sdk/OfficeWebExcel/%OUTPUT_SCRIPT_NAME%.map>"%SOURCE_MAP_NAME%"
COPY /Y /B "%OUTPUT_SCRIPT_NAME%"+"%OUTPUT_APIDEFINE_FILE%"+"%SOURCE_MAP_NAME%" "%OUTPUT_SCRIPT_NAME%"
MOVE /Y "%OUTPUT_SCRIPT_NAME%" "%OUTPUT_DIR%"
COPY /Y "%OUTPUT_SCRIPT_NAME%.map" "%OUTPUT_DIR%"
DEL /Q "%OUTPUT_APIDEFINE_FILE%"
DEL /Q "%SOURCE_MAP_NAME%"
@ECHO off
cd "%BUILD_DIR%"
exit /b 0
:error
@exit /b 1
SET TABLE_ENGINE=..
SET DEPLOY_FOLDER=..\..\OfficeWebWord\Build\deploy
SET OUTPUT_FOLDER=%DEPLOY_FOLDER%\sdk\OfficeWebExcel_menu
SET OUTPUT_SCRIPT_NAME=%OUTPUT_FOLDER%\sdk-all.js
ECHO Make output folder: %OUTPUT_FOLDER%
MKDIR %OUTPUT_FOLDER%
ECHO Copy resources
XCOPY "%TABLE_ENGINE%\css\*.*" "%OUTPUT_FOLDER%\css\" /Y /I /Q /E
XCOPY "%TABLE_ENGINE%\menu\*.*" "%OUTPUT_FOLDER%\menu\" /Y /I /Q /E
XCOPY "%TABLE_ENGINE%\jquery\*.*" "%OUTPUT_FOLDER%\jquery\" /Y /I /Q /E
XCOPY "%TABLE_ENGINE%\SpreadsheetTestMenu.deploy" "%OUTPUT_FOLDER%\SpreadsheetTestMenu.html" /Y /I /Q
SET BUIL_LOG_DIR=Log
call build_sdk_all.bat %OUTPUT_SCRIPT_NAME% %BUIL_LOG_DIR% SIMPLE_OPTIMIZATIONS
pause
\ No newline at end of file
@echo off
set GOOGLE_CC=com.google.javascript.jscomp.CommandLineRunner
java %GOOGLE_CC% --help >nul 2>&1
if "%ERRORLEVEL%"=="-1" exit /b 0
:read_vars
call config_read_vars.cmd
if NOT "%ERRORLEVEL%"=="0" (
echo.
echo Error: Can not read config file
exit /b 1
)
if NOT DEFINED GOOGLE_CC_PATH (
call config_set_var.cmd GOOGLE_CC_PATH "%CD%"
goto enter_path
)
java -cp "%GOOGLE_CC_PATH%" %GOOGLE_CC% --help >nul 2>&1
if "%ERRORLEVEL%"=="-1" goto setup_cp
:enter_path
echo.
echo Please enter correct path to Google Closure Complier (GOOGLE_CC_PATH)
start "" /wait notepad "%CFG_FILE%"
goto read_vars
:setup_cp
if "%CLASSPATH%"=="" (set CLASSPATH=%GOOGLE_CC_PATH%) else (set CLASSPATH=%CLASSPATH%;%GOOGLE_CC_PATH%)
exit /b 0
@echo off
if NOT DEFINED STABLE_API_PATH set STABLE_API_PATH=..\..\..\..\..\ASC\Redist\WEB\sdk\OfficeWebExcel
if EXIST "%STABLE_API_PATH%\api.js" exit /b 0
set STABLE_API_PATH=
:read_vars
call config_read_vars.cmd
if NOT "%ERRORLEVEL%"=="0" (
echo.
echo Error: Can not read config file
exit /b 1
)
if NOT DEFINED STABLE_API_PATH (
call config_set_var.cmd STABLE_API_PATH "%CD%"
goto enter_path
)
if EXIST "%STABLE_API_PATH%\api.js" exit /b 0
:enter_path
echo.
echo Please enter correct path to Stable API folder (STABLE_API_PATH)
start "" /wait notepad "%CFG_FILE%"
goto read_vars
@echo off
svn help >nul 2>&1
if errorlevel 1 (
echo.
echo Can not find subversion command-line client
exit /b 1
)
exit /b 0
@echo off
if NOT "%~1"=="" SET SIMULATE=1
call check_stable_api.cmd
call check_svn.cmd || goto error
SET STABLE_SDK_JS=%STABLE_API_PATH%\sdk-all.js
SET STABLE_SDK_LOG_FOLDER=Log
SET STABLE_TRDPARTY_PATH=%STABLE_API_PATH%\..\..\3rdparty
SET SDK_SOURCE_FOLDER=..
SET SDK_TRDPARTY_PATH=%SDK_SOURCE_FOLDER%\..\OfficeWebCommon\3rdparty
SET COMMIT_MESSAGE_FILE=info.log
cd /D "%~dp0" || exit /b 1
echo.
echo ----------------------------------------
echo Update STABLE repository
echo ----------------------------------------
svn update %STABLE_API_PATH%
@if NOT "%ERRORLEVEL%"=="0" goto error
echo.
echo ----------------------------------------
echo Update DEV repository
echo ----------------------------------------
svn update "%SDK_SOURCE_FOLDER%"
@if NOT "%ERRORLEVEL%"=="0" goto error
svn update "%SDK_SOURCE_FOLDER%\..\OfficeWebCommon"
@if NOT "%ERRORLEVEL%"=="0" goto error
svn update "%SDK_SOURCE_FOLDER%\..\OfficeWebWord"
@if NOT "%ERRORLEVEL%"=="0" goto error
svn update "%SDK_SOURCE_FOLDER%\..\OfficeWebExcelChart"
@if NOT "%ERRORLEVEL%"=="0" goto error
echo.
echo ----------------------------------------
echo Copy THIRD PARTY scripts
echo ----------------------------------------
XCOPY "%SDK_TRDPARTY_PATH%\underscore\underscore-min.js" "%STABLE_TRDPARTY_PATH%\underscore\underscore-min.js" /Y /I /Q
XCOPY "%SDK_TRDPARTY_PATH%\xregexp\xregexp-all-min.js" "%STABLE_TRDPARTY_PATH%\xregexp\xregexp-all-min.js" /Y /I /Q
XCOPY "%SDK_TRDPARTY_PATH%\sockjs\sockjs-0.3.min.js" "%STABLE_TRDPARTY_PATH%\sockjs\sockjs-min.js" /Y /I /Q
echo.
echo ----------------------------------------
echo Copy API script
echo ----------------------------------------
XCOPY "%SDK_SOURCE_FOLDER%\api.js" "%STABLE_API_PATH%\api.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\apiDefines.js" "%STABLE_API_PATH%\apiDefines.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\view\EventsController.js" "%STABLE_API_PATH%\view\EventsController.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\view\HandlerList.js" "%STABLE_API_PATH%\view\HandlerList.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\model\AdvancedOptions.js" "%STABLE_API_PATH%\model\AdvancedOptions.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\model\CellInfo.js" "%STABLE_API_PATH%\model\CellInfo.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\model\DrawingObjects.js" "%STABLE_API_PATH%\model\DrawingObjects.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\css\*.css" "%STABLE_API_PATH%\css\" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\offlinedocs\*" "%STABLE_API_PATH%\offlinedocs\" /Y /I /Q /S
XCOPY "%SDK_SOURCE_FOLDER%\Spreadsheet.html.deploy" "%STABLE_API_PATH%\Spreadsheet.html" /Y /I /Q
echo "sdk-all.js was build from svn repository (see log below):" > %COMMIT_MESSAGE_FILE%
svn info %SDK_SOURCE_FOLDER% >> %COMMIT_MESSAGE_FILE%
echo.
echo ----------------------------------------
echo Build new version
echo ----------------------------------------
CALL build_sdk_all.bat %STABLE_SDK_JS% %STABLE_SDK_LOG_FOLDER%
@if NOT "%ERRORLEVEL%"=="0" goto error
if DEFINED SIMULATE goto finish
echo.
echo ----------------------------------------
echo Commit changes
echo ----------------------------------------
@echo on
rem svn commit %STABLE_API_PATH% -F %COMMIT_MESSAGE_FILE%
@echo off
:finish
del %COMMIT_MESSAGE_FILE%
echo.
echo Script finished successfully!
pause
exit /b 0
:error
pause
exit /b 1
@echo off
set CFG_FILE=config.txt
if EXIST "%CFG_FILE%" for /F "usebackq tokens=1,2 delims==" %%a in ("%CFG_FILE%") do set %%a=%%b
exit /b 0
@echo off
set CFG_FILE=config.txt
setlocal
set CFG_FILE_NEW=config.new.txt
set VAR_NAME=%~1
set VAR_VALUE=%~2
if NOT EXIST "%CFG_FILE%" (
echo ; Build Config>"%CFG_FILE%"
echo %VAR_NAME%=%VAR_VALUE%>>"%CFG_FILE%"
goto finish
)
echo ; Build Config>"%CFG_FILE_NEW%"
for /F "usebackq tokens=1,2 delims==" %%a in ("%CFG_FILE%") do (
if "%%a"=="%VAR_NAME%" (
echo %VAR_NAME%=%VAR_VALUE%>>"%CFG_FILE_NEW%"
set DONE=1
) else (
echo %%a=%%b>>"%CFG_FILE_NEW%"
)
)
if NOT DEFINED DONE echo %VAR_NAME%=%VAR_VALUE%>>"%CFG_FILE_NEW%"
del /q "%CFG_FILE%"
ren "%CFG_FILE_NEW%" "%CFG_FILE%"
:finish
endlocal
exit /b 0
//Tihs file containes definition of object which used in api.js
//It need to prevent minimize the name of object's method.
//WaitDownload(){};
//function Search(text){};
//function startSearch(){};
//function stopSearch(){};
function $(){};
\ No newline at end of file
@ECHO OFF
SET BUILD_DIR=%CD%
SET SOURCE_MAP_NAME=SourceMap.js
SET OUTPUT_SCRIPT_NAME=%~nx1
SET OUTPUT_FOLDER=%~dp1
SET LOG_FOLDER=%~f2
CD ..
SET COMMON_FOLDER=..\OfficeWebCommon
SET TEXT_ENGINE=..\OfficeWebWord\WebWord
SET FONT_ENGINE=..\OfficeWebWord\FontsFreeType
SET PRESENTATION_ENGINE=.
SET EDITOR_API_EXPORT_FILE=%LOG_FOLDER%\apiExport.js
SET VARIABLE_MAP_FILE=%LOG_FOLDER%\variable.map
SET PROPERTY_MAP_FILE=%LOG_FOLDER%\property.map
SET OUTVAL_MAP_FILE=%LOG_FOLDER%\out_val.map
SET OUTOBF_MAP_FILE=%LOG_FOLDER%\out_obf.map
SET GCC_DEFINE=%3
SET CLOSURE_COMPILER=com.google.javascript.jscomp.CommandLineRunner
ECHO Make output folder: %LOG_FOLDER%
MKDIR %LOG_FOLDER%
rem --formatting PRETTY_PRINT ^
SET EDITOR_API_FILE=%PRESENTATION_ENGINE%\api-all.js
COPY /Y /B "%PRESENTATION_ENGINE%\apiCommon.js"+"%PRESENTATION_ENGINE%\api.js" "%EDITOR_API_FILE%"
SET EDITOR_APIDEFINE_FILE=%PRESENTATION_ENGINE%\apiDefines.js
ECHO ON
%BUILD_DIR%\ExtractJSApi.exe "%EDITOR_API_FILE%" "%EDITOR_API_EXPORT_FILE%"
java %CLOSURE_COMPILER% ^
--compilation_level ADVANCED_OPTIMIZATIONS ^
--externs "%TEXT_ENGINE%\Drawing\scrolls\jquery.min.js" ^
--externs "%COMMON_FOLDER%\3rdparty\Underscore\underscore-min.js" ^
--externs "%COMMON_FOLDER%\3rdparty\Sockjs\sockjs-0.3.min.js" ^
--externs "%BUILD_DIR%\apiExtern.js" ^
--js ^
"%COMMON_FOLDER%\License.js" ^
"%COMMON_FOLDER%\docscoapicommon.js" ^
"%COMMON_FOLDER%\docscoapi.js" ^
"%COMMON_FOLDER%\downloaderfiles.js" ^
"%FONT_ENGINE%\font_engine.js" ^
"%FONT_ENGINE%\FontFile.js" ^
"%FONT_ENGINE%\FontManager.js" ^
"%TEXT_ENGINE%\Drawing\Externals.js" ^
"%TEXT_ENGINE%\Drawing\AllFonts.js" ^
"%PRESENTATION_ENGINE%\Drawing\GlobalLoaders.js" ^
"%PRESENTATION_ENGINE%\Drawing\ThemeLoader.js" ^
"%PRESENTATION_ENGINE%\Editor\CollaborativeEditing.js" ^
"%FONT_ENGINE%\FontExport.js" ^
"%PRESENTATION_ENGINE%\Editor\Styles.js" ^
"%PRESENTATION_ENGINE%\Editor\ParagraphContent.js" ^
"%TEXT_ENGINE%\Drawing\Metafile.js" ^
"%TEXT_ENGINE%\Drawing\GraphicsEvents.js" ^
"%TEXT_ENGINE%\Drawing\WorkEvents.js" ^
"%TEXT_ENGINE%\Drawing\Controls.js" ^
"%TEXT_ENGINE%\Drawing\Rulers.js" ^
"%PRESENTATION_ENGINE%\Editor\Table.js" ^
"%TEXT_ENGINE%\Editor\Common.js" ^
"%TEXT_ENGINE%\Editor\Sections.js" ^
"%TEXT_ENGINE%\Editor\CollaborativeEditing.js" ^
"%TEXT_ENGINE%\Drawing\scrolls\scroll.js" ^
"%PRESENTATION_ENGINE%\Editor\History.js" ^
"%PRESENTATION_ENGINE%\Editor\Paragraph.js" ^
"%PRESENTATION_ENGINE%\Editor\FlowObjects.js" ^
"%PRESENTATION_ENGINE%\Editor\DocumentContent.js" ^
"%PRESENTATION_ENGINE%\Editor\Presentation.js" ^
"%PRESENTATION_ENGINE%\Editor\SlideShowInfo.js" ^
"%PRESENTATION_ENGINE%\Editor\PresentationProperties.js" ^
"%PRESENTATION_ENGINE%\Editor\Shape.js" ^
"%PRESENTATION_ENGINE%\Editor\GraphicFrame.js" ^
"%PRESENTATION_ENGINE%\Editor\Numbering.js" ^
"%PRESENTATION_ENGINE%\Editor\TextBody.js" ^
"%PRESENTATION_ENGINE%\Editor\TableShape.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\Arrows.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\Geometry.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\CreateGoemetry.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\ColorArray.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\Math.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\Path.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\ArcTo.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\ArcToOnCanvasContext.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\GraphicFigure.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\Clone.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\CImage.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\StatesAutoShapes.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\AutoShapesContainer.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\Spline.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\PolyLine.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\PolyLine2.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\Hit.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\GroupShape.js" ^
"%PRESENTATION_ENGINE%\Editor\Drawing\Joined.js" ^
"%PRESENTATION_ENGINE%\Drawing\Graphics.js" ^
"%PRESENTATION_ENGINE%\Drawing\DrawingDocument.js" ^
"%PRESENTATION_ENGINE%\Drawing\HtmlPage.js" ^
"%PRESENTATION_ENGINE%\Editor\Format.js" ^
"%PRESENTATION_ENGINE%\Editor\Serialize.js" ^
"%PRESENTATION_ENGINE%\Editor\SerializeWriter.js" ^
"%EDITOR_APIDEFINE_FILE%" ^
"%EDITOR_API_FILE%" ^
"%EDITOR_API_EXPORT_FILE%" ^
--define=%GCC_DEFINE% ^
--js_output_file "%OUTPUT_SCRIPT_NAME%" ^
--warning_level QUIET ^
--variable_map_output_file "%VARIABLE_MAP_FILE%" ^
--property_map_output_file "%PROPERTY_MAP_FILE%" ^
--create_source_map "%OUTPUT_SCRIPT_NAME%.map" ^
--source_map_format=V3
@if NOT "%ERRORLEVEL%"=="0" goto error
SET OUTPUT_APIDEFINE_FILE=%EDITOR_APIDEFINE_FILE%.tmp
java %CLOSURE_COMPILER% ^
--compilation_level SIMPLE_OPTIMIZATIONS ^
--js "%EDITOR_APIDEFINE_FILE%" ^
--js_output_file "%OUTPUT_APIDEFINE_FILE%"
@if NOT "%ERRORLEVEL%"=="0" goto error
ECHO //@ sourceMappingURL=http://localhost:8080/sdk/OfficeWebPowerPoint/%OUTPUT_SCRIPT_NAME%.map>"%SOURCE_MAP_NAME%"
COPY /Y /B "%OUTPUT_SCRIPT_NAME%"+"%OUTPUT_APIDEFINE_FILE%"+"%SOURCE_MAP_NAME%" "%OUTPUT_SCRIPT_NAME%"
MOVE /Y "%OUTPUT_SCRIPT_NAME%" "%OUTPUT_FOLDER%"
COPY /Y "%OUTPUT_SCRIPT_NAME%.map" "%OUTPUT_FOLDER%"
DEL /Q "%OUTPUT_APIDEFINE_FILE%"
DEL /Q "%SOURCE_MAP_NAME%"
DEL /Q "%EDITOR_API_FILE%"
@ECHO off
cd "%BUILD_DIR%"
exit /b 0
:check_compiler
java -classpath %CLASSPATH% %CLOSURE_COMPILER% --help >nul 2>&1
if "%ERRORLEVEL%"=="-1" exit /b 0
if NOT EXIST google-cc-path.txt echo %cd% > google-cc-path.txt
:_1
set /p gccpath=<google-cc-path.txt
call :check_gccpath "%gccpath%" && exit /b 0
echo Please enter correct path to Google Closure Complier directory in "google-cc-path.txt" file
echo.
start "" /wait notepad google-cc-path.txt
goto _1
:check_gccpath
if EXIST "%~1\compiler.jar" (
if "%CLASSPATH%"=="" (
set CLASSPATH="%~1\compiler.jar"
) else (
set CLASSPATH=%CLASSPATH%;"%~1\compiler.jar"
)
exit /b 0
)
exit /b 1
:error
@exit /b 1
\ No newline at end of file
@echo off
SET STABLE_API_FOLDER=..\..\..\..\..\ASC\Redist\WEB\sdk\OfficeWebPowerPoint
SET STABLE_API_FOLDER=C:\hg.default\sdk\OfficeWebPowerPoint
SET STABLE_SDK_FOLDER=%STABLE_API_FOLDER%
SET STABLE_SDK_JS=%STABLE_SDK_FOLDER%\sdk-all.js
SET STABLE_SDK_LOG_FOLDER=Log
SET SDK_SOURCE_FOLDER=..
call :check_svn || exit /b 1
cd /D "%~dp0" || exit /b 1
echo Update OfficeWebWord svn repository
svn update %SDK_SOURCE_FOLDER%
echo Copy API script.
XCOPY "%SDK_SOURCE_FOLDER%\api.js" "%STABLE_API_FOLDER%\" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\apiCommon.js" "%STABLE_API_FOLDER%\" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\apiDefines.js" "%STABLE_API_FOLDER%\" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\EditorSettings.js" "%STABLE_API_FOLDER%\" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\Images\*.*" "%STABLE_API_FOLDER%\Images\" /Y /I /Q /E
XCOPY "%SDK_SOURCE_FOLDER%\menu\*.*" "%STABLE_API_FOLDER%\menu\" /Y /I /Q /E
XCOPY "%SDK_SOURCE_FOLDER%\MenuIcons\*.*" "%STABLE_API_FOLDER%\MenuIcons\" /Y /I /Q /E
XCOPY "%SDK_SOURCE_FOLDER%\index.html.deploy" "%STABLE_API_FOLDER%\index.html" /Y /I /Q
XCOPY /S "%SDK_SOURCE_FOLDER%\document" "%STABLE_API_FOLDER%\document\" /Y
XCOPY /S "%SDK_SOURCE_FOLDER%\themes" "%STABLE_API_FOLDER%\themes\" /Y
echo Build new version
CALL build_sdk_all.bat %STABLE_SDK_JS% %STABLE_SDK_LOG_FOLDER% "ASC_DOCS_API_DEBUG=true"
XCOPY "%STABLE_SDK_LOG_FOLDER%\property.map" "%STABLE_API_FOLDER%\property.map" /Y /I /Q
XCOPY "%STABLE_SDK_LOG_FOLDER%\variable.map" "%STABLE_API_FOLDER%\variable.map" /Y /I /Q
XCOPY "%STABLE_SDK_LOG_FOLDER%\apiExport.js" "%STABLE_API_FOLDER%\apiExport.js" /Y /I /Q
echo Script finished successfully!
pause
exit /b 0
:check_svn
svn help > nul 2>&1
if errorlevel 1 (
echo Cannot find subversion command-line client.
pause
exit /b 1
)
exit /b 0
SET DEPLOY_FOLDER=\\ISA209\OfficeWeb
SET SOURCE_FOLDER=.\deploy
SET VERSION_INFO=Log\VersionInfo.txt
SET COAUTHORING_SERVER_URL=http://192.168.3.213:3000
SET API_FUNC_FILE_NAME=api_functions
SET SOURCE_DOC_API_FUNC_FOLDER=Log
SET SOURCE_TAB_API_FUNC_FOLDER=..\..\OfficeWebExcel\.build\Log
SET DEPLOY_API_FUNC_FOLDER=\\TESTPC-2\OnlineDocuments\API
SET DEPLOY_DOC_API_FUNC_FOLDER=%DEPLOY_API_FUNC_FOLDER%
SET DEPLOY_TAB_API_FUNC_FOLDER=%DEPLOY_API_FUNC_FOLDER%\Spreadsheet
SET /P DEPLOY_VER= < %VERSION_INFO%
SET /a DEPLOY_VER=%DEPLOY_VER%+1
ECHO %DEPLOY_VER% > %VERSION_INFO%
SET /a MAJOR_DEPLOY_VER=%DEPLOY_VER%/1000
SET /a MINOR_DEPLOY_VER=%DEPLOY_VER%%%1000
SET DEPLOY_SUB_FOLDER=%DEPLOY_FOLDER%\v%MAJOR_DEPLOY_VER%.%MINOR_DEPLOY_VER%
SET OUTPUT_API_FUNC_FILE_NAME=%API_FUNC_FILE_NAME%_v%MAJOR_DEPLOY_VER%.%MINOR_DEPLOY_VER%.js
MKDIR "%DEPLOY_SUB_FOLDER%" || exit /b 1
XCOPY /S "%SOURCE_FOLDER%\3rdparty" "%DEPLOY_SUB_FOLDER%\3rdparty\" /Y || exit /b 1
XCOPY /S "%SOURCE_FOLDER%\apps" "%DEPLOY_SUB_FOLDER%\apps\" /Y || exit /b 1
XCOPY /S "%SOURCE_FOLDER%\sdk" "%DEPLOY_SUB_FOLDER%\sdk\" /Y || exit /b 1
ECHO var g_cAscCoAuthoringUrl = "%COAUTHORING_SERVER_URL%"; > "%DEPLOY_SUB_FOLDER%\sdk\OfficeWebCommon\docscoapisettings.js"
XCOPY /S "%SOURCE_DOC_API_FUNC_FOLDER%\%API_FUNC_FILE_NAME%.js" "%DEPLOY_DOC_API_FUNC_FOLDER%\%OUTPUT_API_FUNC_FILE_NAME%" /Y
XCOPY /S "%SOURCE_TAB_API_FUNC_FOLDER%\%API_FUNC_FILE_NAME%.js" "%DEPLOY_TAB_API_FUNC_FOLDER%\%OUTPUT_API_FUNC_FILE_NAME%" /Y
@ECHO Script finished successfuly.
pause
@ECHO OFF
SET HG_DIR=C:\hg.stable
SET CHANGE_LOG_FILE=change.log
cd /D %HG_DIR%
ECHO Enter last version hg rev:
SET /p HG_REV=""
ECHO Menu changes: > %CHANGE_LOG_FILE%
hg log -r "%HG_REV%: and ancestors(tip) and not merge()" --template="-{desc}\r\n" >> %CHANGE_LOG_FILE%
%CHANGE_LOG_FILE%
\ No newline at end of file
0. Java
- Java
- Java
1.
- \\mediaserver\Exchange\Golubev\Tools .
- gcc, http://closure-compiler.googlecode.com/files/compiler-latest.zip
- , C:\Program Files (x86)\Google\Closure-compiler
- YUICompressor, http://yui.zenfs.com/releases/yuicompressor/yuicompressor-2.4.7.zip
- , C:\Program Files (x86)\Yahoo\yuicompressor-2.4.7\build\
- CLASSPATH, : C:\Program Files (x86)\Google\Closure-compiler\compiler.jar; C:\Program Files (x86)\Yahoo\yuicompressor-2.4.7\build\yuicompressor-2.4.7.jar
2. svn-.
- , http://www.sliksvn.com, .
1.6.18, , 1.7 , 1.6.17:
http://www.sliksvn.com/pub/Slik-Subversion-1.6.17-win32.msi
http://www.sliksvn.com/pub/Slik-Subversion-1.6.17-x64.msi
- .
3. .
- heckout svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebWord/Build
( E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebWord\Build)
- , , , .
:
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebWord (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebWord)
-
-
- svn://fileserver/activex/ASC/Redist/WEB/sdk/OfficeWebWord (E:\Subversion\ASC\Redist\WEB\sdk\OfficeWebWord)
- commit_new_sdk_all.bat
4.
- , C:\Hg
- , build.bat MENU_FOLDER
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebWord (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebWord)
- build.bat
:
- .
- .
-
deploy
- ( 3rdparty).
- :
deploy/apps/api/documents/index.html?doctype=text
- :
deploy/apps/api/documents/index.html?doctype=text&type=mobile
- :
deploy/apps/api/documents/index.html?doctype=spreadsheet
- :
deploy/apps/api/documents/index.html?doctype=spreadsheet&type=mobile
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebWord/Build/Log (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebWord\Build\Log)
function GetBold()
{
var prop = editor.PT();
return prop.A7().a6();
}
function SetBold(flag)
{
editor.n$(flag);
}
function GetItalic()
{
var prop = editor.PT();
return prop.A7().J6();
}
function SetItalic(flag)
{
editor.q$(flag);
}
function GetUnderlined()
{
var prop = editor.PT();
return prop.A7().D7();
}
function SetUnderlined(flag)
{
editor.s$(flag);
}
function GetStrikeout()
{
var prop = editor.PT();
return prop.A7().q7();
}
function SetStrikeout(flag)
{
editor.r$(flag);
}
function GetFontType()
{
var prop = editor.PT();
return prop.A7().s6().uC();
}
function SetFontType(fontName)
{
editor.o$(fontName);
}
function GetFontSize()
{
var prop = editor.PT();
return prop.A7().v6();
}
function SetFontSize(fontSize)
{
editor.p$(fontSize);
}
function GetFontColorRed()
{
var prop = editor.PT();
return prop.A7().ow().N7();
}
function GetFontColorGreen()
{
var prop = editor.PT();
return prop.A7().ow().J7();
}
function GetFontColorBlue()
{
var prop = editor.PT();
return prop.A7().ow().I7();
}
function SetFontColor(red, green, blue)
{
editor.l$(red, green, blue)
}
function GetHighlightColorRed()
{
var prop = editor.PT();
return prop.A7().A6().N7();
}
function GetHighlightColorGreen()
{
var prop = editor.PT();
return prop.A7().A6().J7();
}
function GetHighlightColorBlue()
{
var prop = editor.PT();
return prop.A7().A6().I7();
}
function SetHighlightColor(flag, red, green, blue)
{
editor.E9(flag, red, green, blue)
}
function GetBackgroundColorRed()
{
var prop = editor.PT();
return prop.g7().l7().ow().N7();
}
function GetBackgroundColorGreen()
{
var prop = editor.PT();
return prop.g7().l7().ow().J7();
}
function GetBackgroundColorBlue()
{
var prop = editor.PT();
return prop.g7().l7().ow().I7();
}
function SetBackgroundColor(flag, red, green, blue)
{
editor.Q9(flag, red, green, blue)
}
function GetVerticalAlignment()
{
var prop = editor.PT();
return prop.A7().E7();
}
function SetVerticalAlignment(vertical_alignment)
{
editor.m$(vertical_alignment)
}
function GetHorizontalAlignment()
{
var prop = editor.PT();
return prop.g7().K6();
}
function SetHorizontalAlignment(horizontal_alignment)
{
editor.R9(horizontal_alignment)
}
function SetListType(type_id, subtype_id)
{
editor.G9(type_id, subtype_id)
}
function AddPageBreak()
{
editor.i9();
}
function GetIndentFirstLine()
{
var prop = editor.PT();
return prop.g7().aM().q6();
}
function GetIndentLeft()
{
var prop = editor.PT();
return prop.g7().aM().ps();
}
function GetIndentRight()
{
var prop = editor.PT();
return prop.g7().aM().qs();
}
function SetIndentFirstLine(first_line)
{
editor.S9(first_line);
}
function SetIndentLeft(left)
{
editor.T9(left);
}
function SetIndentRight(right)
{
editor.U9(right);
}
function GetSpacingLine()
{
var prop = editor.PT();
return prop.g7().wC().N6();
}
function GetSpacingBefore()
{
var prop = editor.PT();
return prop.g7().wC().Y5();
}
function GetSpacingAfter()
{
var prop = editor.PT();
return prop.g7().wC().W5();
}
function GetSpacingLineRule()
{
var prop = editor.PT();
return prop.g7().wC().O6();
}
function SetSpacingLine(line)
{
editor.V9(line);
}
function SetSpacingBefore(before)
{
editor.F9(0, before);
}
function SetSpacingAfter(after)
{
editor.F9(1, after);
}
function SetSpacingBetween(between)
{
editor.j9(between);
}
function SetMargin(left, up, right, down)
{
editor.H9(left, up, right, down);
}
function GetParagraphCount()
{
return editor.j6();
}
function SelectParagraph(paragraph_number)
{
editor.Y$(paragraph_number);
}
function HiddentSymbolsIsShown()
{
return editor.m7()
}
function GetPageCount()
{
return editor.S5()
}
function ParagraphPlacementPageBreakBefore()
{
var prop = editor.PT();
return prop.g7().dM();
}
function ParagrphPlacementKeepLinesTogether()
{
var prop = editor.PT();
return prop.g7().bM();
}
function InsertImageByURL(url)
{
editor.rI(url);
}
function GetOrientation()
{
return editor.pw();
}
function GetDocHeight()
{
return editor.jZ();
}
function GetDocWidth()
{
return editor.kZ();
}
function InsertTable(column, rows)
{
editor.e$(column, rows);
}
function OpenHeading(page_number)
{
editor.EZ(page_number)
}
function CloseHeading(page_number)
{
editor.DZ(page_number)
}
function CloseHeaderFooter(page_number)
{
editor.EZ(page_number)
}
function GetBold()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Bold();
}
function SetBold(flag)
{
editor.put_TextPrBold(flag);
}
function GetItalic()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Italic();
}
function SetItalic(flag)
{
editor.put_TextPrItalic(flag);
}
function GetUnderlined()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Underline();
}
function SetUnderlined(flag)
{
editor.put_TextPrUnderline(flag);
}
function GetStrikeout()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Strikeout();
}
function SetStrikeout(flag)
{
editor.put_TextPrStrikeout(flag);
}
function GetFontType()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_FontFamily().get_Name();
}
function SetFontType(fontName)
{
editor.put_TextPrFontName(fontName);
}
function GetFontSize()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_FontSize();
}
function SetFontSize(fontSize)
{
editor.put_TextPrFontSize(fontSize);
}
function GetFontColorRed()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Color().get_r();
}
function GetFontColorGreen()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Color().get_g();
}
function GetFontColorBlue()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Color().get_b();
}
function SetFontColor(red, green, blue)
{
editor.put_TextColor(red, green, blue)
}
function GetHighlightColorRed()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_HighLight().get_r();
}
function GetHighlightColorGreen()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_HighLight().get_g();
}
function GetHighlightColorBlue()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_HighLight().get_b();
}
function SetHighlightColor(flag, red, green, blue)
{
editor.put_LineHighLight(flag, red, green, blue)
}
function GetBackgroundColorRed()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Shd().get_Color().get_r();
}
function GetBackgroundColorGreen()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Shd().get_Color().get_g();
}
function GetBackgroundColorBlue()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Shd().get_Color().get_b();
}
function SetBackgroundColor(flag, red, green, blue)
{
editor.put_ParagraphShade(flag, red, green, blue)
}
function GetVerticalAlignment()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_VertAlign();
}
function SetVerticalAlignment(vertical_alignment)
{
editor.put_TextPrBaseline(vertical_alignment)
}
function GetHorizontalAlignment()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Jc();
}
function SetHorizontalAlignment(horizontal_alignment)
{
editor.put_PrAlign(horizontal_alignment)
}
function SetListType(type_id, subtype_id)
{
editor.put_ListType(type_id, subtype_id)
}
function AddPageBreak()
{
editor.put_AddPageBreak();
}
function GetIndentFirstLine()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Ind().get_FirstLine();
}
function GetIndentLeft()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Ind().get_Left();
}
function GetIndentRight()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Ind().get_Right();
}
function SetIndentFirstLine(first_line)
{
editor.put_PrFirstLineIndent(first_line);
}
function SetIndentLeft(left)
{
editor.put_PrIndent(left);
}
function SetIndentRight(right)
{
editor.put_PrIndentRight(right);
}
function GetSpacingLine()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Spacing().get_Line();
}
function GetSpacingBefore()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Spacing().get_Before();
}
function GetSpacingAfter()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Spacing().get_After();
}
function GetSpacingLineRule()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Spacing().get_LineRule();
}
function SetSpacingLine(line)
{
editor.put_PrLineSpacing(line);
}
function SetSpacingBefore(before)
{
editor.put_LineSpacingBeforeAfter(0, before);
}
function SetSpacingAfter(after)
{
editor.put_LineSpacingBeforeAfter(1, after);
}
function SetSpacingBetween(between)
{
editor.put_AddSpaceBetweenPrg(between);
}
function SetMargin(left, up, right, down)
{
editor.put_Margins(left, up, right, down);
}
function GetParagraphCount()
{
return editor.get_ContentCount();
}
function SelectParagraph(paragraph_number)
{
editor.select_Element(paragraph_number);
}
function HiddentSymbolsIsShown()
{
return editor.get_ShowParaMarks()
}
function GetPageCount()
{
return editor.getCountPages()
}
function ParagraphPlacementPageBreakBefore()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_PageBreakBefore();
}
function ParagrphPlacementKeepLinesTogether()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_KeepLines();
}
function InsertImageByURL(url)
{
editor.AddImageUrl(url);
}
function GetOrientation()
{
return editor.get_DocumentOrientation();
}
function GetDocHeight()
{
return editor.GetDocHeightPx();
}
function GetDocWidth()
{
return editor.GetDocWidthPx();
}
function InsertTable(column, rows)
{
editor.put_Table(column, rows);
}
function OpenHeading(page_number)
{
editor.GoToHeader(page_number)
}
function CloseHeading(page_number)
{
editor.GoToFooter(page_number)
}
function CloseHeaderFooter(page_number)
{
editor.GoToHeader(page_number)
}
@ECHO OFF
SET MENU_FOLDER=C:\Hg
SET FONT_ENGINE=..\FontsFreeType
SET TEXT_ENGINE=..\WebWord
SET COMMON=..\..\OfficeWebCommon
SET DEPLOY_FOLDER=deploy
SET OUTPUT_FOLDER=%DEPLOY_FOLDER%\sdk\OfficeWebWord
SET OUTPUT_FONT_FOLDER=%OUTPUT_FOLDER%\FontsFreeType\FontFiles
SET RESULT_SCRIPT_NAME=%OUTPUT_FOLDER%\WebWord\sdk-all.js
ECHO ----------------------------------
ECHO Make output folder: %OUTPUT_FOLDER%
ECHO ----------------------------------
MKDIR %OUTPUT_FOLDER%
rem Build site structure
ECHO ----------------------------------
ECHO Copy fonts files
ECHO ----------------------------------
XCOPY "%FONT_ENGINE%\FontFiles" "%OUTPUT_FONT_FOLDER%" /Y /I /Q
rem ECHO Copy scroll resources
ECHO ----------------------------------
ECHO Copy common resorses
ECHO ----------------------------------
XCOPY "%COMMON%\MobileDownloader" "%OUTPUT_FOLDER%\..\OfficeWebCommon\MobileDownloader" /Y /I /Q
XCOPY "%COMMON%\docscoapisettings.js" "%OUTPUT_FOLDER%\..\OfficeWebCommon\" /Y /I /Q
ECHO ----------------------------------
ECHO Copy cursor resources
ECHO ----------------------------------
XCOPY "%TEXT_ENGINE%\Images\copy_format.cur" "%OUTPUT_FOLDER%\WebWord\Images\" /Y /I /Q
XCOPY "%TEXT_ENGINE%\Images\copy_format.png" "%OUTPUT_FOLDER%\WebWord\Images\" /Y /I /Q
XCOPY "%TEXT_ENGINE%\Images\marker_format.cur" "%OUTPUT_FOLDER%\WebWord\Images\" /Y /I /Q
XCOPY "%TEXT_ENGINE%\Images\marker_format.png" "%OUTPUT_FOLDER%\WebWord\Images\" /Y /I /Q
rem XCOPY "%TEXT_ENGINE%\apiDefines.js" "%OUTPUT_FOLDER%\apiDefines.js" /Y /I /Q
rem --formatting PRETTY_PRINT ^
SET EDITOR_API_FILE=%TEXT_ENGINE%\api.js
SET EDITOR_APIDEFINE_FILE=%TEXT_ENGINE%\apiDefines.js
SET BUIL_LOG_DIR=Log
SET EDITOR_API_EXPORT_FILE=%BUIL_LOG_DIR%\apiExport.js
SET VARIABLE_MAP_FILE=%BUIL_LOG_DIR%\variable.map
SET PROPERTY_MAP_FILE=%BUIL_LOG_DIR%\property.map
SET OUTVAL_MAP_FILE=%BUIL_LOG_DIR%\out_val.map
SET OUTOBF_MAP_FILE=%BUIL_LOG_DIR%\out_obf.map
ECHO ----------------------------------
ECHO Generate api exports
ECHO ----------------------------------
ExtractJSApi.exe "%EDITOR_API_FILE%" "%EDITOR_API_EXPORT_FILE%"
CALL build_sdk_all.bat %RESULT_SCRIPT_NAME% %BUIL_LOG_DIR% "ASC_DOCS_API_DEBUG=false"
rem GOTO Sucsess
CALL %MENU_FOLDER%\Build\build.bat
ECHO ----------------------------------
ECHO Copy menu
ECHO ----------------------------------
rem XCOPY /S %MENU_FOLDER%\3rdparty %DEPLOY_FOLDER%\3rdparty\ /Y
XCOPY /S %MENU_FOLDER%\deploy\api %DEPLOY_FOLDER%\apps\api\ /Y
XCOPY /S %MENU_FOLDER%\deploy\documenteditor %DEPLOY_FOLDER%\apps\documenteditor\ /Y
SET MENU_DEPLOY_FOLDER=%DEPLOY_FOLDER%\apps
SET EDITOR_MENU=%MENU_DEPLOY_FOLDER%\documenteditor
set EDITOR_MENU_JS_FILE=%EDITOR_MENU%\main\app-all.js
set TOUCH_EDITOR_MENU_JS_FILE=%EDITOR_MENU%\mobile\app-all.js
set API_TEST_JS_FILE=api_functions.js
set OUTPUT_API_TEST_JS_FILE=%BUIL_LOG_DIR%\%API_TEST_JS_FILE%
ECHO ----------------------------------
ECHO Obfuscate JS API
ECHO ----------------------------------
ObfuscateJSApi.exe -verbose -ccvars "%VARIABLE_MAP_FILE%" ^
-ccprops "%PROPERTY_MAP_FILE%" ^
-api "%EDITOR_API_EXPORT_FILE%" ^
-clientjs "%EDITOR_MENU_JS_FILE%" "%EDITOR_MENU_JS_FILE%" ^
-clientjs "%TOUCH_EDITOR_MENU_JS_FILE%" "%TOUCH_EDITOR_MENU_JS_FILE%" ^
-clientjs "%API_TEST_JS_FILE%" "%OUTPUT_API_TEST_JS_FILE%" ^
-ccres "%RESULT_SCRIPT_NAME%" "%RESULT_SCRIPT_NAME%"
ECHO ----------------------------------
ECHO Obfuscate callback name
ECHO ----------------------------------
ObfuscateStrings.exe ^
-api "%RESULT_SCRIPT_NAME%" ^
-pat "\"On[A-Z]+\w*\"" -exp se -outmap "%OUTVAL_MAP_FILE%" "%OUTOBF_MAP_FILE%" ^
-apply "%EDITOR_MENU_JS_FILE%" "%EDITOR_MENU_JS_FILE%" ^
-apply "%TOUCH_EDITOR_MENU_JS_FILE%" "%TOUCH_EDITOR_MENU_JS_FILE%" ^
-apply "%OUTPUT_API_TEST_JS_FILE%" "%OUTPUT_API_TEST_JS_FILE%" ^
-apply "%RESULT_SCRIPT_NAME%" "%RESULT_SCRIPT_NAME%"
:Sucsess
pause
@ECHO OFF
SET BUILD_DIR=%CD%
SET SOURCE_MAP_NAME=SourceMap.js
SET OUTPUT_SCRIPT_NAME=%~nx1
SET OUTPUT_FOLDER=%~dp1
SET LOG_FOLDER=%~f2
CD ..\WebWord
SET TEXT_ENGINE=.
SET FONT_ENGINE=..\FontsFreeType
SET COMMON_FOLDER=..\..\OfficeWebCommon
SET EDITOR_API_EXPORT_FILE=%LOG_FOLDER%\apiExport.js
SET VARIABLE_MAP_FILE=%LOG_FOLDER%\variable.map
SET PROPERTY_MAP_FILE=%LOG_FOLDER%\property.map
SET OUTVAL_MAP_FILE=%LOG_FOLDER%\out_val.map
SET OUTOBF_MAP_FILE=%LOG_FOLDER%\out_obf.map
SET GCC_DEFINE=%3
SET CLOSURE_COMPILER=com.google.javascript.jscomp.CommandLineRunner
ECHO Make output folder: %LOG_FOLDER%
MKDIR %LOG_FOLDER%
rem --formatting PRETTY_PRINT ^
SET EDITOR_API_FILE=%TEXT_ENGINE%\api.js
SET EDITOR_APIDEFINE_FILE=%TEXT_ENGINE%\apiDefines.js
ECHO ON
%BUILD_DIR%\ExtractJSApi.exe "%EDITOR_API_FILE%" "%EDITOR_API_EXPORT_FILE%"
java %CLOSURE_COMPILER% ^
--compilation_level ADVANCED_OPTIMIZATIONS ^
--externs "%TEXT_ENGINE%\Drawing\scrolls\jquery.min.js" ^
--externs "%COMMON_FOLDER%\3rdparty\Underscore\underscore-min.js" ^
--externs "%COMMON_FOLDER%\3rdparty\Sockjs\sockjs-0.3.min.js" ^
--externs "%BUILD_DIR%\apiExtern.js" ^
--js ^
"%COMMON_FOLDER%\License.js" ^
"%COMMON_FOLDER%\docscoapicommon.js" ^
"%COMMON_FOLDER%\docscoapi.js" ^
"%COMMON_FOLDER%\downloaderfiles.js" ^
"%FONT_ENGINE%\font_engine.js" ^
"%FONT_ENGINE%\FontFile.js" ^
"%FONT_ENGINE%\FontManager.js" ^
"%TEXT_ENGINE%\Drawing\Externals.js" ^
"%TEXT_ENGINE%\Drawing\AllFonts.js" ^
"%TEXT_ENGINE%\Drawing\GlobalLoaders.js" ^
"%FONT_ENGINE%\FontExport.js" ^
"%TEXT_ENGINE%\Editor\CollaborativeEditing.js" ^
"%TEXT_ENGINE%\Editor\Comments.js" ^
"%TEXT_ENGINE%\Editor\History.js" ^
"%TEXT_ENGINE%\Editor\Styles.js" ^
"%TEXT_ENGINE%\Editor\DrawingObjects.js" ^
"%TEXT_ENGINE%\Editor\FlowObjects.js" ^
"%TEXT_ENGINE%\Editor\ParagraphContent.js" ^
"%TEXT_ENGINE%\Editor\Paragraph.js" ^
"%TEXT_ENGINE%\Editor\Sections.js" ^
"%TEXT_ENGINE%\Editor\Numbering.js" ^
"%TEXT_ENGINE%\Editor\HeaderFooter.js" ^
"%TEXT_ENGINE%\Editor\Document.js" ^
"%TEXT_ENGINE%\Editor\Common.js" ^
"%TEXT_ENGINE%\Editor\DocumentContent.js" ^
"%TEXT_ENGINE%\Editor\Table.js" ^
"%TEXT_ENGINE%\Editor\Serialize2.js" ^
"%TEXT_ENGINE%\Drawing\translations.js" ^
"%TEXT_ENGINE%\Drawing\documentrenderer.js" ^
"%TEXT_ENGINE%\Drawing\Graphics.js" ^
"%TEXT_ENGINE%\Drawing\Metafile.js" ^
"%TEXT_ENGINE%\Drawing\DrawingDocument.js" ^
"%TEXT_ENGINE%\Drawing\GraphicsEvents.js" ^
"%TEXT_ENGINE%\Drawing\WorkEvents.js" ^
"%TEXT_ENGINE%\Drawing\Controls.js" ^
"%TEXT_ENGINE%\Drawing\Rulers.js" ^
"%TEXT_ENGINE%\Drawing\HtmlPage.js" ^
"%TEXT_ENGINE%\Drawing\scrolls\scroll.js" ^
"%EDITOR_APIDEFINE_FILE%" ^
"%EDITOR_API_FILE%" ^
"%EDITOR_API_EXPORT_FILE%" ^
--define=%GCC_DEFINE% ^
--js_output_file "%OUTPUT_SCRIPT_NAME%" ^
--warning_level QUIET ^
--variable_map_output_file "%VARIABLE_MAP_FILE%" ^
--property_map_output_file "%PROPERTY_MAP_FILE%" ^
--create_source_map "%OUTPUT_SCRIPT_NAME%.map" ^
--source_map_format=V3
@if NOT "%ERRORLEVEL%"=="0" goto error
SET OUTPUT_APIDEFINE_FILE=%EDITOR_APIDEFINE_FILE%.tmp
java %CLOSURE_COMPILER% ^
--compilation_level SIMPLE_OPTIMIZATIONS ^
--js "%EDITOR_APIDEFINE_FILE%" ^
--js_output_file "%OUTPUT_APIDEFINE_FILE%"
@if NOT "%ERRORLEVEL%"=="0" goto error
ECHO //@ sourceMappingURL=http://localhost:8080/sdk/OfficeWebWord/WebWord/%OUTPUT_SCRIPT_NAME%.map>"%SOURCE_MAP_NAME%"
COPY /Y /B "%OUTPUT_SCRIPT_NAME%"+"%OUTPUT_APIDEFINE_FILE%"+"%SOURCE_MAP_NAME%" "%OUTPUT_SCRIPT_NAME%"
MOVE /Y "%OUTPUT_SCRIPT_NAME%" "%OUTPUT_FOLDER%"
COPY /Y "%OUTPUT_SCRIPT_NAME%.map" "%OUTPUT_FOLDER%"
DEL /Q "%OUTPUT_APIDEFINE_FILE%"
DEL /Q "%SOURCE_MAP_NAME%"
@ECHO off
cd "%BUILD_DIR%"
exit /b 0
:check_compiler
java -classpath %CLASSPATH% %CLOSURE_COMPILER% --help >nul 2>&1
if "%ERRORLEVEL%"=="-1" exit /b 0
if NOT EXIST google-cc-path.txt echo %cd% > google-cc-path.txt
:_1
set /p gccpath=<google-cc-path.txt
call :check_gccpath "%gccpath%" && exit /b 0
echo Please enter correct path to Google Closure Complier directory in "google-cc-path.txt" file
echo.
start "" /wait notepad google-cc-path.txt
goto _1
:check_gccpath
if EXIST "%~1\compiler.jar" (
if "%CLASSPATH%"=="" (
set CLASSPATH="%~1\compiler.jar"
) else (
set CLASSPATH=%CLASSPATH%;"%~1\compiler.jar"
)
exit /b 0
)
exit /b 1
:error
@exit /b 1
\ No newline at end of file
@ECHO OFF
SET BUILD_DIR=%CD%
SET SOURCE_MAP_NAME=SourceMap.js
SET OUTPUT_SCRIPT_NAME=sdk-all-merge.js
SET OUTPUT_FOLDER=../Build/deploy/merge
SET LOG_FOLDER=Log
CD ..\WebWord
SET TEXT_ENGINE=.
SET FONT_ENGINE=..\FontsFreeType
SET COMMON_FOLDER=..\..\OfficeWebCommon
SET EDITOR_API_EXPORT_FILE=%LOG_FOLDER%\apiExport.js
SET VARIABLE_MAP_FILE=%LOG_FOLDER%\variable.map
SET PROPERTY_MAP_FILE=%LOG_FOLDER%\property.map
SET OUTVAL_MAP_FILE=%LOG_FOLDER%\out_val.map
SET OUTOBF_MAP_FILE=%LOG_FOLDER%\out_obf.map
SET CLOSURE_COMPILER=com.google.javascript.jscomp.CommandLineRunner
ECHO Make output folder: %LOG_FOLDER%
MKDIR %LOG_FOLDER%
rem --formatting PRETTY_PRINT ^
SET EDITOR_API_FILE=%TEXT_ENGINE%\merge\api_merge.js
SET EDITOR_APIDEFINE_FILE=%TEXT_ENGINE%\apiDefines.js
java %CLOSURE_COMPILER% ^
--compilation_level SIMPLE_OPTIMIZATIONS ^
--js ^
"%TEXT_ENGINE%\merge\utils.js" ^
"%TEXT_ENGINE%\Editor\CollaborativeEditing.js" ^
"%TEXT_ENGINE%\Editor\History.js" ^
"%TEXT_ENGINE%\Editor\Styles.js" ^
"%TEXT_ENGINE%\Editor\DrawingObjects.js" ^
"%TEXT_ENGINE%\Editor\FlowObjects.js" ^
"%TEXT_ENGINE%\Editor\ParagraphContent.js" ^
"%TEXT_ENGINE%\Editor\Paragraph.js" ^
"%TEXT_ENGINE%\Editor\Sections.js" ^
"%TEXT_ENGINE%\Editor\Numbering.js" ^
"%TEXT_ENGINE%\Editor\HeaderFooter.js" ^
"%TEXT_ENGINE%\Editor\Document.js" ^
"%TEXT_ENGINE%\Editor\Common.js" ^
"%TEXT_ENGINE%\Editor\DocumentContent.js" ^
"%TEXT_ENGINE%\Editor\Table.js" ^
"%TEXT_ENGINE%\Editor\Serialize2.js" ^
"%EDITOR_APIDEFINE_FILE%" ^
"%EDITOR_API_FILE%" ^
--js_output_file "%OUTPUT_SCRIPT_NAME%" ^
--warning_level QUIET ^
--variable_map_output_file "%VARIABLE_MAP_FILE%" ^
--property_map_output_file "%PROPERTY_MAP_FILE%" ^
--create_source_map "%OUTPUT_SCRIPT_NAME%.map" ^
--source_map_format=V3
@if NOT "%ERRORLEVEL%"=="0" goto error
SET OUTPUT_APIDEFINE_FILE=%EDITOR_APIDEFINE_FILE%.tmp
java %CLOSURE_COMPILER% ^
--compilation_level SIMPLE_OPTIMIZATIONS ^
--js "%EDITOR_APIDEFINE_FILE%" ^
--js_output_file "%OUTPUT_APIDEFINE_FILE%"
@if NOT "%ERRORLEVEL%"=="0" goto error
COPY /Y /B "%OUTPUT_SCRIPT_NAME%"+"%OUTPUT_APIDEFINE_FILE%" "%OUTPUT_SCRIPT_NAME%"
MOVE /Y "%OUTPUT_SCRIPT_NAME%" "%OUTPUT_FOLDER%"
DEL /Q "%OUTPUT_APIDEFINE_FILE%"
COPY /Y /B "%TEXT_ENGINE%\merge\merge.js" "%OUTPUT_FOLDER%"
@ECHO off
cd "%BUILD_DIR%"
exit /b 0
:check_compiler
java -classpath %CLASSPATH% %CLOSURE_COMPILER% --help >nul 2>&1
if "%ERRORLEVEL%"=="-1" exit /b 0
if NOT EXIST google-cc-path.txt echo %cd% > google-cc-path.txt
:_1
set /p gccpath=<google-cc-path.txt
call :check_gccpath "%gccpath%" && exit /b 0
echo Please enter correct path to Google Closure Complier directory in "google-cc-path.txt" file
echo.
start "" /wait notepad google-cc-path.txt
goto _1
:check_gccpath
if EXIST "%~1\compiler.jar" (
if "%CLASSPATH%"=="" (
set CLASSPATH="%~1\compiler.jar"
) else (
set CLASSPATH=%CLASSPATH%;"%~1\compiler.jar"
)
exit /b 0
)
exit /b 1
:error
@exit /b 1
\ No newline at end of file
@ECHO OFF
SET FONT_ENGINE=..\FontsFreeType
SET TEXT_ENGINE=..\WebWord
SET VIEW_ENGINE=%TEXT_ENGINE%\Viewer
SET MENU_ENGINE=%TEXT_ENGINE%\menu
set CLOSURE_COMPILER=com.google.javascript.jscomp.CommandLineRunner
SET OUTPUT_SCRIPT_NAME=%VIEW_ENGINE%\viewer.js
rem --formatting PRETTY_PRINT ^
ECHO ON
ExtractJSApi.exe "%VIEW_ENGINE%\api.js" "apiViewerExport.js"
java %CLOSURE_COMPILER% ^
--compilation_level ADVANCED_OPTIMIZATIONS ^
--js ^
"%TEXT_ENGINE%\common\downloaderfiles.js" ^
"%TEXT_ENGINE%\..\FontEngine\font_engine.js" ^
"%FONT_ENGINE%\FontFile.js" ^
"%FONT_ENGINE%\FontManager.js" ^
"%TEXT_ENGINE%\Drawing\Externals.js" ^
"%TEXT_ENGINE%\Drawing\AllFonts.js" ^
"%TEXT_ENGINE%\Drawing\GlobalLoaders.js" ^
"%FONT_ENGINE%\FontExport.js" ^
"%TEXT_ENGINE%\Drawing\Graphics.js" ^
"%TEXT_ENGINE%\Drawing\Metafile.js" ^
"%VIEW_ENGINE%\scripts\HtmlPage.js" ^
"%VIEW_ENGINE%\scripts\DrawingDocument.js" ^
"%VIEW_ENGINE%\scripts\documentrenderer.js" ^
"%TEXT_ENGINE%\Drawing\GraphicsEvents.js" ^
"%TEXT_ENGINE%\Drawing\Controls.js" ^
"%TEXT_ENGINE%\Drawing\WorkEvents.js" ^
"%MENU_ENGINE%\Statusbar.js" ^
"%TEXT_ENGINE%\Drawing\scrolls\scroll.js" ^
"%TEXT_ENGINE%\apiDefines.js" ^
"%VIEW_ENGINE%\api.js" ^
"apiViewerExport.js" ^
"%VIEW_ENGINE%\loader.js" ^
--js_output_file "%OUTPUT_SCRIPT_NAME%" ^
--warning_level QUIET ^
--variable_map_output_file "variable.map" ^
--property_map_output_file "property.map"
pause
@ECHO off
\ No newline at end of file
@echo off
SET STABLE_API_FOLDER=..\..\..\..\..\ASC\Redist\WEB\sdk\OfficeWebWord
SET STABLE_SDK_FOLDER=%STABLE_API_FOLDER%\WebWord
SET STABLE_SDK_JS=%STABLE_SDK_FOLDER%\sdk-all.js
SET STABLE_SDK_LOG_FOLDER=Log
SET SDK_SOURCE_FOLDER=..
SET SDK_COMMON_SOURCE_FOLDER=..\..\OfficeWebCommon
SET COMMIT_MESSAGE_FILE=info.log
call :check_svn || exit /b 1
cd /D "%~dp0" || exit /b 1
echo Update OfficeWebWord svn repository
svn update %SDK_COMMON_SOURCE_FOLDER%
svn update %SDK_SOURCE_FOLDER%
echo Copy API script.
XCOPY /S "%SDK_SOURCE_FOLDER%\WebWord\document" "%STABLE_API_FOLDER%\document\" /Y
XCOPY "%SDK_SOURCE_FOLDER%\WebWord\api.js" "%STABLE_API_FOLDER%\api.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\WebWord\apiDefines.js" "%STABLE_API_FOLDER%\apiDefines.js" /Y /I /Q
echo "sdk-all.js was build from svn repository (see log below):" > %COMMIT_MESSAGE_FILE%
svn info %SDK_SOURCE_FOLDER% >> %COMMIT_MESSAGE_FILE%
echo Build new version
CALL build_sdk_all.bat %STABLE_SDK_JS% %STABLE_SDK_LOG_FOLDER% "ASC_DOCS_API_DEBUG=true"
XCOPY "%STABLE_SDK_LOG_FOLDER%\property.map" "%STABLE_API_FOLDER%\WebWord\property.map" /Y /I /Q
XCOPY "%STABLE_SDK_LOG_FOLDER%\variable.map" "%STABLE_API_FOLDER%\WebWord\variable.map" /Y /I /Q
XCOPY "%STABLE_SDK_LOG_FOLDER%\apiExport.js" "%STABLE_API_FOLDER%\WebWord\apiExport.js" /Y /I /Q
echo Update putput svn repository
svn update %STABLE_API_FOLDER%
echo Commit changes
@echo on
svn commit %STABLE_API_FOLDER% -F %COMMIT_MESSAGE_FILE%
@echo off
del %COMMIT_MESSAGE_FILE%
echo Script finished successfully!
pause
exit /b 0
:check_svn
svn help > nul 2>&1
if errorlevel 1 (
echo Cannot find subversion command-line client.
pause
exit /b 1
)
exit /b 0
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment