Application plugin incorrect install when project name is numeric

If a project’s folder name is numeric, for exmaple “3”, it results in the corresponding project name.

Application plugin task “gradle installDist” creates executable 3.bat inside install/bin folder in which there is a problem - in the execution line there is some parameter that has its prefix equal to the project name %3_OPTS% and that is a problem for Windows, apparently.
The output is “Error: Could not find or load main class _OPTSCLASSPATHCMD_LINE_ARGS”.

Changing the project name to “three” and then doing reinstall solves the problem.