[
https://issues.apache.org/jira/browse/TUBEMQ-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128250#comment-17128250
]
Jeff Zhou commented on TUBEMQ-167:
----------------------------------
!s15916013621910.png! As shown in above screenshot, current relative setting
would fail the normal start routine on Windows system. Due to further analysis,
I found it's caused that the "BASE_DIR" seems to be the folder in which the
startup command runs, so would you please add a note on *Each* path attributes
that "Please use absolute path on Windows in case of 'Invalid Resources' error
during server starting up"?
> Change to relative paths in default configs
> -------------------------------------------
>
> Key: TUBEMQ-167
> URL: https://issues.apache.org/jira/browse/TUBEMQ-167
> Project: Apache TubeMQ
> Issue Type: Improvement
> Reporter: Ping Yu
> Assignee: Ping Yu
> Priority: Trivial
> Labels: pull-request-available
> Fix For: 0.5.0
>
> Attachments: s15916013621910.png
>
>
> Change absolute paths in default configuration files to relative, for ease of
> non-productive deployments.
> E.g.
> {code:java}
> [master]
> webResourcePath=E:\\GIT\\TubeMQ\\resources --> ./resources{code}
>
> Solution:
> Change cwd to `$BASE_DIR` before invoke the `Main` class. To preserve user
> cwd, a pair of `pushd/popd` is needed.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)