Skip to content

fix(exec tutorials): pass powsybl.config.dirs via JVM args for exec:exec@run#87

Open
samirromdhani wants to merge 2 commits intomainfrom
fix/85-system-property-powsyblconfigdirs-ignored-in-child-module-execution
Open

fix(exec tutorials): pass powsybl.config.dirs via JVM args for exec:exec@run#87
samirromdhani wants to merge 2 commits intomainfrom
fix/85-system-property-powsyblconfigdirs-ignored-in-child-module-execution

Conversation

@samirromdhani
Copy link
Copy Markdown
Contributor

@samirromdhani samirromdhani commented Apr 14, 2026

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?

Fixes #85

What kind of change does this PR introduce?
Bug fix

What is the current behavior?

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

  • Added new argument (system arg) at the begening of the command (mvn exec:exec) to take into account the config.yml if wanted.
  • Used commandlineArgs instead of new <argument> field because, optional field when absent gives empty which is not of type argument => switch to commandlineArgs

…xec@run

Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
@samirromdhani samirromdhani self-assigned this Apr 14, 2026
Comment thread pom.xml
@samirromdhani samirromdhani marked this pull request as ready for review April 14, 2026 12:37
Comment thread downscaling/pom.xml Outdated
<exec.cleanupDaemonThreads>false</exec.cleanupDaemonThreads>
<exec.mainClass>com.powsybl.tutorials.downscaling.Downscaling</exec.mainClass>
<exec.optionalArgument>${project.build.directory}/tutorial/output/dir</exec.optionalArgument>
<exec.optionalSystemArgs>-Dpowsybl.config.dirs=${project.basedir}/src/main/resources</exec.optionalSystemArgs>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure about this one? It was not the same configuration as the others

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes,
changed to /target/classes, is the same thing as /src/main/resources

Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
@sonarqubecloud
Copy link
Copy Markdown

@samirromdhani samirromdhani requested a review from rolnico April 23, 2026 11:54
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

Successfully merging this pull request may close these issues.

System property powsybl.config.dirs ignored in child module execution

2 participants