Pro Apache Ant : [learn to use Apache Ant, the standard by Matthew Modie

By Matthew Modie

Show description

Read Online or Download Pro Apache Ant : [learn to use Apache Ant, the standard open-source Java build tool] PDF

Best programming: programming languages books

Prototype and Scriptaculous: Taking the Pain out of JavaScript

This brief lower demonstrates how you can use Prototype for a variety of projects, together with occasion dealing with, DOM processing, string and shape strategy, and Ajax communications. It explores Scriptaculous' visible results library, from pulsate to squish to fold and past. want interface parts? you will find shape autocompletion in addition to drag and drop help.

Fast Track to Sun Certified Java Program

If you would like to benefit the hot gains in Java SE five. zero and cross the sunlight qualified Java Programmer improve examination (CX-310-056), then this e-book is for you. It covers all of the Java SE five. zero new positive aspects required within the examination. you don't want to examine the prevailing positive aspects that you simply already comprehend. 117 assessment questions and ridicule examination questions are incorporated.

Additional resources for Pro Apache Ant : [learn to use Apache Ant, the standard open-source Java build tool]

Example text

Classpath accepts a standard classpath and will convert the string into one that is appropriate for the local operating system. You can also specify a classpath with a nested element, which performs the same operation as the classpath attribute. Listing 3-23 shows both of these techniques. Listing 3-23.

Using a Reference The second partner to name is refid, which is a reference to an object defined elsewhere in the file. The reference allows you to reuse chunks of the build file (termed an object in this case) so that common classpaths and paths can be shared among targets. Many tasks have a refid attribute, and they all perform similar tasks. In the case of the task, the refid attribute assigns the value of the referenced object to the property named with the name attribute. There is no point in assigning anything other than a pathlike structure in this case because you won’t be able to use any other kind of reference once it has been stored in the property.

If you are working on a Unix system, substitute the Windows path to see the example in action. Listing 3-14. path variable is a string property with Unix-style file and path separators (or Windows-style ones if you have changed the file on Unix). path property into it. Ant converts this string to the local operating system format before storing it as a reference. property so that you can see the new, converted value of the path. In other words, the task does not support the refid property and so cannot display the contents of a reference, which in this case you want to do.

Download PDF sample

Rated 4.43 of 5 – based on 22 votes