View RSS Feed

Apache Ant

Apache Ant tutorials.

  1. Apache Portability

    by , 02-19-2012 at 09:29 AM
    Portability problems are solved by the Apache Ant. All the required actions for creation of a target are being specified as the shell commands, in Make file. All commands are platform specified. For running the Make at varying platforms, platform specific commands shall be written.

    Built in functionality is being provided largely by the Apache Ant which would be behaving similary at all platforms.

    For cleaning targets or to delete files present in class directory, this ...
  2. Sample build.xml file

    by , 02-19-2012 at 09:27 AM
    A sample of“build.xml” file is given as following, for a java program. These four targets are defined by it.
    • Clean
    • Compile
    • Clobber
    • Jar

    All these targets have an associated description.
    XML Code:
    <?xml version="1.0"?>
    <project name="Hello" default="compile">
        <target name="clean" description="remove intermediate files">
            <delete dir="classes"/>
    Tags: build file Add / Edit Tags
  3. Overview of Apache Ant Tasks

    by , 02-19-2012 at 08:54 AM
    Number of tasks is provided by Apache Ant. What could be done by each task is not predictable easily. All tasks present in Apache Ant are:

    1. Archive Tasks
    2. Compile Tasks
    3. Audit/Coverage Tasks
    4. Deployment Tasks
    5. EJB Tasks
    6. Documentation Tasks
    7. Execution Tasks
    8. SCM Tasks
    9. File Tasks
    10. Logging Tasks
    11. Java2 Extensions Tasks
    12. Miscellaneous Tasks
    13. Mail Tasks
    14. Pre-process ...
  4. Troubleshooting ANT

    by , 02-19-2012 at 08:53 AM
    Ant consists of built in and supportive diagnostic features. Internal state could be seen and printed out by usage of this ant –diagnostic. Code will be checking and printing these points.

    • Ant run directory.
    • All the available optional tasks.
    • JVM system’s properties.
    • The ant-*.jar versions & ant.jar version, which consist of an optional tasks.
    • All jar file present in ANT_HOME/lib
    • XML parser’s information
    • Temp directory status.
    • Current time zone.

  5. Building Ant

    by , 02-19-2012 at 08:52 AM
    Options present to build source, from Apache Ant are:

    • Installation of the Ant source distribution
    • Checking out of the Ant module, from SVN

    Your installation directory shall be changed after the installation is done.

    JAVA_HOME environment variable shall be set, to the JDK installation directory.

    These commands are used to build by the help of Ant:

    build -Ddist.dir=<directory_to_contain_Ant_distribution> dist ...
    Tags: building ant Add / Edit Tags
  6. Why use Apache Ant

    by , 02-19-2012 at 08:50 AM
    Build tools given below are used widely and are present already in the market.
    1. Make
    2. Nmake
    3. Gnumake
    4. Jam
    Why Apache Ant is needed in presence of various build tools? All the given tools hold certain bounds and original author of Ant doesn’t survive without it.

    Ant has always been considered to be a different kind of build tool. Java classes are used for extension of Ant rather than shell based command extension. Configuration files are based ...
    Tags: apache ant Add / Edit Tags
  7. Apache Ant

    by , 02-19-2012 at 08:48 AM
    Apache Ant is a java library and is considered as command line tool. Major tasks performed by Apache Ant is building processes drive which have been explained in the files of builds as extension points and targets, dependent at each other. Java based applications are built by the Ant which is the key usage of it. Various built in tasks are provided by the Ant so that following could be performed at Java applications:

    1. Compile
    2. Test
    3. Assemble
    4. Run
    Tags: apache ant Add / Edit Tags