| career | drupal | java | mac | mysql | perl | scala | uml | unix  

Ant example source code file (directoryscanner.xml)

This example Ant source code file (directoryscanner.xml) is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Ant tags/keywords

The directoryscanner.xml source code

<project name="directoryscanner-test" basedir=".">

    <property name="tmp.dir" location="tmp"/>

    <target name="setup">
        <mkdir dir="${tmp.dir}/alpha/beta/gamma"/>
        <touch file="${tmp.dir}/alpha/beta/gamma/gamma.xml"/>
        <touch file="${tmp.dir}/alpha/beta/beta.xml"/>

    <target name="extended-setup" depends="setup">
        <mkdir dir="${tmp.dir}/delta"/>
        <touch file="${tmp.dir}/delta/delta.xml"/>

    <target name="children-of-excluded-dir-setup" depends="extended-setup" />

    <target name="cleanup">
        <delete dir="${tmp.dir}" quiet="true"/>

    <target name="symlink-setup" depends="setup">
        <mkdir dir="${tmp.dir}/epsilon/gamma"/>
        <delete dir="${tmp.dir}/alpha/beta"/>
        <symlink link="${tmp.dir}/alpha/beta" resource="${tmp.dir}/epsilon"/>
        <touch file="${tmp.dir}/alpha/beta/gamma/gamma.xml"/>


Other Ant examples (source code examples)

Here is a short list of links related to this Ant directoryscanner.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.