stevesaliman / gradle-properties-plugin

Gradle plugin to simplify loading project properties from external environment specific files
Apache License 2.0
192 stars 28 forks source link

Please make "environmentName" and "gradleUserName" property names configurable #9

Closed Vampire closed 10 years ago

Vampire commented 10 years ago

It would be great to be able to configure the "environmentName" and "gradleUserName" property names. This property names are rather generic and could easily clash with existing project properties that have a completely different meaning.

In my case we have a property "environment" and I don't want my users to get confused about "environment" vs. "environmentName". I can of course query another property and set "environmentName" to its value before I apply your plugin, but it would be a bit more gradlelike if this could be configured somehow. I'm not sure whether you can give some configuration to a plugin at apply time though except through properties.

But even if this is the only way, it would be better. Not in my use-case where just a similar property is present that can get confused, but in the case that a property with the same name and a different meaning already exists.