[
https://issues.jboss.org/browse/FORGE-537?page=com.atlassian.jira.plugin....
]
Gernot P commented on FORGE-537:
--------------------------------
Assuming %HOMEDRIVE%%HOMEPATH% points to a network drive (e.g. \\userhome)
and %USERPROFILE% to c:\users\sunnyboy
forge does not recognize a plugin installed in \\userhome\.forge\plugins
there's no error message while starting forge, but trying to invoke mycommand reports
following error:
[no project] forge $ mycommand
mycommand
***ERROR*** No such command: mycommand
on the other hand: installing the plugin in c:\users\sunnyboy\.forge\plugins, I get
following error while starting forge:
Failed loading: mypackage.MyCommandPlugin:1.0.2.Final:1.0.0-SNAPSHOT-57dc02b2-4ab7
-43ff-b271-1e0be8f55662
org.jboss.modules.ModuleNotFoundException: Module mypackage.MyCommandPlugin:1.0.0-
SNAPSHOT-57dc02b2-4ab7-43ff-b271-1e0be8f55662 is not found in local module loade
r @aaa392 (roots: C:\Program Files (x86)\Forge\forge-distribution-1.0.2.Final\mo
dules,\\userhome\.forge\plugins,D:\tmp\forge)
at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java
:121)
at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:245)
at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:194)
at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.j
ava:97)
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:176)
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:172)
at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:227)
at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:55)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:119)
at java.lang.Thread.run(Thread.java:722)
and also: forge is always creating c:\users\sunnyboy\.forge directory with config and
cmd_history files, even there's a \\userhome\.forge directory
So there are two different .forge directories and forge does not use either correctly.
forge.bat uses %HOMEDRIVE%%HOMEPATH%
------------------------------------
Key: FORGE-537
URL:
https://issues.jboss.org/browse/FORGE-537
Project: Forge
Issue Type: Bug
Affects Versions: 1.0.2.Final
Environment: windows 7
Reporter: Gernot P
forge.bat ueses %HOMEDRIVE%%HOMEPATH% to determine the user's home directory, but
using %USERPROFILE% would be the better choice, because java.exe also uses %USERPROFILE%
to set user.home system property.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira