13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9.4 A Sample Ant Buildfile229Example 9.3 Using the PatternSet datatypeIn general, datatypes give you more sophisticated c<strong>on</strong>trol than do the attributesof a task. Take a look at the Ant User’s Manual 10 for full details <strong>on</strong> ant.9.4.3 A Real, Live BuildfileLet’s take it to the next level and examine a real working buildfile.9.4.3.1 Project Organizati<strong>on</strong>All but the simplest of projects will require multiple classes. Some will requirelibraries, multiple programs, binary deployment, Web deployment, enterprisedeployment, and so <strong>on</strong>. A project will be most successful if you plan out whatgoes where in advance. We’re going to present a series of suggesti<strong>on</strong>s for howto organize the files involved in developing, building, and deploying a Javaproject with ant. By no means is this the <strong>on</strong>ly way it might be d<strong>on</strong>e, but it hasworked well for us.9.4.3.2 The build.xml File for PaybackExample 9.4 is the actual Ant buildfile for the Payback program in our sourcecode examples. These examples are available <strong>on</strong> the book’s Web site. 1110. http://ant.apache.org/manual/11. http://www.javalinuxbook.com/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!