Information Technology Reference
In-Depth Information
LISTING 1-1 Running a Private Build Using Ant
> ant integrate
Buildfile: build.xml
clean:
svn-update:
all:
compile-src:
compile-tests:
integrate-database:
run-tests:
run-inspections:
package:
deploy:
BUILD SUCCESSFUL
Total time: 3 minutes 13 seconds
After running a successful private build, you can check in new and
modified files to the repository. Most version control systems provide
simple commands to perform these processes, as shown in Listing 1-2
using Subversion.
LISTING 1-2
Committing Changes to a Subversion Repository
> svn commit -m "Added CRUD capabilities to DAO"
Sending src\BeerDaoImpl.jaca
Transmitting file data .
Committed revision 52.
You can execute your build script and commit changes to your
repository using your Integrated Development Environment (IDE) as
well. Just make sure you can perform both activities from the com-
mand line so that you don't have tightly coupled dependencies with
your IDE or version control system.
Version Control Repository
Simply put, you must use a version control repository in order to per-
form CI. In fact, even if you don't use CI, a version control repository
should be standard for your project. The purpose of a version control
repository is to manage changes to source code and other software
assets (such as documentation) using a controlled access repository.
This provides you with a “single source point” so that all source code
Search WWH ::




Custom Search