File tree 1 file changed +7
-12
lines changed
1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ if "%1" EQU "--goto" (
46
46
setlocal EnableDelayedExpansion
47
47
48
48
:: Version control
49
- set " version = 1.1.5 "
49
+ set " version = 1.1.6 "
50
50
if " %1 " EQU " --version" (
51
51
echo %version%
52
52
exit /b
@@ -437,22 +437,17 @@ exit /b
437
437
for /D %%i in (" %trackingClasses% \*" ) do robocopy /E " %%~fi " " %classes% " > nul 2 > nul
438
438
robocopy /E " %src% " " %classes% " /XF " *.java" > nul 2 > nul
439
439
copy /Y " %workspace% \LICENSE" " %root% \LICENSE" > nul 2 > nul
440
- (
441
- for /F " usebackq tokens=* delims=" %%i in (`PowerShell -Command " Get-ChildItem -Recurse -File -Exclude '*-sources.jar' -Name -Path '%root% '" `) do (
442
- echo -C " %root:\ =\\ % " %%i
443
- )
444
- for /F " usebackq tokens=* delims=" %%i in (`PowerShell -Command " Get-ChildItem -Recurse -Directory -Name -Path '%root% ' | ?{(Get-Item " %root% \$_" ).GetFileSystemInfos().Count -eq 0}" `) do (
445
- echo -C " %root:\ =\\ % " %%i
446
- )
447
- )> " %~dp0 tmp"
448
- " %JDKBin% \jar.exe" -c -M -f " %addonFile% " " @%~dp0 tmp"
440
+ robocopy /MIR /MOVE " %lib% " " %workspace% \lib-sources" *-sources.jar > nul 2 > nul
441
+ " %JDKBin% \jar.exe" -c -M -f " %addonFile% " -C " %root% " .
449
442
if %ERRORLEVEL% EQU 0 (
443
+ robocopy /E /MOVE " %workspace% \lib-sources" " %lib% " > nul 2 > nul
444
+ rmdir /Q /S " %workspace% \lib-sources" > nul 2 > nul
450
445
echo Packing successful.
451
- del /F " %~dp0 tmp" > nul 2 > nul
452
446
exit /b 0
453
447
) else (
448
+ robocopy /E /MOVE " %workspace% \lib-sources" " %lib% " > nul 2 > nul
449
+ rmdir /Q /S " %workspace% \lib-sources" > nul 2 > nul
454
450
echo Packing unsuccessful.
455
- del /F " %~dp0 tmp" > nul 2 > nul
456
451
exit /b 1
457
452
)
458
453
You can’t perform that action at this time.
0 commit comments