Skip to content

Commit

Permalink
fix docToolchain#131 : should now work with absolute and relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmueller committed Feb 13, 2018
1 parent e5f677b commit 561cf76
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bin/doctoolchain.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 561cf76

Please sign in to comment.