Originally posted by Burk Hufnagel:
The bad news is it's all build - no time spent pulling down files.
There's some code generation, but the vast majority is spent compiling files and packaging them into jar, war, and ear files.
How much time is spend for the packaging?
One important thing to know is that using update="true" with an
Ant jar- or similar task is *horribly* slow.
While the code base is rather large, the primary culprit is that the same files are compiled and jared numerous times. The people who initially wrote the build.xml file didn't take the time to determine dependencies and now we're suffering the long build.
Then it's time to refactor the build script. In my experience, it's often easier than it initially looks.
Let this be a lesson to others. Taking short cuts on creating your build may save you some time initially, but everyone on the team pays for it several times a day.
Keep your builds fast and lean - it's worth it!
I totally agree. A build script needs as much care as other code.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus