ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Safak Ökmen <oek...@in.tum.de>
Subject Re: ant not recognizing command line argument
Date Wed, 30 Nov 2005 20:17:52 GMT
I just wrote this simple build.xml:

--------------------
<?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>
--------------------


and chaned into the bin directory of my ant installation.

Execute ant, I get
--------------------
D:\programme\ant\bin>ant
Buildfile: build.xml

one:
    [mkdir] Created dir: D:\programme\ant\bin\hallo

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>
--------------------

I don't understand what the problem is.

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 <oekmen@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 <oekmen@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


Mime
View raw message