Here is the debug output from a test run on XP Pro 2002 for the sample build file you sent.
C:\TEMP>ant -d clean Apache Ant version 1.6.5 compiled on June 2 2005 Buildfile: build.xml Adding reference: ant.PropertyHelper Detected Java version: 1.4 in: C:\j2sdk1.4.1_05\jre Detected OS: Windows XP Adding reference: ant.ComponentHelper Setting ro project property: ant.version -> Apache Ant version 1.6.5 compiled on June 2 2005 Setting ro project property: ant.file -> C:\TEMP\build.xml Adding reference: ant.projectHelper Adding reference: ant.parsing.context Adding reference: ant.targets parsing buildfile C:\TEMP\build.xml with URI = file:///C:/TEMP/build.xml Setting ro project property: ant.project.name -> test Adding reference: test Setting ro project property: ant.file.test -> C:\TEMP\build.xml Project base dir set to: C:\TEMP +Target: +Target: one +Target: two +Target: clean Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor Adding reference: ant.executor Build sequence for target(s) `clean' is [clean] Complete build sequence is [clean, one, two, ] clean: BUILD SUCCESSFUL Total time: 0 seconds C:\TEMP> Does not look like an Ant problem to me. Bill -----Original Message----- From: Safak Ökmen [mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 2005 8:24 AM To: Ant Users List Subject: Re: ant not recognizing command line argument Here is another sample: __________ D:\programme\ant\bin>ant -debug clean Buildfile: build.xml one: BUILD SUCCESSFUL Total time: 1 second D:\programme\ant\bin>vim build.xml D:\programme\ant\bin>ant -debug Buildfile: build.xml one: BUILD SUCCESSFUL Total time: 0 seconds D:\programme\ant\bin>ant clean -debug Buildfile: build.xml one: BUILD SUCCESSFUL Total time: 0 seconds D:\programme\ant\bin>ant clean Buildfile: build.xml one: BUILD SUCCESSFUL Total time: 0 seconds D:\programme\ant\bin>ant hello Buildfile: build.xml one: BUILD SUCCESSFUL Total time: 0 seconds D:\programme\ant\bin> __________ I have rebooted my windows. This was not the problem. I don't know. I reinstalled ant, too. Safak. [EMAIL PROTECTED] wrote: > I tried you buildfile from [1] - commented only the jflex-taskdef out > - and > that worked for me. > But your output [2] doesnt seem to fit to your buildfile. > > On your machine the execution order was > "init,copygen,classes,shared,javadoc,all" > but called was "ant clean" - never have seen that before. > > So again, what does -debug say? > > > Jan > > > [1] http://phpfi.com/89578 > [2] http://home.in.tum.de/~oekmen/antFailure.JPG > > > ---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<---- > ---8-<---- > C:\TEMP\ant-test6>ant init > Buildfile: build.xml > > init: > [mkdir] Created dir: C:\TEMP\ant-test6\bin > [mkdir] Created dir: C:\TEMP\ant-test6\dist > [mkdir] Created dir: C:\TEMP\ant-test6\etc > [mkdir] Created dir: C:\TEMP\ant-test6\java > [mkdir] Created dir: C:\TEMP\ant-test6\docs > > BUILD SUCCESSFUL > Total time: 0 seconds > C:\TEMP\ant-test6>ant clean > Buildfile: build.xml > > clean: > [delete] Deleting directory C:\TEMP\ant-test6\bin > [delete] Deleting directory C:\TEMP\ant-test6\dist > [delete] Deleting directory C:\TEMP\ant-test6\etc > [delete] Deleting directory C:\TEMP\ant-test6\java > [delete] Deleting directory C:\TEMP\ant-test6\docs > > BUILD SUCCESSFUL > Total time: 0 seconds > C:\TEMP\ant-test6>ant clean > Buildfile: build.xml > > clean: > > BUILD SUCCESSFUL > Total time: 0 seconds > ---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<---- > ---8-<---- > > >> -----Ursprüngliche Nachricht----- >> Von: Safak Ökmen [mailto:[EMAIL PROTECTED] >> Gesendet: Mittwoch, 30. November 2005 20:50 >> An: Ant Users List >> Betreff: Re: ant not recognizing command line argument >> >> Hi! >> >> I'm sorry. >> Here I have uploaded it on my webpage: >> http://home.in.tum.de/~oekmen/antFailure.JPG >> >> Safak. >> >> Ivan Ivanov wrote: >>> Hello, >>> >>> I am sorry. I am willing to help, morever it seems an easy >> issue, but >>> your attachment is stripped off. If you want to receive some help, >>> sent the build log inline of the message. >>> >>> Regards >>> Ivan >>> >>> --- Safak �kmen <[EMAIL PROTECTED]> wrote: >>> >>>> I start it with just >>>> ant (the output should be like on the jpeg) or ant clean >> (the output >>>> on the jpeg is false for the target clean) >>>> >>>> on command line. See jpeg. >>>> >>>> Safak. >>>> >>>> Ivan Ivanov wrote: >>>>> Hello, >>>>> >>>>> How do you start this build file. Please post the exact >> command with >>>>> which you start it, as well as >>>> the >>>>> output. >>>>> >>>>> Regards >>>>> Ivan >>>>> >>>>> --- Safak �kmen <[EMAIL PROTECTED]> wrote: >>>>> >>>>>> Here is the buildfile: >>>>>> >>>>>> http://phpfi.com/89578 >>>>>> >>>>>> Safak. >>>>>> >>>>>> Karr, David wrote: >>>>>>> We'd have to see your build file. I'm guessing your "clean" >>>>>>> target has a dependency which you didn't notice. >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Safak �kmen [mailto:[EMAIL PROTECTED] >>>>>>>> Sent: Wednesday, November 30, 2005 10:59 AM >>>>>>>> To: [email protected] >>>>>>>> Subject: ant not recognizing command line >>>>>> argument >>>>>>>> >>>>>>>> >>>>>>>> Hello, >>>>>>>> >>>>>>>> on windows I execute the following selfdefined target "clean" >>>>>>>> like: >>>>>>>> >>>>>>>> ant clean >>>>>>>> >>>>>>>> on command line. >>>>>>>> >>>>>>>> Still and executes default target. If I replace the default >>>>>>>> target to "clean", it works. >>>>>>>> >>>>>>>> What is the problem? >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Safak. >>>>>>>> -------------------------------- "hynonym is a synonym for >>>>>>>> homonym" >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> -------------------------------------------------------------------- >>> - >>>>>>> To unsubscribe, e-mail: >>>>>> [EMAIL PROTECTED] >>>>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>>> >>>>>> >>>>>> >>>>> >>>> >>> -------------------------------------------------------------------- >>> - >>>>>> To unsubscribe, e-mail: >>>>>> [EMAIL PROTECTED] >>>>>> For additional commands, e-mail: >>>>>> [EMAIL PROTECTED] >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> __________________________________ >>>>> Yahoo! Mail - PC Magazine Editors' Choice 2005 >> http://mail.yahoo.com >>>>> >>>>> >>>> >>> -------------------------------------------------------------------- >>> - >>>>> To unsubscribe, e-mail: >>>> [EMAIL PROTECTED] >>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>>> >>> -------------------------------------------------------------------- >>> - >>>> To unsubscribe, e-mail: >>>> [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> >>> __________________________________ >>> Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com >>> >>> -------------------------------------------------------------------- >>> - To unsubscribe, e-mail: [EMAIL PROTECTED] For >>> additional commands, e-mail: [EMAIL PROTECTED] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] For >> additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
