I presume I'm missing something obvious, because this has to be reasonably common. But I haven't found anything after a couple of hours of searching so here goes.
I have a Mojo parameter that needs the capability of being specified as an empty String. Eg <configuration> <databaseName></databaseName> </configuration> though I'd settle for being able to specify empty String as the default-value in the Mojo. Eg /** * @parameter default-value="" */ private String databaseName; But in either case databaseName is configured as null. Q: How do I construct the databaseName parameter so that it can be configured or have a default-value of empty String instead of null? I realise I could manually set databaseName to emptyString in Mojo#execute if databaseName is null, but that seems to make a mockery of the default-value annotation. William Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox