Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: missing parameter for include path #37

Closed
christo-ph opened this issue Dec 4, 2019 · 2 comments
Closed

config: missing parameter for include path #37

christo-ph opened this issue Dec 4, 2019 · 2 comments

Comments

@christo-ph
Copy link

I cannot find the plantuml.include.path parameter with this plugin.

Found here: https://forum.plantuml.net/1553/how-to-pass-a-search-path-for-include-files

Example call:
java -Dplantuml.include.path="c:/mydir" -jar plantuml.jar atest1.txt

@mikitex70
Copy link
Owner

I'm not sure to add a new configuration option to the plantuml_markdown extension is a good idea.
First, added one option someone can ask for adding other options, which maybe very specific.
Second, there are workarounds:

  1. modify the plantuml script (see README.md) which is called by this plugin adding the required options (-Dplantuml.include.path=some/custom/path in this case), or the use of an environment variable
  2. exporting the variable _JAVA_OPTIONS with the required options before running markdown_py:
    • export _JAVA_OPTIONS='-Dplantuml.include.path=some/custom/path' in Linux
    • set _JAVA_OPTIONS=-Dplantuml.include.path=C:/some/custom/path for Windows

With both methods would be easy add any custom option, such memory tuning.

If there is some specific use case for which an extension configuration option may be better let me known, I would implement it.

@mikitex70
Copy link
Owner

Closing this issue as seems the workaround can be useful.
I cannot inject Java properties through the plugin as it would break compatibility with the plantuml system command.
Thanks for reporting this issue, it may be useful to others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants