You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Waldo, Paul W (Elemental Solutions)" <pa...@eds.com> on 2001/10/10 16:15:47 UTC
Cant find external task
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
Re: Cant find external task
Posted by Diane Holt <ho...@yahoo.com>.
--- "Waldo, Paul W (Elemental Solutions)" <pa...@eds.com> wrote:
> 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>
You need to include a <taskdef> as well.
Diane
=====
(holtdl@yahoo.com)
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com