
Ant: The Definitive Guide
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Table of Contents
- Preface
- What's Inside
- Conventions Used in This Book
- What You'll Need
- Using Code Examples
- Safari Enabled
- We'd Like to Hear from You
- CHAPTER 1: Getting Started
- Ant's Origins
- Getting Ant
- Installing Ant
- Testing Ant
- Ant at Work
- Anatomy of a Build File
- Projects
- Targets
- Tasks
- Built-in tasks
- Optional tasks
- Dependent Tasks
- Properties
- Property attributes
- Built-in properties
- Running Ant
- Command-Line Options
- Executing Ant
- Customizable Environment Variables
- Failed Builds
- Verbose Output
- Logging and Libraries
- CHAPTER 2: Using Properties and Types
- Using Properties to Control Tasks
- Setting Conditions
- Performing Conditional Actions
- Stopping Builds
- Property-Setting Tasks
- Availability of resources
- Checking file modification dates
- Using Property Files
- Loading Text
- Overriding Properties
- Setting Properties Using Environment Variables
- Handling Data Using Types
- Path-Like Structures
- Working with Groups of Files
- Default excludes
- Working with Groups of Directories
- Creating Lists of Files
- Working with Patterns
- Selectors
- File Filters
- Using the filter task
- Filtering and Modifying Text with FilterChains and FilterReaders
- Transforming One Set of Files to Another with Mappers
- CHAPTER 3: Building Java Code
- Compiling Code
- Compiling Source Files
- Selecting which files to compile
- Forking the compiler
- Setting Command-Line Options
- Using a Different Java Compiler
- Getting Input from the User
- Calling Other Ant Tasks
- Calling Ant Tasks in the Same Build File
- Calling Ant Tasks in Other Build Files
- Importing Other Build Files
- Documenting Code
- Creating JAR Files
- Working with the META-INF Directory
- Creating Manifest Files
- Setting Build Numbers
- Setting Timestamps
- CHAPTER 4: Deploying Builds
- Packaging Applications for Deployment
- Creating TAR Files
- Compressing Using gzip and bzip2
- Creating ZIP Files
- Fixing Carriage Returns
- Checking File Contents Using Checksums
- Setting Creation Time and Date
- Preparing to Deploy
- Deleting Existing Files
- Creating New Directories
- Deploying Applications
- Deploying by Copying
- Moving Files
- Deploying Remotely Using FTP
- Deploying Remotely Using Telnet
- Deploying Remotely Using SSH
- Deploying Remotely Through Email
- Setting File Protections with chmod
- Scheduling Automatic Builds
- Unix
- Windows
- Anthill
- Cruise Control and Gump
- CHAPTER 5: Testing Builds with JUnit
- Using JUnit
- Writing the Tests
- Performing Tests with the junit Task
- Formatting test results
- Specifying the test class
- Running tests in batches
- Running Test Cases
- Using the Plain Formatter for Reports
- Using the Brief Formatter for Reports
- Using the XML Formatter for Reports
- Creating Reports with the junitreport Task
- Testing in Batches
- Running the Build File
- Extending JUnit
- CHAPTER 6: Getting Source Code from CVS Repositories
- Source Control and Ant
- Logging In
- Working with the Server
- Checking Out Modules
- Updating Shared Code
- Committing Source Code
- Comparing Files
- Getting Version Data
- Creating Change Logs
- Finding Changes Between Versions
- Creating Patches
- CHAPTER 7: Executing External Programs
- Executing Java Code
- Handling Errors and Return Codes
- Executing External Programs
- Handling Return Codes
- Targeting Operating Systems
- Handling Timeouts
- Executing Shell Commands
- Checking for External Programs Before Executing Them
- Performing Batch Execution
- Multithreading Tasks
- Setting Execution Order
- CHAPTER 8: Developing for the Web
- Creating WAR Archives
- Creating CAB Files
- Creating Simple Web Deployment
- Deploying with SCP
- Deploying to Tomcat
- Compiling JSPs
- Deploying to EJB Containers
- Creating EAR Files
- Supporting Hot Deployment
- The generic element
- The weblogic element
- The jonas element
- CHAPTER 9: XML and XDoclet
- Validating XML Documents
- Validating with XML Schema
- Validating with DTDs
- Loading Properties from XML Files
- Creating Ant Task DTDs
- Transforming XML Using XSLT
- Using XDoclet
- Developing Applications
- Working with EJB Containers
- Developing Enterprise JavaBeans
- JARing Files
- CHAPTER 10: Optional Tasks
- Using Sound
- Creating Splash Screens
- Subtituting Text Using Regular Expressions
- Handling Dependencies
- CHAPTER 11: Integrating Ant with Eclipse
- Introducing Eclipse
- Getting Eclipse
- Creating an Eclipse Project
- Writing an Ant Build File in Eclipse
- Running Ant Build Files
- Selecting the Build File and Passing Arguments to Ant
- Modifying the Ant Classpath
- Setting Property Values
- Setting Environment Variables
- Configuring the Ant Editor
- Adding New Ant Tasks and Types
- Using a Different Version of Ant
- Using the Ant View
- CHAPTER 12: Extending Ant
- Creating a Simple Custom Ant Task
- Extending the Task Class
- The Task Life Cycle
- Accessing the Project and Properties in Code
- Handling Attributes in Custom Tasks
- Making Builds Fail
- Handling Nested Text
- Handling Nested Elements
- Using Filesets
- Running External Programs
- Running Scripts
- Creating Custom Listeners
- Creating Custom Loggers
- Creating Custom Filters
- Creating Custom Selectors
- Creating New Types
- Index
- About the Author
- Colophon
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.