First, try unsetting your CLASSPATH variable. If you actually need whatever you have in it, you can do it just for this CMD instance. Personally, I neither use nor advocate the use of a system-wide CLASSPATH. Usually that's the first thing anyone gets told to try since CLASSPATHs are notorious for causing problems, though I've never heard of this particular problem... unless it might have something to do with embedded spaces or something causing Ant to interpret the arguments improperly.
-Matt --- Thomas Mitchell <[EMAIL PROTECTED]> wrote: > I reviewed the ant.bat file and traced the execution > through completion. > ANT is being launched through :runAntWithClasspath > and immediately > preceding that line the %ANT_CMD_LINE_ARGS% variable > is properly > defined. All that is good news since the argument is > being read, but I'm > still cluless as to what's causing the problem. > > [EMAIL PROTECTED] wrote: > > >I would probably start adding debug messages to the > >copy of ant.bat you -think- is being called (this > >presumes you're not using cygwin or anything)... we > >(I?) should probably think about adding the > >--execdebug option (available in the *nix script) > to > >the batch file... > > > >-Matt > > > >--- Thomas Mitchell <[EMAIL PROTECTED]> wrote: > > > > > >>Yep, I agree its in the local setup. I'm running > >>Windows XP > >>Professional. Do can I trace what's going on from > >>the point I type ANT? > >> > >> > >> > >>[EMAIL PROTECTED] wrote: > >> > >> > >> > >>>What OS are you running? I'm sure you will agree > >>> > >>> > >>that > >> > >> > >>>if your Ant installation was working before, but > >>> > >>> > >>isn't > >> > >> > >>>now, that the problem is probably somewhere in > your > >>>local setup. It will probably be easiest to > trace > >>>exactly what is going on, starting from your > typing > >>>"ant". > >>> > >>>-Matt > >>> > >>>--- Thomas Mitchell <[EMAIL PROTECTED]> > wrote: > >>> > >>> > >>> > >>> > >>>>Yep I did that last week and it was working > fine. > >>>>Adding the argument to > >>>>the command line now, ANT ignores the argument. > In > >>>>fact I just entered > >>>>ant -version and the default target was hit. No > >>>>version info was > >>>>supplied. The install directory lists 1.6.1 > which > >>>> > >>>> > >>I > >> > >> > >>>>can only assume is > >>>>what I'm running. > >>>> > >>>>I basically created a menu with targets of 1 > >>>> > >>>> > >>through > >> > >> > >>>>17 which were > >>>>working. The way I call ANT is ANT 1. > >>>> > >>>> > >>>>[EMAIL PROTECTED] wrote: > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>Hi Thomas, > >>>>>When operating the command line just add the > >>>>> > >>>>> > >>target > >> > >> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>name that you wish > >>>> > >>>> > >>>> > >>>> > >>>>>to run and it suppose to know. > >>>>>I'm using ant for a long time and didn't face > >>>>> > >>>>> > >>such > >> > >> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>a problem > >>>> > >>>> > >>>> > >>>> > >>>>>Try to read more at: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>http://ant.apache.org/manual/index.html under > >>>> > >>>> > >>>> > >>>> > >>>>>running ant->command line > >>>>> > >>>>> > >>>>>Neta Bar-Tal > >>>>> > >>>>>* 972-9-7960521 > >>>>> > >>>>>[EMAIL PROTECTED] > >>>>> > >>>>> > >>>>>-----Original Message----- > >>>>>From: [EMAIL PROTECTED] > >>>>> > >>>>> > >>>>> > >>>>> > >>>>[mailto:[EMAIL PROTECTED] > >>>> > >>>> > >>>> > >>>> > >>>>>Sent: Monday: May 10: 2004 4:11 PM > >>>>>To: [EMAIL PROTECTED] > >>>>>Subject: ANT ignoring command line argument > >>>>> > >>>>>I've just recently started working with ANT. > >>>>> > >>>>> > >>About > >> > >> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>a week after using > >>>> > >>>> > >>>> > >>>> > >>>>>ANT, I'm finding that ANT is ignoring the > command > >>>>> > >>>>> > >>>>> > >>>>> > >>>>line argument for the > >>>> > >>>> > >>>> > >>>> > >>>>>target of the build.xml file. I have tried > >>>>> > >>>>> > >>calling > >> > >> > >>>>> > >>>>> > >>>>> > >>>>> > === message truncated === __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
