You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Bruce McGuire <br...@shaw.ca> on 2002/11/03 21:00:33 UTC
Dependancies on libraries
Hello.
I have a project which depends on some libraries that I am building. Is
it possible to have one build.xml file depend on another?
For example, my application depends on a.jar, which is a compilation of
b.class and c.class. If b.java or c.java have changed since the last
compile, when I run the build.xml for tha application, I would like it
to compile b.java and c.java, which will in turn create a.jar, after
which my application will compile.
I am brand new to Ant, and would appreciate any assistance.
Thanks,
Bruce.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Dependancies on libraries
Posted by Bruce McGuire <br...@shaw.ca>.
Hello Stefan.
Thanks for the input. That is exactly what I wanted. I should have
rtfm'ed better.
Thanks again.
Bruce.
Stefan Bodewig wrote:
>On Sun, 03 Nov 2002, Bruce McGuire <br...@shaw.ca> wrote:
>
>>I have a project which depends on some libraries that I am
>>building. Is it possible to have one build.xml file depend on
>>another?
>>
>
>I'm not entirely sure I understand what you mean. Take a look at the
><ant> task.
>
>So if you have build file a.xml with a target A that depends on target
>B in build file b.xml you'd do something like
>
>a.xml:
>
> <target name="A" depends="run-B-in-b.xml">
> ...
> </target>
>
> <target name="run-B-in-b.xml">
> <ant target="B" antfile="b.xml"/>
> </target>
>
>or put the <ant> task directly into target A.
>
>Stefan
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
Re: Dependancies on libraries
Posted by Stefan Bodewig <bo...@apache.org>.
On Sun, 03 Nov 2002, Bruce McGuire <br...@shaw.ca> wrote:
> I have a project which depends on some libraries that I am
> building. Is it possible to have one build.xml file depend on
> another?
I'm not entirely sure I understand what you mean. Take a look at the
<ant> task.
So if you have build file a.xml with a target A that depends on target
B in build file b.xml you'd do something like
a.xml:
<target name="A" depends="run-B-in-b.xml">
...
</target>
<target name="run-B-in-b.xml">
<ant target="B" antfile="b.xml"/>
</target>
or put the <ant> task directly into target A.
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>