[JBoss JIRA] (FORGE-2635) Path needs to be properly escaped
by John Spencer (JIRA)
[ https://issues.jboss.org/browse/FORGE-2635?page=com.atlassian.jira.plugin... ]
John Spencer commented on FORGE-2635:
-------------------------------------
I get the same error, output and warning for both powershell and the standard cmd line with and without my modification to PATH.
> 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)
10 years
[JBoss JIRA] (FORGE-2635) Path needs to be properly escaped
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2635?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-2635:
----------------------------------------
Hi [~misterdee],
Could you open a Windows Powershell prompt and tell me if the execution of Forge.bat succeeds? It seems that the PATH variable you have has some conflicts when parsing the script.
> 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)
10 years
[JBoss JIRA] (FORGE-2635) Path needs to be properly escaped
by John Spencer (JIRA)
[ https://issues.jboss.org/browse/FORGE-2635?page=com.atlassian.jira.plugin... ]
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)
10 years
[JBoss JIRA] (FORGE-2635) Path needs to be properly escaped
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2635?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-2635:
----------------------------------------
Can you echo the whole command line to be executed? I think there is still another place to add quotes
> 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)
10 years
[JBoss JIRA] (FORGE-2635) Path needs to be properly escaped
by John Spencer (JIRA)
[ https://issues.jboss.org/browse/FORGE-2635?page=com.atlassian.jira.plugin... ]
John Spencer commented on FORGE-2635:
-------------------------------------
I've tried changing PATH to:
{code:java}
set PATH="%JAVA_HOME%\bin;%PATH%"
{code}
And that seems to output the correct, escaped path however forge now throws:
{code:java}
7 was unexpected at this time.
{code}
I don't know how to fix that.
> 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)
10 years
[JBoss JIRA] (FORGE-2635) Path needs to be properly escaped
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2635?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-2635:
----------------------------------------
[~misterdee],
Thanks for submitting this bug report. This is caused because forge.bat is not escaping the PATH variable properly.
As you are running in Windows, would you be interested in submitting a fix? This is the file that needs to be changed: https://github.com/forge/core/blob/master/dist/src/main/resources/bin/for...
> 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)
10 years
[JBoss JIRA] (FORGE-2636) No specified tables error
by John Spencer (JIRA)
[ https://issues.jboss.org/browse/FORGE-2636?page=com.atlassian.jira.plugin... ]
John Spencer updated FORGE-2636:
--------------------------------
Description:
When I try to execute jpa-generate-entities-from-tables, using:
{code:java}
jpa-generate-entities-from-tables --database-tables * --jdbc-url "jdbc:mysql://localhost:3306/validDB" --user-name root --user-password 1234 --driver-location "validpath\mysql-connector-java-5.1.6-bin.jar" --driver-class com.mysql.jdbc.Driver;
{code}
Forge asks me again to enter all of information specified in the command, I do so, and then says "At least one database table must be specified".
Also the "--database-tables" parameter does not show up in the list of available parameters when pressing tab after having specified a connection profile and/or specifying connection parameters. This might possibly be related to this [issue] (https://issues.jboss.org/projects/FORGE/issues/FORGE-2635?filter=allopeni...).
was:
When I try to execute jpa-generate-entities-from-tables, using:
{code:java}
jpa-generate-entities-from-tables --database-tables * --jdbc-url "jdbc:mysql://localhost:3306/quizzer" --user-name root --user-password 1234 --driver-location "validpath\mysql-connector-java-5.1.6-bin.jar" --driver-class com.mysql.jdbc.Driver;
{code}
Forge asks me again to enter all of information specified in the command, I do so, and then says "At least one database table must be specified".
Also the "--database-tables" parameter does not show up in the list of available parameters when pressing tab after having specified a connection profile and/or specifying connection parameters. This might possibly be related to this [issue] (https://issues.jboss.org/projects/FORGE/issues/FORGE-2635?filter=allopeni...).
> No specified tables error
> -------------------------
>
> Key: FORGE-2636
> URL: https://issues.jboss.org/browse/FORGE-2636
> Project: Forge
> Issue Type: Bug
> Components: Database Tools
> Affects Versions: 3.0.1.Final
> Environment: Windows 10, x64
> Reporter: John Spencer
>
> When I try to execute jpa-generate-entities-from-tables, using:
> {code:java}
> jpa-generate-entities-from-tables --database-tables * --jdbc-url "jdbc:mysql://localhost:3306/validDB" --user-name root --user-password 1234 --driver-location "validpath\mysql-connector-java-5.1.6-bin.jar" --driver-class com.mysql.jdbc.Driver;
> {code}
> Forge asks me again to enter all of information specified in the command, I do so, and then says "At least one database table must be specified".
> Also the "--database-tables" parameter does not show up in the list of available parameters when pressing tab after having specified a connection profile and/or specifying connection parameters. This might possibly be related to this [issue] (https://issues.jboss.org/projects/FORGE/issues/FORGE-2635?filter=allopeni...).
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years
[JBoss JIRA] (FORGE-2635) Path needs to be properly escaped
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2635?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2635:
-----------------------------------
Fix Version/s: 3.x Future
> 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)
10 years