You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Karamjit <ka...@gmail.com> on 2007/06/04 06:59:12 UTC
ant project building problem when one project depend upon another
project.
Hi All,
I have one problem in ant build file. Actually i'm compiling and build two
projects A and B with single build file.
As in eclipse configuration i made A project depend upon the jar file of B
project.
What i'm trying to do is that i want to set the jar file in classpath
durring runt time of ant from A project so that the project B can get easily
compiled. Is there any way in ANT to make one project dependable on the Jar
file of other project.
Can someone help me. its very urgent. Thanks in advanced
--
View this message in context: http://www.nabble.com/ant-project-building-problem-when-one-project-depend-upon-another-project.-tf3863068.html#a10943796
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: ant project building problem when one project depend upon
another project.
Posted by Prashant Reddy <pr...@pramati.com>.
Project A's build process will make the jar and puts the jar in location
known to Project B.
Then you could write a 'outer' build script that infact builds these
projects (A,B) in the order you require.
(-)build.xml (outer)
(+)dist (Jars from project A go here)
(+)Project A/build.xml
(+)Project B/build.xml
The 'outer' build script may also do tasks like checking out the code
for project A,B.
HTH
On Sun, 2007-06-03 at 21:59 -0700, Karamjit wrote:
> Hi All,
> I have one problem in ant build file. Actually i'm compiling and build two
> projects A and B with single build file.
> As in eclipse configuration i made A project depend upon the jar file of B
> project.
> What i'm trying to do is that i want to set the jar file in classpath
> durring runt time of ant from A project so that the project B can get easily
> compiled. Is there any way in ANT to make one project dependable on the Jar
> file of other project.
> Can someone help me. its very urgent. Thanks in advanced
>
--
-Prashant
Don't upload, just share : www.dekoh.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: ant project building problem when one project depend upon another project.
Posted by Qazwart <qa...@gmail.com>.
Separate out the JAR task as a separate target and have both project
"A" and project "B" depend upon that target. That way, you're just
building the JAR and not the entire project. Or, you can build the
JAR with a separate target and call it via an <antcall>.
On Jun 4, 2007, at 12:59 AM, Karamjit wrote:
>
> Hi All,
> I have one problem in ant build file. Actually i'm compiling and
> build two
> projects A and B with single build file.
> As in eclipse configuration i made A project depend upon the jar
> file of B
> project.
> What i'm trying to do is that i want to set the jar file in classpath
> durring runt time of ant from A project so that the project B can
> get easily
> compiled. Is there any way in ANT to make one project dependable on
> the Jar
> file of other project.
> Can someone help me. its very urgent. Thanks in advanced
>
> --
> View this message in context: http://www.nabble.com/ant-project-
> building-problem-when-one-project-depend-upon-another-project.-
> tf3863068.html#a10943796
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
David Weintraub
david@weintraub.name
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: ant project building problem when one project depend upon another project.
Posted by yitzle <yi...@users.sourceforge.net>.
You can make a task 'depend' on another.
<target name="myTask" depends="makeThisFirst" >
....
</target>
On 6/4/07, Karamjit <ka...@gmail.com> wrote:
>
> Hi All,
> I have one problem in ant build file. Actually i'm compiling and build two
> projects A and B with single build file.
> As in eclipse configuration i made A project depend upon the jar file of B
> project.
> What i'm trying to do is that i want to set the jar file in classpath
> durring runt time of ant from A project so that the project B can get easily
> compiled. Is there any way in ANT to make one project dependable on the Jar
> file of other project.
> Can someone help me. its very urgent. Thanks in advanced
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org