Odd directory structure in command line version of CommandHelper
LadyCailinBot opened this issue · 2 comments
CMDHELPER-2834 - Reported by CyaNox
There is a clear duplication of directory structure in both CommandHelper and MethodScript folders.
This can be confusing and seems to be a odd. Also logs, preferences.ini and sql-profiles.xml are not duplicated to the MethodScript folder.
# cat test.ms ; java -jar CommandHelper.jar cmdline test.ms ; tree
sys_out('test')
test
.
├── CommandHelper
│ ├── auto_include.ms
│ ├── extensions
│ ├── includes
│ ├── LocalPackages
│ ├── logs
│ │ └── debug
│ │ └── loggerPreferences.txt
│ ├── persistance.config
│ ├── preferences.ini
│ ├── profiler.config
│ └── sql-profiles.xml
├── CommandHelper.jar
├── MethodScript
│ ├── auto_include.ms
│ ├── extensions
│ ├── includes
│ ├── LocalPackages
│ ├── persistance.config
│ └── profiler.config
└── test.ms
10 directories, 11 files
Comment by LadyCailin
This should be fixed with the 4517dbc checkin. Prefs are now centralized and branded properly. You should get two different folders now, with entirely separate environments.
Comment by CyaNox
Mostly fixed though I seem to have two "logs" folders.
I've run these two in that particular directory:
java -jar CommandHelper.jar optimizer-test test.ms
java -jar CommandHelper.jar cmdline test.ms
Result:
root@qubetubers:/srv/mc/scripts/sk89q# tree
.
├── CommandHelper.jar
├── logs
│ └── debug
│ ├── 2014-01-15-debug.log
│ └── loggerPreferences.txt
├── MethodScript
│ ├── auto_include.ms
│ ├── extensions
│ ├── includes
│ ├── LocalPackages
│ ├── logs
│ │ └── debug
│ │ └── 2014-01-15-debug.log
│ └── prefs
│ ├── logger-preferences.ini
│ ├── persistence.ini
│ ├── preferences.ini
│ ├── profiler.ini
│ └── sql-profiles.xml
└── test.ms