alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Ant example source code file (loaderref.xml)

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

Java - Ant tags/keywords

ant, ant, test1, test1, this, this

The loaderref.xml source code

<?xml version="1.0"?>

<project name="loaderref-test" default="help">

  <property name="src.dir" value="src"/>
  <property name="classes.dir" value="classes"/>

  <target name="help">
    <echo>
This build file is intended to be used for testing Ant
    </echo>
  </target>

  <target name="clean">
    <delete dir="${classes.dir}"/>
  </target>

  <target name="compile">
    <mkdir dir="${classes.dir}"/>
    <javac srcdir="${src.dir}" destdir="${classes.dir}"/>
  </target>

  <target name="testbadref" depends="compile" >
    <taskdef loaderref="loaderref-test"
             name="test1"
             classname="Test1"
             classpath="${classes.dir}"/>
  </target>

</project>

Other Ant examples (source code examples)

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

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

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
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.