aspose file tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant compile dependencies Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Ant compile dependencies" Watch "Ant compile dependencies" New topic
Author

Ant compile dependencies

Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
Sirs,

I got a huge project with a lot of modules with separated sources (e.g. x:/xyz/src, x:/abc/src, etc), and I'm trying to compile the whole thing using Ant. The problem is that some modules depends on others, witch gives me headaches to compile the project.

I'm excluding some packages in the compilation, but I think I'll get crazy doing this job, so I'd like to know if you guys know some tool that generates some kind of dependencies tree. I would use that in my main class, and all the others called from it would be shown. Like this way I'd compile just the needed classes.

I tried JDepend, but this tool work only on packages. I need to target the main class.

Any idea?

Thx


Tiago Fernandez
http://www.tiago182.spyw.com/
Fred Grott
Ranch Hand

Joined: Oct 05, 2002
Posts: 346
there might be another way..

actually your dependency three coudl be how you set up your parent an child build files..

for an example of how to do this look at:

etiher these two books:

Java Development with ANt published by Manning

Ant Developers Handbook published by SAMS


in my humbl eopinion the book publihed by manning has some better exampels of this that I describe.


MobileBytes blog - Sharing Technology - My Programming Knols
 
IntelliJ Java IDE
 
subject: Ant compile dependencies
 
Threads others viewed
Packaging, naming and directory structure.
Component Diagram - some doubts
Can I debug in IDEA using ant to build?
Compiling package by package in Maven
Maven or Ant?
IntelliJ Java IDE