You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ja...@rzf.fin-nrw.de on 2005/12/01 07:11:05 UTC

AW: ant not recognizing command line argument

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:oekmen@in.tum.de] 
>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 <oe...@in.tum.de> 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 <oe...@in.tum.de> 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:oekmen@in.tum.de]
>>>>>>> Sent: Wednesday, November 30, 2005 10:59 AM
>>>>>>> To: user@ant.apache.org
>>>>>>> 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:
>>>>> user-unsubscribe@ant.apache.org
>>>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>>
>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
>>>>> user-unsubscribe@ant.apache.org
>>>>> For additional commands, e-mail:
>>>>> user-help@ant.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> __________________________________
>>>> Yahoo! Mail - PC Magazine Editors' Choice 2005 
>http://mail.yahoo.com
>>>>
>>>>
>>>
>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
>>> user-unsubscribe@ant.apache.org
>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>>
>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>>> user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
>>
>>
>> __________________________________
>> Yahoo! Mail - PC Magazine Editors' Choice 2005
>> http://mail.yahoo.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org 
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: ant not recognizing command line argument

Posted by Bill Rich <bi...@wilandra.com>.
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:oekmen@in.tum.de] 
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.










Jan.Materne@rzf.fin-nrw.de 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:oekmen@in.tum.de]
>> 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 <oe...@in.tum.de> 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 <oe...@in.tum.de> 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:oekmen@in.tum.de]
>>>>>>>> Sent: Wednesday, November 30, 2005 10:59 AM
>>>>>>>> To: user@ant.apache.org
>>>>>>>> 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:
>>>>>> user-unsubscribe@ant.apache.org
>>>>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>> --------------------------------------------------------------------
>>> -
>>>>>> To unsubscribe, e-mail:
>>>>>> user-unsubscribe@ant.apache.org
>>>>>> For additional commands, e-mail:
>>>>>> user-help@ant.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> __________________________________
>>>>> Yahoo! Mail - PC Magazine Editors' Choice 2005
>> http://mail.yahoo.com
>>>>>
>>>>>
>>>>
>>> --------------------------------------------------------------------
>>> -
>>>>> To unsubscribe, e-mail:
>>>> user-unsubscribe@ant.apache.org
>>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>
>>>>>
>>> --------------------------------------------------------------------
>>> -
>>>> To unsubscribe, e-mail:
>>>> user-unsubscribe@ant.apache.org
>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>
>>>
>>>
>>>
>>> __________________________________
>>> Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
>>>
>>> --------------------------------------------------------------------
>>> - To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>>> additional commands, e-mail: user-help@ant.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>> additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional 
> commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
commands, e-mail: user-help@ant.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Matt Benson <gu...@yahoo.com>.
--- Safak Ökmen <oe...@in.tum.de> wrote:

> Hi Matt,
> 
> here is the output:
> 
> __________
> 
> D:\programme\ant\bin>D:\programme\ant\bin\ant.bat
> clean
> Buildfile: build.xml
> 
> one:
> 
> BUILD SUCCESSFUL
> Total time: 0 seconds
> D:\programme\ant\bin>
> 
> _______________
> 
> 
> Is it possibly interacting with the exlipse plugin
> ant?

I wouldn't think so; Try running ant -version with and
without fully-specified paths.  If you can get either
invocation to recognize the command-line arguments you
can at least check whether the version running is the
one you think you installed.  If the fully-specified
version works properly (I couldn't really tell from
your last message; you'd probably have to try a few
things to be sure), you can add D:\programme\ant\bin
to the FRONT of your PATH and the unqualified "ant"
command should work.  If it does, you probably have
some rogue ant lying somewhere along your PATH...

-Matt

> 
> Safak.
> 
> Matt Benson wrote:
> > Are you the first owner of this box?  I would
> > thoroughly investigate the possibility that the
> ant
> > you installed is not the ant that is being called.
> > Try using full paths when you run ant for a quick
> > check; i.e. D:\programme\ant\bin\ant.bat ....
> >
> > HTH,
> > Matt
> >
> > --- Safak Ökmen <oe...@in.tum.de> wrote:
> >
> >> 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.
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> Jan.Materne@rzf.fin-nrw.de 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:oekmen@in.tum.de]
> >>>> 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 <oe...@in.tum.de> 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)
> 
=== message truncated ===



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Safak Ökmen <oe...@in.tum.de>.
Hi Matt,

here is the output:

__________

D:\programme\ant\bin>D:\programme\ant\bin\ant.bat clean
Buildfile: build.xml

one:

BUILD SUCCESSFUL
Total time: 0 seconds
D:\programme\ant\bin>

_______________


Is it possibly interacting with the exlipse plugin ant?

Safak.

Matt Benson wrote:
> Are you the first owner of this box?  I would
> thoroughly investigate the possibility that the ant
> you installed is not the ant that is being called.
> Try using full paths when you run ant for a quick
> check; i.e. D:\programme\ant\bin\ant.bat ....
>
> HTH,
> Matt
>
> --- Safak Ökmen <oe...@in.tum.de> wrote:
>
>> 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.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Jan.Materne@rzf.fin-nrw.de 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:oekmen@in.tum.de]
>>>> 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 <oe...@in.tum.de> 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 <oe...@in.tum.de> 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:oekmen@in.tum.de]
>>>>>>>>>> Sent: Wednesday, November 30, 2005 10:59 AM
>>>>>>>>>> To: user@ant.apache.org
>>>>>>>>>> Subject: ant not recognizing command line argument
>>>>>>>>>>
>>>>>>>>>>
>>
> === message truncated ===
>
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Matt Benson <gu...@yahoo.com>.
Are you the first owner of this box?  I would
thoroughly investigate the possibility that the ant
you installed is not the ant that is being called. 
Try using full paths when you run ant for a quick
check; i.e. D:\programme\ant\bin\ant.bat ....

HTH,
Matt

--- Safak Ökmen <oe...@in.tum.de> wrote:

> 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.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Jan.Materne@rzf.fin-nrw.de 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:oekmen@in.tum.de]
> >> 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 <oe...@in.tum.de> 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 <oe...@in.tum.de> 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:oekmen@in.tum.de]
> >>>>>>>> Sent: Wednesday, November 30, 2005 10:59 AM
> >>>>>>>> To: user@ant.apache.org
> >>>>>>>> Subject: ant not recognizing command line
> >>>>>> argument
> >>>>>>>>
> >>>>>>>>
> 
=== message truncated ===



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Safak Ökmen <oe...@in.tum.de>.
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.










Jan.Materne@rzf.fin-nrw.de 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:oekmen@in.tum.de]
>> 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 <oe...@in.tum.de> 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 <oe...@in.tum.de> 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:oekmen@in.tum.de]
>>>>>>>> Sent: Wednesday, November 30, 2005 10:59 AM
>>>>>>>> To: user@ant.apache.org
>>>>>>>> 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:
>>>>>> user-unsubscribe@ant.apache.org
>>>>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail:
>>>>>> user-unsubscribe@ant.apache.org
>>>>>> For additional commands, e-mail:
>>>>>> user-help@ant.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> __________________________________
>>>>> Yahoo! Mail - PC Magazine Editors' Choice 2005
>> http://mail.yahoo.com
>>>>>
>>>>>
>>>>
>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
>>>> user-unsubscribe@ant.apache.org
>>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
>>>> user-unsubscribe@ant.apache.org
>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>
>>>
>>>
>>>
>>> __________________________________
>>> Yahoo! Mail - PC Magazine Editors' Choice 2005
>>> http://mail.yahoo.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Safak Ökmen <oe...@in.tum.de>.
?

Ray Tayek wrote:
> At 04:23 PM 12/1/2005, you wrote:
>> Attached is a little utility...
> 
> nice program.
> 
> thanks
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: ant not recognizing command line argument

Posted by Ray Tayek <rt...@comcast.net>.
At 04:23 PM 12/1/2005, you wrote:
>Attached is a little utility...

nice program.

thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: ant not recognizing command line argument

Posted by Bill Rich <bi...@wilandra.com>.
Attached is a little utility I have had for quite a while and may help. It
is a version of the which program found on many Unix systems that runs in
Windows. Place this file in a directory that is pointed to by your path
setting, open the command window where you would normally run ant, type
which ant. It should show you the first any executable that will be run if
you enter the ant command. In a normal installation of ant this should be
ant.bat. It will also show the path to the executable.

HTH Bill 

-----Original Message-----
From: Safak �kmen [mailto:oekmen@in.tum.de] 
Sent: Thursday, December 01, 2005 9:46 AM
To: Ant Users List
Subject: Re: ant not recognizing command line argument

I have taken ant bin path out of the path variable one moment ago, so it is
not listed in the set output.


Steve Loughran wrote:
> Safak �kmen wrote:
>> ANT_HOME was pointing to "D:\programme\ant".
>>
>> I'm sorry. I just don't know what's wrong.
>>
>> I have a command line utility fsum (FastSum) which I tried with
>> command line arguments (fsum something.zip something.zip.md5) and it
>> works fine. I think that means cmd is recognizing command line
>> argument. I will try installing ant fresh.
>>
>> Matt Benson wrote:
>
> something is wrong with your command line env. probalby the classpath
> or something. List your entire environment by typing
>
> set
>
> at the command prompt; post the results. I would suspect trouble in
>
> CLASSPATH
> PATH
>
> You can also edit ant.bat, comment out the @echo off line and see what
> command line is being constructed.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Safak Ökmen <oe...@in.tum.de>.
I have taken ant bin path out of the path variable one moment ago, so it is 
not listed in the set output.


Steve Loughran wrote:
> Safak Ökmen wrote:
>> ANT_HOME was pointing to "D:\programme\ant".
>>
>> I'm sorry. I just don't know what's wrong.
>>
>> I have a command line utility fsum (FastSum) which I tried with
>> command line arguments (fsum something.zip something.zip.md5) and it
>> works fine. I think that means cmd is recognizing command line
>> argument. I will try installing ant fresh.
>>
>> Matt Benson wrote:
>
> something is wrong with your command line env. probalby the classpath
> or something. List your entire environment by typing
>
> set
>
> at the command prompt; post the results. I would suspect trouble in
>
> CLASSPATH
> PATH
>
> You can also edit ant.bat, comment out the @echo off line and see what
> command line is being constructed.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Steve Loughran <st...@apache.org>.
Safak Ökmen wrote:

> CLASSPATH=.;C:\PROGRA~1\JMF21~1.1\lib\sound.jar;C:\PROGRA~1\JMF21~1.1\lib\jmf.jar;d:\PROGRA~1\JMF21~1.1\lib\sound.jar;d:\PROGRA~1\JMF21~1.1\lib\jmf.jar;C:\WINDOWS\DOWNLO~1\corteai.zip;C:\WINDOWS\DOWNLO~1\classes.zip;C:\WINDOWS\java\classes;D:\programme\jdbc\mysql-connector-java-3.1.7\ 

I dont like the backslash at the end of this path. Delete it and try again.

better yet, try ant -noclasspath to drop the classpath entirely, if the 
version of Ant you are running supports that option. Otherwise, erase 
teh classpath with something like:

set CLASSPATH=


We dont recommend using the CLASSPATH env variable, as it just makes a 
mess of things. You shouldnt really have .zip files on it either, only 
.jar files with manifests.

-steve




> 
> CLIENTNAME=Console
> CommonProgramFiles=C:\Programme\Gemeinsame Dateien
> COMPUTERNAME=IBM-C71A1AE9667
> ComSpec=C:\WINDOWS\system32\cmd.exe
> FP_NO_HOST_CHECK=NO
> HOMEDRIVE=C:
> HOMEPATH=\Dokumente und Einstellungen\Admin
> IBMSHARE=C:\IBMSHARE
> include=D:\programme\Microsoft Visual 
> Studio\VC98\atl\include;D:\programme\Microsoft Visual 
> Studio\VC98\mfc\include;D:\programme\Microsoft Visual Studio\VC98\include
> JAVA_HOME=D:\programme\Java\jdk1.5.0_05
> lib=D:\programme\Microsoft Visual 
> Studio\VC98\mfc\lib;D:\programme\Microsoft Visual Studio\VC98\lib
> LOGONSERVER=\\IBM-C71A1AE9667
> NewEnvironment1=C:\WINDOWS\Downloaded Program Files
> NUMBER_OF_PROCESSORS=1
> OS=Windows_NT
> OSG_FILE_PATH=d:\programme\OpenSceneGraph\data;d:\programme\OpenSceneGraph\data\Images;d:\programme\OpenSceneGraph\data\fonts 
> 
> OSG_ROOT=d:\programme\OpenSceneGraph
> Path=d:\programme\texmf\miktex\bin;C:\PROGRAMME\THINKPAD\UTILITIES;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\IBMTOOLS\Python22;C:\Programme\PC-Doctor 
> for Windows\services;D:\programme\WinSCP3\;D:\programme\MySQL\MySQL 
> Server 
> 4.1\bin;D:\programme\php\;D:\programme\javacc-3.2\bin;D:\programme\Subversion\bin;D:\programme\Java\jdk1.5.0_05\bin;D:\PROGRA~1\GRAPHVIZ\Graphviz\bin;D:\PROGRA~1\GRAPHVIZ\Graphviz\bin\tools;d:\programme\GTK\bin;d:\programme\doxygen\bin;D:\MATLAB\bin 
> 
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.py;.pyw
> PROCESSOR_ARCHITECTURE=x86
> PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel
> PROCESSOR_LEVEL=6
> PROCESSOR_REVISION=0905
> ProgramFiles=C:\Programme
> PROMPT=$P$G
> PYTHONCASEOK=1
> PYTHONPATH=C:\IBMTOOLS\utils\support;C:\IBMTOOLS\utils\logger
> RRU=C:\Programme\IBM\IBM Rapid Restore Ultra\
> SESSIONNAME=Console
> SystemDrive=C:
> SystemRoot=C:\WINDOWS
> TCL_LIBRARY=C:\IBMTOOLS\Python22\tcl\tcl8.4
> TK_LIBRARY=C:\IBMTOOLS\Python22\tcl\tk8.4
> TMP=C:\DOKUME~1\Admin\LOKALE~1\Temp
> tvdumpflags=8
> USERDOMAIN=IBM-C71A1AE9667
> USERNAME=Admin
> USERPROFILE=C:\Dokumente und Einstellungen\Admin
> windir=C:\WINDOWS
> 
> C:\WINDOWS\system32>
> 
> 
> 
> 
> Steve Loughran wrote:
> 
>> Safak Ökmen wrote:
>>
>>> ANT_HOME was pointing to "D:\programme\ant".
>>>
>>> I'm sorry. I just don't know what's wrong.
>>>
>>> I have a command line utility fsum (FastSum) which I tried with
>>> command line arguments (fsum something.zip something.zip.md5) and it
>>> works fine. I think that means cmd is recognizing command line
>>> argument. I will try installing ant fresh.
>>>
>>> Matt Benson wrote:
>>
>>
>> something is wrong with your command line env. probalby the classpath
>> or something. List your entire environment by typing
>>
>> set
>>
>> at the command prompt; post the results. I would suspect trouble in
>>
>> CLASSPATH
>> PATH
>>
>> You can also edit ant.bat, comment out the @echo off line and see what
>> command line is being constructed.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Safak Ökmen <oe...@in.tum.de>.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS\system32>ant
Der Befehl "ant" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:\WINDOWS\system32>ant -version
Der Befehl "ant" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:\WINDOWS\system32>set
ALLUSERSPROFILE=C:\Dokumente und Einstellungen\All Users
APPDATA=C:\Dokumente und Einstellungen\Admin\Anwendungsdaten
APR_ICONV_PATH=D:\programme\Subversion\iconv
CLASSPATH=.;C:\PROGRA~1\JMF21~1.1\lib\sound.jar;C:\PROGRA~1\JMF21~1.1\lib\jmf.jar;d:\PROGRA~1\JMF21~1.1\lib\sound.jar;d:\PROGRA~1\JMF21~1.1\lib\jmf.jar;C:\WINDOWS\DOWNLO~1\corteai.zip;C:\WINDOWS\DOWNLO~1\classes.zip;C:\WINDOWS\java\classes;D:\programme\jdbc\mysql-connector-java-3.1.7\
CLIENTNAME=Console
CommonProgramFiles=C:\Programme\Gemeinsame Dateien
COMPUTERNAME=IBM-C71A1AE9667
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Dokumente und Einstellungen\Admin
IBMSHARE=C:\IBMSHARE
include=D:\programme\Microsoft Visual 
Studio\VC98\atl\include;D:\programme\Microsoft Visual 
Studio\VC98\mfc\include;D:\programme\Microsoft Visual Studio\VC98\include
JAVA_HOME=D:\programme\Java\jdk1.5.0_05
lib=D:\programme\Microsoft Visual Studio\VC98\mfc\lib;D:\programme\Microsoft 
Visual Studio\VC98\lib
LOGONSERVER=\\IBM-C71A1AE9667
NewEnvironment1=C:\WINDOWS\Downloaded Program Files
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
OSG_FILE_PATH=d:\programme\OpenSceneGraph\data;d:\programme\OpenSceneGraph\data\Images;d:\programme\OpenSceneGraph\data\fonts
OSG_ROOT=d:\programme\OpenSceneGraph
Path=d:\programme\texmf\miktex\bin;C:\PROGRAMME\THINKPAD\UTILITIES;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\IBMTOOLS\Python22;C:\Programme\PC-Doctor 
for Windows\services;D:\programme\WinSCP3\;D:\programme\MySQL\MySQL Server 
4.1\bin;D:\programme\php\;D:\programme\javacc-3.2\bin;D:\programme\Subversion\bin;D:\programme\Java\jdk1.5.0_05\bin;D:\PROGRA~1\GRAPHVIZ\Graphviz\bin;D:\PROGRA~1\GRAPHVIZ\Graphviz\bin\tools;d:\programme\GTK\bin;d:\programme\doxygen\bin;D:\MATLAB\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.py;.pyw
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0905
ProgramFiles=C:\Programme
PROMPT=$P$G
PYTHONCASEOK=1
PYTHONPATH=C:\IBMTOOLS\utils\support;C:\IBMTOOLS\utils\logger
RRU=C:\Programme\IBM\IBM Rapid Restore Ultra\
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TCL_LIBRARY=C:\IBMTOOLS\Python22\tcl\tcl8.4
TK_LIBRARY=C:\IBMTOOLS\Python22\tcl\tk8.4
TMP=C:\DOKUME~1\Admin\LOKALE~1\Temp
tvdumpflags=8
USERDOMAIN=IBM-C71A1AE9667
USERNAME=Admin
USERPROFILE=C:\Dokumente und Einstellungen\Admin
windir=C:\WINDOWS

C:\WINDOWS\system32>




Steve Loughran wrote:
> Safak Ökmen wrote:
>> ANT_HOME was pointing to "D:\programme\ant".
>>
>> I'm sorry. I just don't know what's wrong.
>>
>> I have a command line utility fsum (FastSum) which I tried with
>> command line arguments (fsum something.zip something.zip.md5) and it
>> works fine. I think that means cmd is recognizing command line
>> argument. I will try installing ant fresh.
>>
>> Matt Benson wrote:
>
> something is wrong with your command line env. probalby the classpath
> or something. List your entire environment by typing
>
> set
>
> at the command prompt; post the results. I would suspect trouble in
>
> CLASSPATH
> PATH
>
> You can also edit ant.bat, comment out the @echo off line and see what
> command line is being constructed.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Steve Loughran <st...@apache.org>.
Safak Ökmen wrote:
> ANT_HOME was pointing to "D:\programme\ant".
> 
> I'm sorry. I just don't know what's wrong.
> 
> I have a command line utility fsum (FastSum) which I tried with command 
> line arguments (fsum something.zip something.zip.md5) and it works fine. 
> I think that means cmd is recognizing command line argument.
> 
> I will try installing ant fresh.
> 
> Matt Benson wrote:

something is wrong with your command line env. probalby the classpath or 
something. List your entire environment by typing

set

at the command prompt; post the results. I would suspect trouble in

CLASSPATH
PATH

You can also edit ant.bat, comment out the @echo off line and see what 
command line is being constructed.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Safak Ökmen <oe...@in.tum.de>.
Also I wonder, why the eclipse ant plugin works fine.


Matt Benson wrote:
> ANT_HOME is used by ant.bat .  Which ant.bat is called
> is dependent upon your Windows system PATH.  The very
> fact that you removed the ANT_HOME variable and
> received an error message after that makes your PATH
> settings suspect.  I personally no longer use
> ANT_HOME; if you get your PATH set up correctly,
> ant.bat can properly deduce ANT_HOME for a standard
> installation.
>
>
> --- Safak Ökmen <oe...@in.tum.de> wrote:
>
>> ANT_HOME was pointing to "D:\programme\ant".
>>
>> I'm sorry. I just don't know what's wrong.
>>
>> I have a command line utility fsum (FastSum) which I
>> tried with command line
>> arguments (fsum something.zip something.zip.md5) and
>> it works fine. I think
>> that means cmd is recognizing command line argument.
>>
>> I will try installing ant fresh.
>>
>> Matt Benson wrote:
>>> That proves that the Java classes in use are those
>>> below ANT_HOME, but it still doesn't prove which
>> ant
>>> executable is ultimately calling the Java code.
>>>
>>>
>>> --- Safak Ökmen <oe...@in.tum.de> wrote:
>>>
>>>> I tried to identifiy the ant version running by
>>>> removing the ANT_HOME
>>>> variable.
>>>> __________
>>>> D:\programme>ant
>>>> Der Befehl "ant" ist entweder falsch geschrieben
>>>> oder
>>>> konnte nicht gefunden werden.
>>>>
>>>> D:\programme>cd ant
>>>>
>>>> D:\programme\ant>cd bin
>>>>
>>>> D:\programme\ant\bin>ant.bat -debug clean
>>>> Buildfile: build.xml
>>>>
>>>> one:
>>>>
>>>> BUILD SUCCESSFUL
>>>> Total time: 0 seconds
>>>> __________
>>>>
>>>> So the result is: the called ant task *is* the
>> ant
>>>> task in
>>>> "D:\programme\ant\bin".
>>>>
>>>>
>>>>
>>>>
>>>> Nicolas Vervelle wrote:
>>>>> Apparently, ant doesn't care of whatever you put
>>>> in the commande line.
>>>>> Just a stupid idea: try specifying the extension for the ant
>>>>> script (ant.bat or ant.cmd)
>>>>> ant.bat -debug clean
>>>>> or
>>>>> ant.cmd -debug clean
>>>>>
>>>>>
>>>>> Safak Ökmen wrote:
>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> It is really strange. -debug doesn't work
>> either.
>>>>>>
>>>>>> Look at this:
>>>>>>
>>>>>> __________
>>>>>> D:\programme\ant\bin>ant -debug clean
>>>>>> Buildfile: build.xml
>>>>>>
>>>>>> one:
>>>>>>
>>>>>> BUILD SUCCESSFUL
>>>>>> Total time: 1 second
>>>>>> __________
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
>>>> user-unsubscribe@ant.apache.org
>>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>
>>>>
>>>>
>>>
>>
> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
>>>> user-unsubscribe@ant.apache.org
>>>> For additional commands, e-mail:
>>>> user-help@ant.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>> __________________________________
>>> Yahoo! Mail - PC Magazine Editors' Choice 2005
>>> http://mail.yahoo.com
>>>
>>>
>>
> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>> user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> user-unsubscribe@ant.apache.org
>> For additional commands, e-mail:
>> user-help@ant.apache.org
>>
>>
>
>
>
>
> __________________________________
> Yahoo! Music Unlimited
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Safak Ökmen <oe...@in.tum.de>.
If i understood you right, the following should not solve the problem. I 
removed ANT_HOME and added the complete path D:\programme\ant\bin to the 
Path variable. I checked it. It is the same problem.

Matt Benson wrote:
> ANT_HOME is used by ant.bat .  Which ant.bat is called
> is dependent upon your Windows system PATH.  The very
> fact that you removed the ANT_HOME variable and
> received an error message after that makes your PATH
> settings suspect.  I personally no longer use
> ANT_HOME; if you get your PATH set up correctly,
> ant.bat can properly deduce ANT_HOME for a standard
> installation.
>
>
> --- Safak Ökmen <oe...@in.tum.de> wrote:
>
>> ANT_HOME was pointing to "D:\programme\ant".
>>
>> I'm sorry. I just don't know what's wrong.
>>
>> I have a command line utility fsum (FastSum) which I
>> tried with command line
>> arguments (fsum something.zip something.zip.md5) and
>> it works fine. I think
>> that means cmd is recognizing command line argument.
>>
>> I will try installing ant fresh.
>>
>> Matt Benson wrote:
>>> That proves that the Java classes in use are those
>>> below ANT_HOME, but it still doesn't prove which
>> ant
>>> executable is ultimately calling the Java code.
>>>
>>>
>>> --- Safak Ökmen <oe...@in.tum.de> wrote:
>>>
>>>> I tried to identifiy the ant version running by
>>>> removing the ANT_HOME
>>>> variable.
>>>> __________
>>>> D:\programme>ant
>>>> Der Befehl "ant" ist entweder falsch geschrieben
>>>> oder
>>>> konnte nicht gefunden werden.
>>>>
>>>> D:\programme>cd ant
>>>>
>>>> D:\programme\ant>cd bin
>>>>
>>>> D:\programme\ant\bin>ant.bat -debug clean
>>>> Buildfile: build.xml
>>>>
>>>> one:
>>>>
>>>> BUILD SUCCESSFUL
>>>> Total time: 0 seconds
>>>> __________
>>>>
>>>> So the result is: the called ant task *is* the
>> ant
>>>> task in
>>>> "D:\programme\ant\bin".
>>>>
>>>>
>>>>
>>>>
>>>> Nicolas Vervelle wrote:
>>>>> Apparently, ant doesn't care of whatever you put
>>>> in the commande line.
>>>>> Just a stupid idea: try specifying the extension for the ant
>>>>> script (ant.bat or ant.cmd)
>>>>> ant.bat -debug clean
>>>>> or
>>>>> ant.cmd -debug clean
>>>>>
>>>>>
>>>>> Safak Ökmen wrote:
>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> It is really strange. -debug doesn't work
>> either.
>>>>>>
>>>>>> Look at this:
>>>>>>
>>>>>> __________
>>>>>> D:\programme\ant\bin>ant -debug clean
>>>>>> Buildfile: build.xml
>>>>>>
>>>>>> one:
>>>>>>
>>>>>> BUILD SUCCESSFUL
>>>>>> Total time: 1 second
>>>>>> __________
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
>>>> user-unsubscribe@ant.apache.org
>>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>
>>>>
>>>>
>>>
>>
> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
>>>> user-unsubscribe@ant.apache.org
>>>> For additional commands, e-mail:
>>>> user-help@ant.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>> __________________________________
>>> Yahoo! Mail - PC Magazine Editors' Choice 2005
>>> http://mail.yahoo.com
>>>
>>>
>>
> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>> user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> user-unsubscribe@ant.apache.org
>> For additional commands, e-mail:
>> user-help@ant.apache.org
>>
>>
>
>
>
>
> __________________________________
> Yahoo! Music Unlimited
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Matt Benson <gu...@yahoo.com>.
ANT_HOME is used by ant.bat .  Which ant.bat is called
is dependent upon your Windows system PATH.  The very
fact that you removed the ANT_HOME variable and
received an error message after that makes your PATH
settings suspect.  I personally no longer use
ANT_HOME; if you get your PATH set up correctly,
ant.bat can properly deduce ANT_HOME for a standard
installation.


--- Safak Ökmen <oe...@in.tum.de> wrote:

> ANT_HOME was pointing to "D:\programme\ant".
> 
> I'm sorry. I just don't know what's wrong.
> 
> I have a command line utility fsum (FastSum) which I
> tried with command line 
> arguments (fsum something.zip something.zip.md5) and
> it works fine. I think 
> that means cmd is recognizing command line argument.
> 
> I will try installing ant fresh.
> 
> Matt Benson wrote:
> > That proves that the Java classes in use are those
> > below ANT_HOME, but it still doesn't prove which
> ant
> > executable is ultimately calling the Java code.
> >
> >
> > --- Safak Ökmen <oe...@in.tum.de> wrote:
> >
> >> I tried to identifiy the ant version running by
> >> removing the ANT_HOME
> >> variable.
> >> __________
> >> D:\programme>ant
> >> Der Befehl "ant" ist entweder falsch geschrieben
> >> oder
> >> konnte nicht gefunden werden.
> >>
> >> D:\programme>cd ant
> >>
> >> D:\programme\ant>cd bin
> >>
> >> D:\programme\ant\bin>ant.bat -debug clean
> >> Buildfile: build.xml
> >>
> >> one:
> >>
> >> BUILD SUCCESSFUL
> >> Total time: 0 seconds
> >> __________
> >>
> >> So the result is: the called ant task *is* the
> ant
> >> task in
> >> "D:\programme\ant\bin".
> >>
> >>
> >>
> >>
> >> Nicolas Vervelle wrote:
> >>> Apparently, ant doesn't care of whatever you put
> >> in the commande line.
> >>> Just a stupid idea: try specifying the extension
> >> for the ant script
> >>> (ant.bat or ant.cmd)
> >>> ant.bat -debug clean
> >>> or
> >>> ant.cmd -debug clean
> >>>
> >>>
> >>> Safak Ökmen wrote:
> >>>
> >>>> Hi!
> >>>>
> >>>> It is really strange. -debug doesn't work
> either.
> >>>>
> >>>> Look at this:
> >>>>
> >>>> __________
> >>>> D:\programme\ant\bin>ant -debug clean
> >>>> Buildfile: build.xml
> >>>>
> >>>> one:
> >>>>
> >>>> BUILD SUCCESSFUL
> >>>> Total time: 1 second
> >>>> __________
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>
> >
>
---------------------------------------------------------------------
> >>> To unsubscribe, e-mail:
> >> user-unsubscribe@ant.apache.org
> >>> For additional commands, e-mail:
> user-help@ant.apache.org
> >>
> >>
> >>
> >
>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> >> user-unsubscribe@ant.apache.org
> >> For additional commands, e-mail:
> >> user-help@ant.apache.org
> >>
> >>
> >
> >
> >
> >
> >
> > __________________________________
> > Yahoo! Mail - PC Magazine Editors' Choice 2005
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> user-help@ant.apache.org 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free. 
http://music.yahoo.com/unlimited/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Safak Ökmen <oe...@in.tum.de>.
ANT_HOME was pointing to "D:\programme\ant".

I'm sorry. I just don't know what's wrong.

I have a command line utility fsum (FastSum) which I tried with command line 
arguments (fsum something.zip something.zip.md5) and it works fine. I think 
that means cmd is recognizing command line argument.

I will try installing ant fresh.

Matt Benson wrote:
> That proves that the Java classes in use are those
> below ANT_HOME, but it still doesn't prove which ant
> executable is ultimately calling the Java code.
>
>
> --- Safak Ökmen <oe...@in.tum.de> wrote:
>
>> I tried to identifiy the ant version running by
>> removing the ANT_HOME
>> variable.
>> __________
>> D:\programme>ant
>> Der Befehl "ant" ist entweder falsch geschrieben
>> oder
>> konnte nicht gefunden werden.
>>
>> D:\programme>cd ant
>>
>> D:\programme\ant>cd bin
>>
>> D:\programme\ant\bin>ant.bat -debug clean
>> Buildfile: build.xml
>>
>> one:
>>
>> BUILD SUCCESSFUL
>> Total time: 0 seconds
>> __________
>>
>> So the result is: the called ant task *is* the ant
>> task in
>> "D:\programme\ant\bin".
>>
>>
>>
>>
>> Nicolas Vervelle wrote:
>>> Apparently, ant doesn't care of whatever you put
>> in the commande line.
>>> Just a stupid idea: try specifying the extension
>> for the ant script
>>> (ant.bat or ant.cmd)
>>> ant.bat -debug clean
>>> or
>>> ant.cmd -debug clean
>>>
>>>
>>> Safak Ökmen wrote:
>>>
>>>> Hi!
>>>>
>>>> It is really strange. -debug doesn't work either.
>>>>
>>>> Look at this:
>>>>
>>>> __________
>>>> D:\programme\ant\bin>ant -debug clean
>>>> Buildfile: build.xml
>>>>
>>>> one:
>>>>
>>>> BUILD SUCCESSFUL
>>>> Total time: 1 second
>>>> __________
>>>>
>>>
>>>
>>>
>>>
>>
> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>> user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> user-unsubscribe@ant.apache.org
>> For additional commands, e-mail:
>> user-help@ant.apache.org
>>
>>
>
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Matt Benson <gu...@yahoo.com>.
That proves that the Java classes in use are those
below ANT_HOME, but it still doesn't prove which ant
executable is ultimately calling the Java code.


--- Safak Ökmen <oe...@in.tum.de> wrote:

> I tried to identifiy the ant version running by
> removing the ANT_HOME 
> variable.
> __________
> D:\programme>ant
> Der Befehl "ant" ist entweder falsch geschrieben
> oder
> konnte nicht gefunden werden.
> 
> D:\programme>cd ant
> 
> D:\programme\ant>cd bin
> 
> D:\programme\ant\bin>ant.bat -debug clean
> Buildfile: build.xml
> 
> one:
> 
> BUILD SUCCESSFUL
> Total time: 0 seconds
> __________
> 
> So the result is: the called ant task *is* the ant
> task in 
> "D:\programme\ant\bin".
> 
> 
> 
> 
> Nicolas Vervelle wrote:
> > Apparently, ant doesn't care of whatever you put
> in the commande line.
> > Just a stupid idea: try specifying the extension
> for the ant script
> > (ant.bat or ant.cmd)
> > ant.bat -debug clean
> > or
> > ant.cmd -debug clean
> >
> >
> > Safak Ökmen wrote:
> >
> >> Hi!
> >>
> >> It is really strange. -debug doesn't work either.
> >>
> >> Look at this:
> >>
> >> __________
> >> D:\programme\ant\bin>ant -debug clean
> >> Buildfile: build.xml
> >>
> >> one:
> >>
> >> BUILD SUCCESSFUL
> >> Total time: 1 second
> >> __________
> >>
> >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> user-help@ant.apache.org 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Safak Ökmen <oe...@in.tum.de>.
I tried to identifiy the ant version running by removing the ANT_HOME 
variable.
__________
D:\programme>ant
Der Befehl "ant" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

D:\programme>cd ant

D:\programme\ant>cd bin

D:\programme\ant\bin>ant.bat -debug clean
Buildfile: build.xml

one:

BUILD SUCCESSFUL
Total time: 0 seconds
__________

So the result is: the called ant task *is* the ant task in 
"D:\programme\ant\bin".




Nicolas Vervelle wrote:
> Apparently, ant doesn't care of whatever you put in the commande line.
> Just a stupid idea: try specifying the extension for the ant script
> (ant.bat or ant.cmd)
> ant.bat -debug clean
> or
> ant.cmd -debug clean
>
>
> Safak Ökmen wrote:
>
>> Hi!
>>
>> It is really strange. -debug doesn't work either.
>>
>> Look at this:
>>
>> __________
>> D:\programme\ant\bin>ant -debug clean
>> Buildfile: build.xml
>>
>> one:
>>
>> BUILD SUCCESSFUL
>> Total time: 1 second
>> __________
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Nicolas Vervelle <ni...@steria.com>.
Apparently, ant doesn't care of whatever you put in the commande line.
Just a stupid idea: try specifying the extension for the ant script 
(ant.bat or ant.cmd)
ant.bat -debug clean
or
ant.cmd -debug clean


Safak Ökmen wrote:

> Hi!
>
> It is really strange. -debug doesn't work either.
>
> Look at this:
>
> __________
> D:\programme\ant\bin>ant -debug clean
> Buildfile: build.xml
>
> one:
>
> BUILD SUCCESSFUL
> Total time: 1 second
> __________
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ant not recognizing command line argument

Posted by Safak Ökmen <oe...@in.tum.de>.
Hi!

It is really strange. -debug doesn't work either.

Look at this:

__________
D:\programme\ant\bin>ant -debug clean
Buildfile: build.xml

one:

BUILD SUCCESSFUL
Total time: 1 second
__________

For this buildfile:
<?xml version="1.0" ?>

<project name="test" default="one">
 <target name="one">
  <mkdir dir="hallo" />
 </target>

 <target name="two" depends="one">
  <mkdir dir="test" />
 </target>

 <target name="clean">
  <delete dir="hallo" />
 </target>
</project>
__________


ant doesn't recognize any command line argument. Is this a windows problem 
perhaps?

Safak.








Jan.Materne@rzf.fin-nrw.de 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:oekmen@in.tum.de]
>> 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 <oe...@in.tum.de> 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 <oe...@in.tum.de> 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:oekmen@in.tum.de]
>>>>>>>> Sent: Wednesday, November 30, 2005 10:59 AM
>>>>>>>> To: user@ant.apache.org
>>>>>>>> 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:
>>>>>> user-unsubscribe@ant.apache.org
>>>>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail:
>>>>>> user-unsubscribe@ant.apache.org
>>>>>> For additional commands, e-mail:
>>>>>> user-help@ant.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> __________________________________
>>>>> Yahoo! Mail - PC Magazine Editors' Choice 2005
>> http://mail.yahoo.com
>>>>>
>>>>>
>>>>
>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
>>>> user-unsubscribe@ant.apache.org
>>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
>>>> user-unsubscribe@ant.apache.org
>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>
>>>
>>>
>>>
>>> __________________________________
>>> Yahoo! Mail - PC Magazine Editors' Choice 2005
>>> http://mail.yahoo.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org