Patches item #1756700, was opened at 2007-07-19 09:51 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474853&aid=1756700&group_id=54790
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: samtheeagle (sam_the_eagle) Assigned to: Nobody/Anonymous (nobody) Summary: Simple Input Task Initial Comment: Makes use of a script block to create an <input> task similar to the one provided by Ant. You supply a meesage prompt and the property that should be updated / created with the users input. <script language="C#" prefix="custom" > <references> <include name="Microsoft.VisualBasic.dll" /> </references> <code> <![CDATA[ [TaskName("input")] public class InputTask : Task { private string _message; private string _addProperty; [TaskAttribute("message", Required=true)] public string Message { get { return _message; } set { _message = value; } } [TaskAttribute("addproperty", Required=true)] public string AddProperty { get { return _addProperty; } set { _addProperty = value; } } protected override void ExecuteTask() { string propertyValue = Microsoft.VisualBasic.Interaction.InputBox( Message, "User Input Required", "", -1, -1); if(Properties.Contains(AddProperty) == true) { Properties[AddProperty] = propertyValue; } else { Properties.Add(AddProperty, propertyValue); } } } ]]> </code> </script> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474853&aid=1756700&group_id=54790 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NAntContrib-Developer mailing list NAntContrib-Developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer