Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 10960 invoked by uid 500); 10 Aug 2001 21:03:07 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 10941 invoked from network); 10 Aug 2001 21:03:07 -0000 Message-ID: <3B744C01.31F84F60@apache.org> Date: Fri, 10 Aug 2001 17:02:57 -0400 From: Berin Loritsch X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Ant Users Subject: [FER] Interactive Builds Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N (FER = Feature Enhancement Request) It would be beneficial in some circumstances to have an interactive build. On the Avalon project we use Ant to automate just about everything that can be automated, including most parts of making a release. We automatically generate our email announcement text, our Jakarta news entry, and our distribution HEADER.html files using Ant. There are times when we want to embed information in the announcement that would be for a particular release (such as the reasons for upgrading, etc). It would be beneficial to have Ant ask for the user input and embed that input into a property. The task would look something like this: What is the name of your DataSource? Please input the path to your Informix Driver? The element and the "property" attribute would always be required. If there is a element (optional) then the input would have to match some *simple* criteria. Valid constraints would be: Constraint Name Action --------------- ------ not-empty Checks the user input for a string that contains more than white space. If "message" attribute is present and the input fails this constraint, display message, and prompt again for user input. valid-path Checks the user input for a valid path. If the input is empty or is not a valid path then do not define the property. (If "not-empty" is present as well, then failure of this constraint constitutes an empty input). default Checks the user input for the same criteria as "not-empty" but places the value in the mandatory "value" attribute in the property if the input fails this constraint. These constraints should be all that would be expected of a build system. This also allows Ant to be used as a "poor man's" installer package.