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

[Refactor] Replace all properties by a command-line option #826

Closed
danglotb opened this issue Jul 8, 2019 · 5 comments
Closed

[Refactor] Replace all properties by a command-line option #826

danglotb opened this issue Jul 8, 2019 · 5 comments
Assignees

Comments

@danglotb
Copy link
Member

danglotb commented Jul 8, 2019

Hello all,

I'm opening this thread to discuss the way DSpot is configured.

For now, DSpot uses both command-line options and properties defined in a file.

Some of them are overlapping (e.g. if you specify --output-path (-o) and the property outputDirectory, the command-line option is taken).

In one hand, it avoids very large command-line options. On the other hand, it may confuse the user.

There are also some problems with dspot-maven.

The question is:

  • should keep at it is?
  • should we merge all properties into the command-line options?
  • should we refactor and select specific inputs to be used as properties of command-line options?

Since this issue is all about users, I'm kindly asking our partners to take part in this discussion.

WDYT @gibello @vmassol @jesus-gorronogoitia @pedrovelho?

On my side, I'm also a user but my point of view is biased since I know deeply DSpot.

@jesus-gorronogoitia
Copy link
Collaborator

Hi @danglotb, thanks for this debate. IMHO I would vote for configure DSpot using a single approach, either using a properties file or command line options (but not both). Now I am using Jenkins CI for running parameterized jobs of DSpot, I would say that command line options are more suitable for Jenkins, but I have not an strong position whether to use a properties file or a command line options.

@gibello
Copy link

gibello commented Jul 8, 2019

Hi @danglotb ,
Like Jesus, I prefer command-line options (but if they supersede all config file properties, no problem).
And, as I generally use the maven plugin, I consider the plugin configuration in the pom as a kind of properties file, sufficient for my needs.

@danglotb
Copy link
Member Author

danglotb commented Jul 8, 2019

Hello,

Thank you for your answers.

It was my intuition: one way to configure DSpot is enough, even if this one grows a bit.

IHMO, using only properties file is not reasonable since it is difficult to customize run through scripts.

I would also vote to transform all the properties into command-line options.

I would say that command-line options are more suitable for Jenkins

I would say that command-line options are more suitable for the global usage of DSpot.

I think that no human would use DSpot by hands (unless to learn how to use it) but everybody would end up either with a maven configuration (such as @gibello) or using scripts (I assume that Jenkins CI configuration can be assimilated to a script).

Thank you.

I'm gonna think on the next step.

@nicolabertazzo
Copy link
Contributor

Hi @danglotb ,
Like @jesus-gorronogoitia and @gibello I prefer command-line options and all configuration maven pom.xml file.

@danglotb
Copy link
Member Author

danglotb commented Jul 9, 2019

Hi @nicolabertazzo

I was thinking that I forgot you, sorry.

Seems like the majority would prefer to avoid this properties file.

I'm gonna turn this issue as a requested refactor and work on it when I have the time.

Thank you all.

If you have more idea/suggestions on the way we should configure DSpot, do not hesitate to point them now and on this thread.

@danglotb danglotb self-assigned this Jul 9, 2019
@danglotb danglotb changed the title [QUESTION] Properties file and command-line options [Refactor] Replace all properties by a command-line option Jul 9, 2019
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

4 participants