[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Build projects - noting Classpath dependencies between java projects
|
As I am a newbe - I apologise if this is a stupid question...
I have several java projects in Eclipse that can each be built by their own
Ant build script - producing some jar files for each project. But there are
dependencies between the projects, for example the jar files in 'project1'
have to be built before 'project2' and the jar files 'project2' has to be
built before 'project3' and so on...
I want one Ant build script that will automatically call the individual
build scripts in the correct order. So for example, the classpath of
'project3' will be examined and it will be seen that a 'project2' jar file
is referenced - so then it will examine the classpath of 'project2' and it
will be seen that a 'project1' jar file is referenced... so then it will
examine the classpath of 'project1' and find that there are no classpath
dependencies on other project. So the build script for 'project1' can now be
executed. And the cycle continues until all projects are created.
My question is: Is there an easy way to do this or has anyone got a sample
script to handle this?
Thanks in advance!
Liam.