Ticket #87 (new enhancement)

Opened 4 months ago

Last modified 7 weeks ago

Change behavior of prompt for configuration.

Reported by: heimdull Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:

Description

I would like the ability to prompt for a configuration setting but if its blank either take a default or just ignore the setting. My example is setting a tag variable that is used in the svn string. I then have a before task that sets the repository to either trunk or a tag. BUT now I have to type SOMETHING in the tag variable for every task that runs in that project.

So it would be great to have either a default value or just plain empty without forcing a value.

Attachments

default_conf_values_if_prompted.diff (2.8 kB) - added by hiffy 7 weeks ago.

Change History

Changed 7 weeks ago by hiffy

Changed 7 weeks ago by hiffy

We have the exact same problem.

Attached is a patch that basically does that. It just removes validation that checks if the prompt check is on, and adds a little onFocus javascript deleting of the default value.

Changed 7 weeks ago by hiffy

Oh, and things still seem to check out on my local copy. The deployment's validation still kicks in if you leave the config value blank, so all seems peachy keen.

Note: See TracTickets for help on using tickets.