> How does a java application (other than ant) invoke an ant 
> target.... (I 
> can see using a task easily, but not a target) Can you give me an 
> example where a target gets invoked by java code?

Never done for myself. But this is often asked on the list (and answered).
- instantiate Project
- load the xml
- init Project
- make something with the Project object (as I said, I had never done that
for my own).



> If you are talking about invocation from within ant, then I have 
> difficulty imagining what parts of ant would hide targets from other 
> parts of ant... Imported Files is about the only case that comes to 
> mind, and to me that seems like an entirely different issue, 
> but I have 
> provided for that possiblity, by adding an isAccessibleFrom(String) 
> method, which is used like this:


A target can be invoked:
- from CLI:     ant targetname
- inside Ant:   <ant>, <antcall>, ..., <target depends=""/>
- from IDE:     usually done via Project instantiation described above


> I am perfectly happy to change the name of my access atribute to 
> something like commandLine/noCommandLine or hidden/visible or 
> entry/noEntry if that helps. I can see a good argument for reserving 
> public/private for an alternate, deeper meaning than I have 
> implemented, 
> but it is a word pair that comes to mind easily and so that is what I 
> have used for now.


Thatīs the smallest problem.

You havenīt convinced me. But I wouldnīt do a veto if there are others
wanting
that.



Jan

Reply via email to