Add windows version of setup-ant.sh file
This commit is contained in:
parent
4e303ae4c2
commit
371a8b0ef6
16
setup-ant.bat
Normal file
16
setup-ant.bat
Normal file
@ -0,0 +1,16 @@
|
||||
@ECHO OFF
|
||||
SETLOCAL enabledelayedexpansion
|
||||
|
||||
SET "target=android-19"
|
||||
|
||||
REM Update ant setup in project and all sub-projects
|
||||
SET "pattern=project.properties"
|
||||
FOR /R "./external/" %%# in (*.properties) DO (
|
||||
ECHO %%~nx# | FIND "%pattern%" 1>NUL && (
|
||||
SET current_dir=%~d0%%~p#
|
||||
SET current_dir=!current_dir:\=/!
|
||||
ECHO Updating ant setup in "!current_dir!"
|
||||
CALL android update lib-project -t %target% -p "!current_dir!"
|
||||
)
|
||||
)
|
||||
CALL android update project -p . --subprojects -t %target% --name Lightning
|
@ -2,8 +2,9 @@
|
||||
|
||||
target="android-19"
|
||||
|
||||
# Update ant setup in project and all sub-projects
|
||||
for f in `find external/ -name project.properties`; do
|
||||
projectdir=`dirname $f`
|
||||
projectdir=`dirname $f`
|
||||
echo "Updating ant setup in $projectdir:"
|
||||
android update lib-project -p $projectdir -t $target
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user