forked from apache/ant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
--release
param check in bootstrap.bat
The following check will always fail silently due to batch `echo` always taking strings literally - including double quotes: echo "public class JavacVersionCheck {}" >%CLASSDIR%\JavacVersionCheck.java "%JAVAC%" --release 8 -d %CLASSDIR% %CLASSDIR%\JavacVersionCheck.java >nul 2>&1 With the following error message: JavacVersionCheck.java:1: error: class, interface, or enum expected "public class JavacVersionCheck {}" ^ 1 error Even with that fixed, the next statement will crash and burn on systems that do not have Command Extensions enabled (e.g. invoked with `cmd /y`): IF %ERRORLEVEL% EQU 0 SET JAVAC_RELEASE_VERSION="--release 8" With the following error message: EQU was unexpected at this time. In order to accommodate that, those checks have been corrected. Signed-off-by: Mateusz Kazimierczuk <[email protected]> This closes apache#205 pull request at github.com/apache/ant
- Loading branch information
Showing
4 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters