ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Waldo, Paul W (Elemental Solutions)" <paul.waldo-...@eds.com>
Subject Cant find external task
Date Wed, 10 Oct 2001 14:15:47 GMT
Hi all,

I'm trying to use the "Configure" external task, but without much luck.
I've placed the anttc.jar into ant's lib directory and call ant with the
following build.xml:

<?xml version="1.0"?>
<project name="test" basedir="." default="configure">
    <target name="configure">
        <configure build="${ant.file}" locations="obj,src,doc"
propref="cfg"/>
    </target>
</project>

Here is the output from ant -v:

$ ant -v
Ant version 1.4 compiled on September 3 2001
Buildfile: build.xml
Detected Java version: 1.3 in: c:\jdk1.3\jre
Detected OS: Windows NT
parsing buildfile c:\java_work\sampledir\test\build.xml with URI =
file:c:/java_
work/sampledir/test/build.xml
Project base dir set to: C:\java_work\sampledir\test
Build sequence for target `configure' is [configure]
Complete build sequence is [configure]

configure:

BUILD FAILED

c:\java_work\sampledir\test\build.xml:9: Could not create task of type:
configur
e. Common solutions are to use taskdef to declare your task, or, if this is
an o
ptional task, to put the optional.jar in the lib directory of your ant
installat
ion (ANT_HOME).
        at
org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:153)

        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.jav
a:83)
        at org.apache.tools.ant.Task.perform(Task.java:216)
        at org.apache.tools.ant.Target.execute(Target.java:164)
        at org.apache.tools.ant.Target.performTasks(Target.java:182)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 1 second


Any help would be greatly appreciated!

Paul

Mime
View raw message