ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: AW: DO NOT REPLY [Bug 23397] - Need attribute for target tag to indicate hidden/internal target
Date Thu, 25 Sep 2003 16:30:53 GMT
> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message