Each PEd4Ant release consists of three independent packages: antlibs, documents, and source. Every package has an associated hash value and a GPG-generated signature so you can verify its integrity. To authenticate a package with any PGP or GnuPG application, download our KEYS file and import it into your public keyring.
For older releases or a full download inventory, visit the PEd4Ant SF.net files release archive. Typical contents of a package are described in the included readme-first file.
| v1 Series Packages | for Ant 1.8 + AntXtras v3 |
|---|---|
| Binaries | ped4ant_1.0.0_bin.zip (sig) |
| Binaries with Dependencies | ped4ant_1.0.0_bin_withdeps.zip (sig) |
| Documents | ped4ant_1.0.0_doc.zip |
| Sources | ped4ant_1.0.0_src.zip (sig) |
| Release Notes | Whats New, Licenses |
| v1 Series Packages | for Ant 1.7 + AntXtras v2 |
| Binaries | ped4ant_1.0.0b1_bin.zip (sha1) |
| Binaries with Dependencies | ped4ant_1.0.0b1_bin_withdeps.zip (sha1) |
| Documents | ped4ant_1.0.0b1_doc.zip (sha1) |
| Sources | ped4ant_1.0.0b1_src.zip (sha1) |
Note that except for the JRE and Ant applications, all required third-party libraries are included as part of the “_withdeps” package for a particular release.
PEd4Ant’s installation is similar to any optional Ant package. The following instructions describe how to install and verify the newest PEd4Ant package in your Ant runtime environment.
<PED4ANT_DIR> to refer to the directory into which the PEd4Ant distribution was extracted or built.<PED4ANT_DIR>/lib/jw-ped4ant.jar and all required third-party jars in its classpath. You can also specify a classpath directly to the <taskdef> instruction you use to load PEd4Ant.
Below are the steps you must follow to use PEd4Ant after you download and expand the PEd4Ant ‘_withdeps’ (with dependencies) distribution. The examples assume you run the Ant scripts from inside the etc directory of the distribution.
Tip!
Define the namespace prefix for the PEd4Ant antlib as part of your main script’s root <project> XML element. By default, we use the “ped:” prefix for the “jwaresoftware.ped4ant” namespace to refer to PEd4Ant components.
1: <project name="ped4ant:check" basedir="." xmlns:ped="jwaresoftware.ped4ant">
Define where you’ve installed PEd4Ant using Ant’s <path> components. In this snippet we assume ‘${PED4ANT_HOME}’ is where you have installed the PEd4Ant distribution.
1: <dirname property="PED4ANT_HOME" file="${basedir}"/> 2: 3: <path id="jware.path"> 4: <fileset dir="${PED4ANT_HOME}"> 5: <include name="dep/*/lib/*.jar"/> 6: <include name="lib/*.jar"/> 7: </fileset> 8: </path>
Load the AntXtras and PEd4Ant antlibs into your Ant scripts using the path we defined in step 2. Note that we specify the URI of our declared “ped” namespace using the <taskdef>’s uri parameter and we load the AntXtras components into the default Ant namespace. (You don’t have to load the AntXtras antlib if you don’t need those components!)
1: <taskdef resource="org/jwaresoftware/antxtras/install/antlib.xml" 2: classpathref="jware.path" loaderref="jware.classloader"/> 3: 4: <taskdef uri="jwaresoftware.ped4ant" 5: resource="org/jwaresoftware/ped4ant/antlib.xml" 6: loaderref="jware.classloader"/>
Verify you can access PEd4Ant components from your Ant script. Here we use the AntXtras <vendorinfo> task to load the build information for PEd4Ant and also try to create an empty in-memory Properties object.
1: <target name="about-ped4ant"> 2: <vendorinfo name="ped4ant"/> 3: <show message="RELEASE: ${ped4ant.build.label}"/> 4: <ped:makeproperties under="about"/> 5: </target>
If you would like to compile the source distribution, PEd4Ant is dependent on a few other open-source offerings that you must download and install before trying to compile your own PEd4Ant binaries. If you want to compile and run PEd4Ant programmer tests you need to download the distributions that contain test support files, typically the source distributions; otherwise, the binary distributions are fine.
Main Dependencies:
For Programmer Tests:
As Maven2 POM:
You can compile the PEd4Ant sources from any Java IDE. The PEd4Ant source distribution also contains an ez-build.xml Ant script in the /etc directory that can generate the basic antlib, javadocs, and source package. You must update the ez-build.properties file with details from your environment before doing the Ant build. Read the ez-build-README file for details.