----- Original Message -----
From: "Steve Cohen" <[EMAIL PROTECTED]>
To: "Ant Developers List" <[EMAIL PROTECTED]>
Sent: Saturday, February 23, 2002 9:42 AM
Subject: RE: <ant>


>Can you give an example of what this output would look like - i.e. what you
mean by "what is going on"?


something like
  [ant] calling target [default] in file /home/user/projects/stuff/build.xml

you only see it in verbose. I was having this problem in a master build
file, see, where both the target build file and target target were
parameterized, and a failure to parse one of the 5 possible build files only
told me which line in the master build file the failure was occurring, not
which file. I also had some other issues; all could have been resolved more
easily by determining which line is which

actually, I might do some tuning to add some more detail to the exception,
like the errant file name when <ant>.execute raises a build exception, but
that will probably force changes to the tests too



-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 23, 2002 3:51 AM
To: Ant Developer List
Subject: <ant>


I just added logging of what is going on when you make an <ant> or <antcall>
call - in verbose mode only. till now we had nothing.

One further thing I was debating doing, but want to get a reaction first, is
to tweak it so that if the target is "" then we treat that the same as
undefined, and execute the default.

the reason is that you cant have a parameterized invocation call the default
build:
<ant dir="subproject" target="${target}" />

and since you cant have a target called "" (right?) it makes sense to bind
this to the default.

(pause)

Ok, you can have a target called "", but I bet you would be stuffed
depending upon it:

>ant ""
Buildfile: build.xml

:

BUILD SUCCESSFUL

This leads to predecessor question. Should the empty string be a valid name
for a target. I think not, if we agree then we can stop it, and then I could
set <ant target=""> to mean default.

Does anyone use the empty string as target name in their build files?




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to