@@ -107,30 +107,32 @@ goto :eof
107
107
@ rem It contains the path th the absolute classpaths
108
108
:classpathArgs
109
109
110
- set _ETC_DIR = " %_PROG_HOME% \etc"
111
- set _TMP_DIR = " %_PROG_HOME% \tmp"
112
- set _INPUT_CLASSPATH_FILE = " %_ETC_DIR% \scaladoc.classpath"
113
- set _OUTPUT_CLASSPATH_FILE = " %_TMP_DIR% \scaladoc.classpath"
110
+ set " _ETC_DIR = %_PROG_HOME% \etc"
111
+ set " _TMP_DIR = %_PROG_HOME% \tmp"
112
+ set " _INPUT_CLASSPATH_FILE = %_ETC_DIR% \scaladoc.classpath"
113
+ set " _OUTPUT_CLASSPATH_FILE = %_TMP_DIR% \scaladoc.classpath"
114
114
115
115
@ rem Check if the _TMP_DIR exists. If not, create it (first time we run the command)
116
- if not exist " %TMP_DIR % " ( mkdir " %TMP_DIR % " )
116
+ if not exist " %_TMP_DIR % " ( mkdir " %_TMP_DIR % " )
117
117
118
118
@ rem If the file doesn't exist, create it (first time we run the command)
119
119
if not exist " %_OUTPUT_CLASSPATH_FILE% " ( call :loadClasspathFromFile )
120
- set _CLASS_PATH_FILE = " %_OUTPUT_CLASSPATH_FILE% "
120
+ set " _CLASS_PATH_FILE = %_OUTPUT_CLASSPATH_FILE% "
121
121
goto :eof
122
122
123
123
@ REM concatentate every line in _INPUT_CLASSPATH_FILE and dump it in the with _PSEP
124
124
:loadClasspathFromFile
125
- set _CLASS_PATH =
126
125
if exist " %_INPUT_CLASSPATH_FILE% " (
127
- for /f " usebackq delims=" %%i in " %_INPUT_CLASSPATH_FILE% " do (
128
- set _LIB = " %_PROG_HOME% \maven2\%%i "
126
+ (echo | set /p = ^ " " " ) " %_OUTPUT_CLASSPATH_FILE% "
127
+ for /f " usebackq delims=" %% i in (" %_INPUT_CLASSPATH_FILE% " ) do (
128
+ set " _LIB = %_PROG_HOME% \maven2\%% i"
129
129
@ rem Adapt the paths from Unix style to MS-DOS style
130
130
set " _LIB = !_LIB:/ =\ ! "
131
+ set " _LIB = !_LIB:\ =\\ ! "
131
132
@ rem Append the processed line to the output file, ensuring a new line
132
- echo !_LIB! >> " %_OUTPUT_CLASSPATH_FILE% "
133
+ ( echo | set /p = !_LIB!!_PSEP! ) >> " %_OUTPUT_CLASSPATH_FILE% "
133
134
)
135
+ (echo | set /p = ^ " " " ) " %_OUTPUT_CLASSPATH_FILE% "
134
136
)
135
137
goto :eof
136
138
0 commit comments