Up to this point, you’ve been working solo with Ant, butas with any major build toolAnt can be used in team environments. There’s a lot of support built in for the Concurrent Version System (CVS) in Ant, and this chapter is all about making code sharing in teams with CVS happen.
When you work in teams, you have to coordinate your efforts. That means discussing and planning, but even with the best of intentions, you can still end up with unintentional conflicts. You may have made some brilliant changes to the code, only to find them wiped out by mistake when another programmer uploads his own version of the same file.
Source control helps prevent these problems by controlling access to code and by maintaining a history of the changes made so things aren’t destroyed unintentionally. Storing a history of your code is powerful; you can compare a new (buggy) file against an older one, and you can revert to a previous version in case things have gone bad.
Ant has several source control tasks, shown in Table 6-1.
Specifies how to work with packages and modules retrieved from ...