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

test-projects.properties file not found when running the provided example #919

Closed
danivb opened this issue Nov 8, 2019 · 1 comment
Closed
Assignees
Labels

Comments

@danivb
Copy link

danivb commented Nov 8, 2019

Characteristics

  • Issue Type: bug
  • Reproducibility: always
  • Severity: block
    Tool/Service/Component: dspot, 2.2.1
  • Execution Environment: Centos 7
  • Reporter: Daniel Villacis, daniel.villacisbarona@harmonicinc.com

Description

The provided example --example cannot be executed due to test-projects.properties does not exist.
JAVA_HOME and MAVEN_HOME have been configured as explained in the documentation.

Steps to reproduce

  • Download dspor 2.2.1 version
  • run java -jar target/dspot-2.2.1-jar-with-dependencies.jar --example
  • Result:
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException: src/test/resources/test-projects/test-projects.properties (No such file or directory)
at eu.stamp_project.utils.options.Configuration.configureExample(Configuration.java:38)
at eu.stamp_project.utils.options.JSAPOptions.parse(JSAPOptions.java:47)
at eu.stamp_project.Main.main(Main.java:38)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: src/test/resources/test-projects/test-projects.properties (No such file or directory)
at eu.stamp_project.utils.options.Configuration.loadProperties(Configuration.java:311)
at eu.stamp_project.utils.program.InputConfiguration.initialize(InputConfiguration.java:58)
at eu.stamp_project.utils.options.Configuration.configureExample(Configuration.java:30)
... 2 more
Caused by: java.io.FileNotFoundException: src/test/resources/test-projects/test-projects.properties (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at eu.stamp_project.utils.options.Configuration.loadProperties(Configuration.java:307)
Command Line / Options
java -jar target/dspot-2.2.1-jar-with-dependencies.jar --example
@danglotb danglotb self-assigned this Nov 8, 2019
@danglotb danglotb added the bug label Nov 8, 2019
@danglotb
Copy link
Member

danglotb commented Nov 8, 2019

Hello @danivb

Thank you for reporting this. I'm looking into it.

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

No branches or pull requests

2 participants