Re: Check if parameter is explicitly set

2017-04-14 Thread Robert Scholte
On Thu, 13 Apr 2017 14:39:44 +0200, András Kerekes wrote: Hey, Sure, let me give you more context. The parameter has a default value that users can override. But if they don't set it and another condition is true (some file exists in the project), then we

Re: Check if parameter is explicitly set

2017-04-13 Thread András Kerekes
Hey, Sure, let me give you more context. The parameter has a default value that users can override. But if they don't set it and another condition is true (some file exists in the project), then we want to use a different value, a different default. Maybe the best is to remove the default value,

Re: Check if parameter is explicitly set

2017-04-13 Thread Karl Heinz Marbaise
Hi, On 13/04/17 02:05, András Kerekes wrote: Hi, I'm working on a Maven plugin and I'd like to check whether a parameter for a Mojo has been explicitly set by the user (via POM), or it contains the default value. Is there a way to do this? Maybe I misunderstand a thing but why do you need to

Re: Check if parameter is explicitly set

2017-04-12 Thread Tibor Digana
pace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://maven.40175.n5.nabble.com/Check-if-parameter-is

Check if parameter is explicitly set

2017-04-12 Thread András Kerekes
Hi, I'm working on a Maven plugin and I'd like to check whether a parameter for a Mojo has been explicitly set by the user (via POM), or it contains the default value. Is there a way to do this? Thanks, András