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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


David Weintraub
[EMAIL PROTECTED]
[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to