Previous Section
Table of Contents
 


List of Listings

Chapter 1: Introducing Ant

Listing 1-1: Converting Cygwin Path Names to Windows Path Names
Listing 1-2: Creating the Ant Buildfile

Chapter 2: Ant Data Types

Listing 2-1: Using PatternSet within DirSet
Listing 2-2: FileSet with a Nested PatternSet
Listing 2-3: Nesting a Mapper Using a Chained Mapper
Listing 2-4: Using ClassConstants
Listing 2-5: Expanding Ant Properties
Listing 2-6: Using HeadFilter to Filter Files
Listing 2-7: Using TailFilter to Filter Files
Listing 2-8: Replacing a Token filter to User-Specific Pattern
Listing 2-9: Deleting Comments
Listing 2-10: Deleting Lines with a User-Specific Pattern
Listing 2-11: Deleting Line Breaks
Listing 2-12: Choose Lines with a User-Specific Pattern
Listing 2-13: Selecting Files Using the LineContainsRegexp Filter
Listing 2-14: Adding a Prefix
Listing 2-15: Replacing Tabs with Spaces
Listing 2-16: Replacing a User-Specific Pattern
Listing 2-17: Copying Files without Token
Listing 2-18: Building a Path
Listing 2-19: Using the id Attribute
Listing 2-20: Using PropertySet to Collect Properties
Listing 2-21: Selecting Files Based on Size
Listing 2-22: Using the Type Selector
Listing 2-23: Coping Files Using the Modified Selector
Listing 2-24: Using the And Selector
Listing 2-25: Using the Or Selector
Listing 2-26: Using the not Selector
Listing 2-27: Using the majority Selector
Listing 2-28: Using the none Selector
Listing 2-29: Using a Reference for Selection
Listing 2-30: Using XMLCatalog
Listing 2-31: Using ZipFileSet
Listing 2-32: Adding Root Classes with the rootfileset Element
Listing 2-33: Extension Object
Listing 2-34: Using the ExtensionSet Data Type

Chapter 3: Ant Tasks

Listing 3-1: Setting the extModule Property
Listing 3-2: Using the Parallel Task
Listing 3-3: Using the SQL Task
Listing 3-4: Using the Tar Task
Listing 3-5: Using the War Task
Listing 3-6: Using the FTP Task
Listing 3-7: Creating a Simple Property File
Listing 3-8: Tracking Builds
Listing 3-9: Sample JSP Page
Listing 3-10: Using the Telnet Task
Listing 3-11: Compiling and Cleaning Files
Listing 3-12: The Welcome Program
Listing 3-13: Creating a Task
Listing 3-14: A Sample Class with an Error
Listing 3-15: The JUnit Class
Listing 3-16: Using the JUnit Task
Listing 3-17: The junitTests Output
Listing 3-18: Using the JUnitReport Task

Chapter 4: Working with Listeners and Loggers

Listing 4-1: The TestListener.java File
Listing 4-2: The DemoFileList.java File
Listing 4-3: The TestSource.java File
Listing 4-4: The EventDisp.java File
Listing 4-5: The FirstListener.java File
Listing 4-6: The SecondListener.java File
Listing 4-7: The ThirdListener.java File
Listing 4-8: Creating the Build File

Chapter 5: Building a Sample Application Using Ant

Listing 5-1: Parallel and Sequence Tasks
Listing 5-2: The Channel Component
Listing 5-3: The environment.properties File
Listing 5-4: The Common Layer Build Script
Listing 5-5: The environment.properties File for the Common Layer
Listing 5-6: Creating the chatserver Build Script
Listing 5-7: The environment.properties File for the Chatserver Component
Listing 5-8: The chatclient Build Script
Listing 5-9: The environment.properties File for Chatclient
Listing 5-10: The Supporting Task
Listing 5-11: The environment.properties File for the Supporting Task
Listing 5-12: The Build Script
Listing 5-13: The configuration.properties File
Listing 5-14: The environment.properties File for the Build Process
Listing 5-15: The MyChatRoom Build Script
Listing 5-16: The Ant Output


Previous Section
Table of Contents