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

Setting user.dir in run configurations #173

Open
mrpiggi opened this issue Oct 4, 2024 · 0 comments
Open

Setting user.dir in run configurations #173

mrpiggi opened this issue Oct 4, 2024 · 0 comments

Comments

@mrpiggi
Copy link

mrpiggi commented Oct 4, 2024

Hi,

I do have a Java project with some resource XML files which should be validated against each other with XQuery using BaseX. It set everything up like shown in https://docs.basex.org/main/Integrating_IntelliJ_IDEA whereas selecting "Standalone Instance" when configuring the Query Processor Instance.

Running XQuery scripts from terminal with BaseX works just fine but using a IntelliJ Run Configuration unfortunately does not work as expected because somehow user.dir is set to C:\Program Files\JetBrains\IntelliJ IDEA 2024.2.1\bin and not to the executing directory. This is clearly observable by running the simple query

proc:property('user.dir')

via run configuration.

Is this a known issue? And could user.dir be overwritten somehow as currently passing options is not available? Or is it possible to query the current $PROJECT_ROOT set by IntelliJ to build a valid absolute path?

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

No branches or pull requests

1 participant