So something like that?
<project>
<target name="foobar" depends="foo,bar"/>
<target name="foo" depends="-one,-two"/>
<target name="bar" depends="-one,-two"/>
<target name="-one">
<!-- from which target was I called? -->
</target>
<target name="-two"/>
</project>
$ant foo --> -one,-two,foo
$ant bar --> -one,-two,bar
$ant foo bar --> -one,-two,foo,-one,-two,bar
$ant bar foo --> -one,-two,bar,-one,-two,foo
$ant foobar --> -one,-two,foo,bar,foobar
Jan
> -----Ursprüngliche Nachricht-----
> Von: David Weintraub [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 17. März 2008 19:26
> An: Ant Users List
> Betreff: Re: Ant property ant.java.version how does Ant
> detect this property?
>
> You know, there's one that I'd really love to have, but Ant doesn't
> seem to have: What target was Ant itself executing when called. For
> example, I have an build.xml with two external targets: "foo" and
> "bar". Both "foo" and "bar" are dependent upon targets "barfu" and
> "fubar". It would be nice to be able to find out when the tasks
> "barfu" or "fubar" are being executed whether the original task was
> "foo" or "bar".
>
> I can get around this by using the <antcall> task, but that destroys
> the way Ant automatically determines the build order.
>
> On Mon, Mar 17, 2008 at 1:32 AM, <[EMAIL PROTECTED]> wrote:
> > Ant retrieves all system properties - means all properties
> System.getProperties() returns.
> >
> > http://ant.apache.org/manual/using.html#built-in-props
> > "Ant provides access to all system properties ... For a
> list of system properties see
> > the Javadoc of System.getProperties."
> >
> >
> > Jan
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: David Brown [mailto:[EMAIL PROTECTED]
> > > Gesendet: Montag, 17. März 2008 03:34
> > > An: [email protected]
> > > Betreff: Ant property ant.java.version how does Ant detect
> > > this property?
> >
> >
> > >
> > > Hello Steve and all the Ant gurus and users. I know the Ant
> > > built-in property: ant.java.version is an property detected
> > > by Ant. Does Ant detect this property from some ubiquitous
> > > environment variable such as: JAVA_HOME? I have several JDKs
> > > installed: 1.4.x, 1.5.x, 1.6.x etc. What is needed to get Ant
> > > to detect a different Java version? Please advise, David.
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> --
> David Weintraub
> [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]