Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 88270 invoked from network); 12 Nov 2001 14:04:43 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Nov 2001 14:04:43 -0000 Received: (qmail 14489 invoked by uid 97); 12 Nov 2001 14:04:28 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 14470 invoked by uid 97); 12 Nov 2001 14:04:27 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 14457 invoked from network); 12 Nov 2001 14:04:27 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 content-class: urn:content-classes:message Subject: RE: Prompt MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 12 Nov 2001 14:07:21 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Prompt Thread-Index: AcFrghdmQ6kP0egDRLuu8G28F7FojwAAA19g From: "Alan Pearlman Spencer" To: "Ant Users List" Cc: "Krystan Honour" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You should reply to the list, everyone can benefit from the answers. These are new tasks so you need to add a taskdef. You need to have the .class in your classpath in the com.sns.tools.ant.taskdefs package. Maybe: \jakarta-ant-1.4.1\classes\com\sns\tools\ant\taskdefs\AskUser.class and add \jakarta-ant-1.4.1\classes\ to your classpath. Or you could just jar up the directory "com" and add the jar to the optional directory. Let me know how it goes... Alan. -----Original Message----- From: Krystan Honour [mailto:khonour@allstor-sw.co.uk] Sent: 12 November 2001 13:57 To: Alan Pearlman Spencer Subject: Re: Prompt This looks good, I`m not sure how to go about using these tasks as I am quite new to ant. I compile the src but where does the .class file want to be placed so that ant may see it ? ----- Original Message ----- From: "Alan Pearlman Spencer" To: "Ant Users List" Sent: Monday, November 12, 2001 1:33 PM Subject: RE: Prompt > > Try this: > http://www.mail-archive.com/ant-user@jakarta.apache.org/msg03059.html > It has a custom task to ask the user a question... > Alan. > > -----Original Message----- > From: Krystan Honour [mailto:khonour@allstor-sw.co.uk] > Sent: 12 November 2001 13:20 > To: Ant Users List > Cc: pperevalov@cyber-asp.com > Subject: Re: Prompt > > > Hi, > > this is extremely useful. Only one problem I ran this successfully under > windows which prompted for a password that I use to sign my jars with > and > signed it. When I tried to use the same script under linux I get a file > not > found exception because it can't find the file "con" ? which is asked > for in > the stream handler. Any ideas ? > > Krys > ----- Original Message ----- > From: "Paul Perevalov" > To: "Ant Users List" > Sent: Friday, November 09, 2001 8:02 PM > Subject: RE: Prompt > > > > > > You have to add in ant\lib directory bsf.jar from > > http://oss.software.ibm.com/developerworks/projects/bsf for script > task > > and js.jar from http://www.mozilla.org/rhino/download.html for > javascript > > support. > > > > Paul Perevalov > > > > -----Original Message----- > > From: Mark Claassen [mailto:mac@donnell.com] > > Sent: Friday, November 09, 2001 2:52 PM > > To: Ant Users List > > Subject: RE: Prompt > > > > > > Thanks! It will take me a while to get through all this, but this > sounds > > like just the ticket. Will ant run this just by itself, or do I need > > something to help it with the JavaScript? I tried in using the ant1.3 > that > > is bundled in with netbeans 3.2.1 and it didn't work. Maybe the > optional > > tasks are not included by default. > > > > Mark > > > > > -----Original Message----- > > > From: Paul Perevalov [mailto:pperevalov@cyber-asp.com] > > > Sent: Friday, November 09, 2001 12:16 PM > > > To: Ant Users List > > > Subject: RE: Prompt > > > > > > > > > I wrote my own target which uses javascript to get some user input > into > > > properties and then run another tagets. > > > You can place this target in common build file and then include it > main > > > build file. > > > Here is the target itself, after this target you can find example > > > how to use > > > it. > > > > > > > > where some > > > parameters provided by user from kbd."> > > > > > > > > > > > > Then you can use this target to get some user input and run another > > > target(s). > > > > > > > > > password:"/> > > > > > > > > > > > > > > > input"> > > > > > > > > > > > > Hope this help. > > > > > > Paul Perevalov > > > > > > -----Original Message----- > > > From: Mark Claassen [mailto:mac@donnell.com] > > > Sent: Friday, November 09, 2001 11:51 AM > > > To: ant-user@jakarta.apache.org > > > Subject: Prompt > > > > > > > > > Is there any way to prompt for information during a script > > > (without writing > > > a custom task)? When I compile my code for release, we tag it in > CVS. > > We > > > then use this tag name in the code to generate the version numbers. > > > > > > What I would like to do is have ant prompt me for a tag and a > > > branch. Then > > > it could automatically check out the correct tagged version of the > files > > > that contain the $Name$, compile it (with the $Name$ expanded), > > > build jars, > > > and then checkout the head of the branch again so I am where I left > off. > > > > > > I could do this with command line parameters as well, but using > > > it this way > > > in netbeans is a little less convenient. > > > > > > Thanks for your time, > > > Mark > > > > > > --------------------- > > > Mark Claassen > > > Donnell Systems, Inc. > > > 300 S. St. Louis Blvd. Ste. 203 > > > South Bend, IN 46617 > > > E-mail: mailto:mark.claassen@donnell.com > > > Voice: (219)232-3784 > > > Fax: (219)232-4014 > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > > > For additional commands, e-mail: > > > > > > > > > > > -- > > To unsubscribe, e-mail: > > > For additional commands, e-mail: > > > > > > > > > -- > > To unsubscribe, e-mail: > > > For additional commands, e-mail: > > > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: