List of Listings

 

Chapter 1. Understanding the challenges of legacy projects

Listing 1.1. Some untestable code

Chapter 2. Finding your starting point

Listing 2.1. A fix for the FindBugs warning

Listing 2.2. A FindBugs false positive caused by Java reflection

Listing 2.3. A field with a FindBugs @SuppressWarning annotation

Listing 2.4. WorkDay bean

Listing 2.5. An exclusion filter definition for FindBugs

Chapter 7. Automating the development environment

Listing 7.1. An example README file in Markdown format

Listing 7.2. Ansible tasks to install Resin 3.x

Listing 7.3. Ansible tasks to create and initialize a PostgreSQL database

Chapter 8. Extending automation to test, staging, and production environments

Listing 8.1. A playbook with roles distributed across multiple host groups

Chapter 9. Modernizing the development, building, and deployment of legacy software

Listing 9.1. A simple Ant build file for a Java web app

Listing 9.2. A Gradle build file for the UAD web app

Listing 9.3. The beginnings of a fabfile for deploying our PHP app

Listing 9.4. Fabric tasks to attach and detach instances from an Amazon ELB

Listing 9.5. Sample output from running the Fabric script against 3 EC2 machines