1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-29 15:51:17 +00:00
syncthing-android/lint_enable.cmd
Catfriend1 337faa8373
Add helper scripts to quickly enable/disable lint (#212)
Requires UnixTools sed.exe on Windows
2019-01-07 21:11:01 +01:00

13 lines
409 B
Batchfile

@echo off
REM
REM Enable lint during build
REM
SET APP_BUILD_GRADLE=%~dps0app\build.gradle
REM
cls
echo [INFO] Enabling lint during build ...
sed -e "s/\s\/\/task.dependsOn lint/ task.dependsOn lint/gI" -e "s/\s\/\/task.mustRunAfter lint/ task.mustRunAfter lint/gI" "%APP_BUILD_GRADLE%" > "%APP_BUILD_GRADLE%.tmp"
move /y "%APP_BUILD_GRADLE%.tmp" "%APP_BUILD_GRADLE%"
echo [INFO] Done.
timeout 3
goto :eof