something like this. it's a task which needs a build file ant a target
to execute.
aditionally the task declares the output of this target (from the
other buildfile) as a fileset. this fileset must be resolved relative
to the called project, that's why i need it.

<project.....>
  <targetcall file="../../../build.xml" target="jar">
    <output dir="build/classes" includes="**/*.class"/>
  </targetcall>
</project>

this project file is included via a include task inside another
project. when executed, i need to resolve the fileset (build/classes)
relative to the project denoted by ../../../build.xml, not the
currrent one. that's why i need a reference to it.





On Thu, 11 Nov 2004 14:36:38 +0100, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> What are you trying? Something like <subant>?
> 
> Jan
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Leon Chiver [mailto:[EMAIL PROTECTED]
> > Gesendet am: Donnerstag, 11. November 2004 14:33
> > An: [EMAIL PROTECTED]
> > Betreff: subproject question
> >
> > hello all,
> >
> > here's my question: i wrote a task which extends Ant, let's say
> > TargetCall. Practically i have to call a target from another build
> > file.
> >
> > inside the TargetCall's execute method i need to find out which
> > project is called. i looked inside the code of the Ant class and saw
> > that there's a member called newProject, which is what i need. but
> > it's private.
> > so what i did was quite a hack: i added a SubBuildListener to the
> > calling project to be informed when the target from the subproject is
> > called and store the project from the BuildEvent.
> >
> > now my question: is there a nicer way to access the called project?
> >
> > thank you,
> > leon
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 



On Thu, 11 Nov 2004 14:36:38 +0100, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> What are you trying? Something like <subant>?
> 
> Jan
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Leon Chiver [mailto:[EMAIL PROTECTED]
> > Gesendet am: Donnerstag, 11. November 2004 14:33
> > An: [EMAIL PROTECTED]
> > Betreff: subproject question
> >
> > hello all,
> >
> > here's my question: i wrote a task which extends Ant, let's say
> > TargetCall. Practically i have to call a target from another build
> > file.
> >
> > inside the TargetCall's execute method i need to find out which
> > project is called. i looked inside the code of the Ant class and saw
> > that there's a member called newProject, which is what i need. but
> > it's private.
> > so what i did was quite a hack: i added a SubBuildListener to the
> > calling project to be informed when the target from the subproject is
> > called and store the project from the BuildEvent.
> >
> > now my question: is there a nicer way to access the called project?
> >
> > thank you,
> > leon
> >
> > ---------------------------------------------------------------------
> > 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]

Reply via email to