[ant-contrib - Help] RE: unable to get it working
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.ant-contrib.devel |
|---|---|
| Message-ID | <[email protected]> |
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4295224
By: zomen
Try this:
"build.xml">>>>>>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Specify include files that necessary for build. -->
<!DOCTYPE project [
<!ENTITY AntContrib SYSTEM "file:AntContrib.xml">
<!ENTITY DevEnv SYSTEM "file:devenv.xml">
]>
<!-- ====================================================================== -->
<!-- Test project for antcontrib -->
<!-- ====================================================================== -->
<project name="My Application" default="compile" basedir="." >
<!-- Load properties that specifies usable, installed tools for build. -->
&DevEnv;
<!-- Include custom Ant tasks for C++ compilation -->
&AntContrib;
<echo message="The first five letters of the alphabet are:"/>
<target name ="compile" description ="testing this">
<for list="a,b,c,d,e" param="letter">
<sequential>
<echo message="Letter @{letter}"/>
</sequential>
</for>
</target>
</project>
<<<<<
"AntContrib.xml">>>>>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Document : AntContrib.xml
Created on : November 22, 2004, 13:28
Author : zomen
Description:
Task definitions to use ant-contrib tasks.
-->
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${ant-contrib.jar}"/>
</classpath>
</taskdef>
<<<<<<<<<<<<
"devenv.xml">>>>>>>>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Properties to set up development environment of the project.
When your development tools installed in other location then you may
edit these files or alternatively the "devenv.properties" file.
-->
<!-- Include property file to override default properties defined below. -->
<property file="devenv.properties"/>
<!-- ANT CONTRIB -->
<!-- Installation directory of ant-contrib -->
<property name="ant-contrib.lib.dir"
location="/home/zomen/src/ant-contrib"/>
<!-- The library full name of ant-contrib -->
<property name="ant-contrib.jar"
location="${ant-contrib.lib.dir}/ant-contrib-1.0b3.jar"/>
<<<<<<<<<<
"devenv.properties">>>>>>>>
# Properties to set up development environment.
# They override the defaults placed in devenv.xml
#ant-contrib.lib.dir=
#etc.etc=
<<<<<<<<<<<<<<
Good luck, zomen
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=113701
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/