[forge-issues] [JBoss JIRA] (FORGE-2635) Path needs to be properly escaped
John Spencer (JIRA)
issues at jboss.org
Sat Apr 2 23:23:00 EDT 2016
[ https://issues.jboss.org/browse/FORGE-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185659#comment-13185659 ]
John Spencer commented on FORGE-2635:
-------------------------------------
Output is:
{code:java}
PS C:\Users\someuser> forge
C:\Users\someuser>set ADDON_DIR=
C:\Users\someuser>if not "" == "" goto OkUserhome
C:\Users\someuser>set "USERHOME=C:\Users\someuser"
C:\Users\someuser>if not "C:\Users\someuser" == "" goto OkUserhome
C:\Users\someuser>if exist "C:\Users\someuser\forgerc_pre.bat" call "C:\Users\someuser\forgerc_pre.bat"
C:\Users\someuser>set ERROR_CODE=0
C:\Users\someuser>if "Windows_NT" == "Windows_NT"
C:\Users\someuser>if "Windows_NT" == "WINNT"
C:\Users\someuser>if not "C:\Program Files\Java\jdk1.8.0_72" == "" goto OkJHome
C:\Users\someuser>if exist "C:\Program Files\Java\jdk1.8.0_72\bin\java.exe" goto chkJVersion
C:\Users\someuser>set PATH="C:\Program Files\Java\jdk1.8.0_72\bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program F
iles (x86)\Skype\Phone\;C:\Program Files (x86)\Livestreamer;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fa
bric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn
\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\wildfly-10\bin;C:\Program Files\JForge-3.01\bin;C:\Program Files\MySQL\MySQL Server 5.7\bin;C:\Ruby193\bin;C:\Ruby22-x64\bin"
C:\Users\someuser>for /F "tokens=3" %g in ('java -version 2>&1 | findstr /i "version"') do (set JAVAVER=%g )
C:\Users\someuser>for /F "delims=. tokens=1-3" %v in ("") do (set JAVAVER_MINOR=%w )
7 was unexpected at this time.
C:\Users\someuser>if geq 7 goto chkFHome
{code}
> Path needs to be properly escaped
> ---------------------------------
>
> Key: FORGE-2635
> URL: https://issues.jboss.org/browse/FORGE-2635
> Project: Forge
> Issue Type: Bug
> Components: Init Scripts
> Affects Versions: 3.0.1.Final
> Environment: Windows 10 x64, MySQL 5.7.11-log MySQL Community Server (GPL)
> Reporter: John Spencer
> Fix For: 3.x Future
>
>
> Whenever I start forge I get the following warnings:
> {code:java}
> 'MySQL' is not recognized as an internal or external command,
> operable program or batch file.
> 'MySQL' is not recognized as an internal or external command,
> operable program or batch file.
> Using Forge at C:\Program Files\JForge-3.01\bin\..
> _____
> | ___|__ _ __ __ _ ___
> | |_ / _ \| `__/ _` |/ _ \ \\
> | _| (_) | | | (_| | __/ //
> |_| \___/|_| \__, |\___|
> |__/
> JBoss Forge, version [ 3.0.1.Final ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ]
> {code}
> MySQL path is defined in PATH enviroment variable like ";C:\Program Files\MySQL\MySQL Server 5.1\bin" and is also recognized by windows when using the command line. I also defined a variable called MySQL just in case forge would use it aswell as MYSQL_HOME without any effect.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the forge-issues
mailing list