hi-ucs/front/public/leaflet/libs/iclient8c/resource/Android/ProjectBuilder.bat

70 lines
1.4 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
set foldername=project
if exist %foldername% (
rd /s/q %foldername%
echo delete %foldername%
)
:setpackage
set packagename=null
set/p packagename=请输入命名空间名称并回车至少使用两级名称com.supermap
if "%packagename:.=%"=="%packagename%" (
echo 输入不正确。
goto setpackage
) else (
goto setproject
)
:create
echo run phonegap creat.bat
call .\phonegap\bin\create .\%foldername% %packagename% %projectname%
if %errorlevel%==1 (
goto error
)
goto copy2
:setproject
set projectname=null
set/p projectname=请输入工程名并回车iclient
if %projectname%==null (
echo 输入不正确。
goto setproject
) else (
goto create
)
:copy2
echo copy cordova-2.7.0.js
md .\%foldername%\assets\www\js
copy .\%foldername%\assets\www\cordova-2.7.0.js .\%foldername%\assets\www\js
del .\%foldername%\assets\www\cordova-2.7.0.js
echo copy libs
xcopy ..\..\libs .\%foldername%\assets\www\libs /s/e/i/y
echo copy theme
xcopy ..\..\theme .\%foldername%\assets\www\theme /s/e/i/y
echo copy img
xcopy .\img .\%foldername%\assets\www\img /s/e/i/y
echo copy js
xcopy .\js .\%foldername%\assets\www\js /s/e/i/y
echo copy html
xcopy .\html .\%foldername%\assets\www /s/e/i/y
echo copy jar
xcopy .\libs .\%foldername%\libs /s/e/i/y
echo copy xml
copy .\xml\config.xml .\%foldername%\res\xml
goto end
::echo copy src
::xcopy .\src .\%foldername%\src /s/e/i/y
:error
pause
EXIT /B 1
:end