Permalink
Browse files

fix #131 : should now work with absolute and relative path

  • Loading branch information...
rdmueller committed Feb 13, 2018
1 parent e5f677b commit 561cf76f80b9a2264a9d3a1da56af7335f412097
Showing with 10 additions and 1 deletion.
  1. +10 −1 bin/doctoolchain.bat
View
@@ -14,14 +14,23 @@ set SCRIPTDIR=%~dp0
set BASEDIR=%SCRIPTDIR%..\
set GRADLECMD=%BASEDIR%gradlew.bat
set WORKINGDIR=%cd%\
set PATHTODOCS=%1
@REM Execute docToolchain
@REM %GRADLECMD% --project-cache-dir %BASEDIR%.gradle -p %BASEDIR% -PdocDir=%WORKINGDIR%%1 %2 %3 %4 %5 %6 %7 %8 %9
cd %BASEDIR%
./gradlew --project-cache-dir %BASEDIR%/.gradle -PdocDir=%WORKINGDIR%%1 %2 %3 %4 %5 %6
IF "%PATHTODOCS:~0,1%"=="." goto :relativePath
./gradlew --project-cache-dir %BASEDIR%/.gradle -PdocDir=%PATHTODOCS% %2 %3 %4 %5 %6
goto :end
:relativePath
./gradlew --project-cache-dir %BASEDIR%/.gradle -PdocDir=%WORKINGDIR%%PATHTODOCS% %2 %3 %4 %5 %6
goto :end

0 comments on commit 561cf76

Please sign in to comment.