Ant: The Definitive Guide. 2nd Edition - Helion
ISBN: 978-05-965-5253-4
stron: 336, Format: ebook
Data wydania: 2005-04-13
Księgarnia: Helion
Cena książki: 135,15 zł (poprzednio: 157,15 zł)
Oszczędzasz: 14% (-22,00 zł)
Soon after its launch, Ant succeeded in taking the Java world by storm, becoming the most widely used tool for building applications in Java environments. Like most popular technologies, Ant quickly went through a series of early revision cycles. With each new version, more functionality was added, and more complexity was introduced. Ant evolved from a simple-to-learn build tool into a full-fledged testing and deployment environment.Ant: The Definitive Guide has been reworked, revised and expanded upon to reflect this evolution. It documents the new ways that Ant is being applied, as well as the array of optional tasks that Ant supports. In fact, this new second edition covers everything about this extraordinary build management tool from downloading and installing, to using Ant to test code. Here are just of a few of the features you'll find detailed in this comprehensive, must-have guide:
- Developing conditional builds, and handling error conditions
- Automatically retrieving source code from version control systems
- Using Ant with XML files
- Using Ant with JavaServer Pages to build Web applications
- Using Ant with Enterprise JavaBeans to build enterprise applications
Osoby które kupowały "Ant: The Definitive Guide. 2nd Edition", wybierały także:
- Zen Steve'a Jobsa 29,67 zł, (8,90 zł -70%)
- ASP.NET MVC. Kompletny przewodnik dla programistów interaktywnych aplikacji internetowych w Visual Studio 86,77 zł, (26,90 zł -69%)
- jQuery, jQuery UI oraz jQuery Mobile. Receptury 57,74 zł, (17,90 zł -69%)
- Scratch. Komiksowa przygoda z programowaniem 36,06 zł, (11,90 zł -67%)
- Baltie. Kurs video. Poziom pierwszy. Elementarz programowania w języku wizualnym 59,00 zł, (26,55 zł -55%)
Spis treści
Ant: The Definitive Guide. 2nd Edition eBook -- spis treści
- Ant: The Definitive Guide, 2nd Edition
- SPECIAL OFFER: Upgrade this ebook with OReilly
- A Note Regarding Supplemental Files
- Preface
- Whats Inside
- Conventions Used in This Book
- What You'll Need
- Using Code Examples
- We'd Like to Hear from You
- 1. Getting Started
- 1.1. Ant's Origins
- 1.2. Getting Ant
- 1.2.1. Installing Ant
- 1.2.2. Testing Ant
- 1.3. Ant at Work
- 1.4. Anatomy of a Build File
- 1.4.1. Projects
- 1.4.2. Targets
- 1.4.3. Tasks
- 1.4.3.1. Built-in tasks
- 1.4.3.2. Optional tasks
- 1.4.4. Dependent Tasks
- 1.4.5. Properties
- 1.4.5.1. Property attributes
- 1.4.5.2. Built-in properties
- 1.5. Running Ant
- 1.5.1. Command-Line Options
- 1.5.2. Executing Ant
- 1.5.3. Customizable Environment Variables
- 1.5.4. Failed Builds
- 1.5.5. Verbose Output
- 1.5.6. Logging and Libraries
- 2. Using Properties and Types
- 2.1. Using Properties to Control Tasks
- 2.1.1. Setting Conditions
- 2.1.2. Performing Conditional Actions
- 2.1.3. Stopping Builds
- 2.1.4. Property-Setting Tasks
- 2.1.4.1. Availability of resources
- 2.1.4.2. Checking file modification dates
- 2.2. Using Property Files
- 2.2.1. Loading Text
- 2.2.2. Overriding Properties
- 2.2.3. Setting Properties Using Environment Variables
- 2.3. Handling Data Using Types
- 2.3.1. Path-Like Structures
- 2.3.2. Working with Groups of Files
- 2.3.2.1. Default excludes
- 2.3.3. Working with Groups of Directories
- 2.3.4. Creating Lists of Files
- 2.3.5. Working with Patterns
- 2.3.6. Selectors
- 2.3.7. File Filters
- 2.3.7.1. Using the filter task
- 2.3.8. Filtering and Modifying Text with FilterChains and FilterReaders
- 2.3.9. Transforming One Set of Files to Another with Mappers
- 2.1. Using Properties to Control Tasks
- 3. Building Java Code
- 3.1. Compiling Code
- 3.1.1. Compiling Source Files
- 3.1.1.1. Selecting which files to compile
- 3.1.1.2. Forking the compiler
- 3.1.2. Setting Command-Line Options
- 3.1.3. Using a Different Java Compiler
- 3.1.1. Compiling Source Files
- 3.2. Getting Input from the User
- 3.3. Calling Other Ant Tasks
- 3.3.1. Calling Ant Tasks in the Same Build File
- 3.3.2. Calling Ant Tasks in Other Build Files
- 3.4. Importing Other Build Files
- 3.5. Documenting Code
- 3.6. Creating JAR Files
- 3.6.1. Working with the META-INF Directory
- 3.6.2. Creating Manifest Files
- 3.7. Setting Build Numbers
- 3.8. Setting Timestamps
- 3.1. Compiling Code
- 4. Deploying Builds
- 4.1. Packaging Applications for Deployment
- 4.1.1. Creating TAR Files
- 4.1.2. Compressing Using gzip and bzip2
- 4.1.3. Creating ZIP Files
- 4.1.4. Fixing Carriage Returns
- 4.1.5. Checking File Contents Using Checksums
- 4.1.6. Setting Creation Time and Date
- 4.2. Preparing to Deploy
- 4.2.1. Deleting Existing Files
- 4.2.2. Creating New Directories
- 4.3. Deploying Applications
- 4.3.1. Deploying by Copying
- 4.3.2. Moving Files
- 4.3.3. Deploying Remotely Using FTP
- 4.3.4. Deploying Remotely Using Telnet
- 4.3.5. Deploying Remotely Using SSH
- 4.3.6. Deploying Remotely Through Email
- 4.3.7. Setting File Protections with chmod
- 4.4. Scheduling Automatic Builds
- 4.4.1. Unix
- 4.4.2. Windows
- 4.4.3. Anthill
- 4.4.4. Cruise Control and Gump
- 4.1. Packaging Applications for Deployment
- 5. Testing Builds with JUnit
- 5.1. Using JUnit
- 5.1.1. Writing the Tests
- 5.1.2. Performing Tests with the junit Task
- 5.1.2.1. Formatting test results
- 5.1.2.2. Specifying the test class
- 5.1.2.3. Running tests in batches
- 5.2. Running Test Cases
- 5.2.1. Using the Plain Formatter for Reports
- 5.2.2. Using the Brief Formatter for Reports
- 5.2.3. Using the XML Formatter for Reports
- 5.2.4. Creating Reports with the junitreport Task
- 5.3. Testing in Batches
- 5.4. Running the Build File
- 5.5. Extending JUnit
- 5.1. Using JUnit
- 6. Getting Source Code from CVS Repositories
- 6.1. Source Control and Ant
- 6.2. Logging In
- 6.3. Working with the Server
- 6.3.1. Checking Out Modules
- 6.3.2. Updating Shared Code
- 6.3.3. Committing Source Code
- 6.3.4. Comparing Files
- 6.4. Getting Version Data
- 6.5. Creating Change Logs
- 6.6. Finding Changes Between Versions
- 6.7. Creating Patches
- 7. Executing External Programs
- 7.1. Executing Java Code
- 7.1.1. Handling Errors and Return Codes
- 7.2. Executing External Programs
- 7.2.1. Handling Return Codes
- 7.2.2. Targeting Operating Systems
- 7.2.3. Handling Timeouts
- 7.2.4. Executing Shell Commands
- 7.2.5. Checking for External Programs Before Executing Them
- 7.3. Performing Batch Execution
- 7.4. Multithreading Tasks
- 7.5. Setting Execution Order
- 7.1. Executing Java Code
- 8. Developing for the Web
- 8.1. Creating WAR Archives
- 8.2. Creating CAB Files
- 8.3. Creating Simple Web Deployment
- 8.4. Deploying with SCP
- 8.5. Deploying to Tomcat
- 8.6. Deploying to Tomcat
- 8.7. Compiling JSPs
- 8.8. Deploying to EJB Containers
- 8.8.1. Creating EAR Files
- 8.8.2. Supporting Hot Deployment
- 8.8.2.1. The generic element
- 8.8.2.2. The weblogic element
- 8.8.2.3. The jonas element
- 9. XML and XDoclet
- 9.1. Validating XML Documents
- 9.1.1. Validating with XML Schema
- 9.1.2. Validating with DTDs
- 9.2. Loading Properties from XML Files
- 9.3. Creating Ant Task DTDs
- 9.4. Transforming XML Using XSLT
- 9.5. Using XDoclet
- 9.5.1. Developing Applications
- 9.5.2. Working with EJB Containers
- 9.6. Developing Enterprise JavaBeans
- 9.6.1. JARing Files
- 9.1. Validating XML Documents
- 10. Optional Tasks
- 10.1. Using Sound
- 10.2. Creating Splash Screens
- 10.3. Subtituting Text Using Regular Expressions
- 10.4. Handling Dependencies
- 11. Integrating Ant with Eclipse
- 11.1. Introducing Eclipse
- 11.1.1. Getting Eclipse
- 11.1.2. Creating an Eclipse Project
- 11.1.3. Writing an Ant Build File in Eclipse
- 11.2. Running Ant Build Files
- 11.2.1. Selecting the Build File and Passing Arguments to Ant
- 11.2.2. Modifying the Ant Classpath
- 11.2.3. Setting Property Values
- 11.2.4. Setting Environment Variables
- 11.2.5. Configuring the Ant Editor
- 11.2.6. Adding New Ant Tasks and Types
- 11.3. Using a Different Version of Ant
- 11.4. Using the Ant View
- 11.1. Introducing Eclipse
- 12. Extending Ant
- 12.1. Creating a Simple Custom Ant Task
- 12.2. Extending the Task Class
- 12.2.1. The Task Life Cycle
- 12.2.2. Accessing the Project and Properties in Code
- 12.2.3. Handling Attributes in Custom Tasks
- 12.2.4. Making Builds Fail
- 12.2.5. Handling Nested Text
- 12.2.6. Handling Nested Elements
- 12.2.7. Using Filesets
- 12.2.8. Running External Programs
- 12.2.9. Running Scripts
- 12.3. Creating Custom Listeners
- 12.4. Creating Custom Loggers
- 12.5. Creating Custom Filters
- 12.6. Creating Custom Selectors
- 12.7. Creating New Types
- About the Author
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OReilly