ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohan <mohan...@gmail.com>
Subject Re: project.createTask() not working with ant-1.8.2
Date Tue, 15 Feb 2011 14:13:31 GMT

I'm also attaching the stack trace of the error produced by the "-v" option,
if it helps :)

$> /prod/tools/infra/apache/ant-1.8.2/bin/ant compile -v
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Trying the default build file: build.xml
Buildfile: /u/chittelk/build.xml
Detected Java version: 1.6 in: /usr/local/java/jdk1.6.0.21/jre
Detected OS: SunOS
parsing buildfile /u/chittelk/build.xml with URI =
file:/u/chittelk/build.xml
Project base dir set to: /u/chittelk
parsing buildfile
jar:file:/prod/tools/infra/apache/ant-1.8.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml
with URI =
jar:file:/prod/tools/infra/apache/ant-1.8.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml
from a zip file
 [property] Loading Environment env.
Build sequence for target(s) `compile' is [compile]
Complete build sequence is [compile, ]

compile:
     [echo] Apache Ant(TM) version 1.8.2 compiled on December 20 2010
     [echo] /prod/tools/infra/apache/ant-1.8.2

BUILD FAILED
/u/chittelk/build.xml:17: The following error occurred while executing this
line:
jar:file:/prod/tools/infra/apache/ant-1.8.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml:37:
Problem: failed to create task or type componentdef
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

        at
org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:487)
        at
org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:419)
        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163)
        at org.apache.tools.ant.taskdefs.Antlib.execute(Antlib.java:162)
        at
org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:443)
        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:292)
        at
org.apache.tools.ant.ComponentHelper.checkNamespace(ComponentHelper.java:869)
        at
org.apache.tools.ant.ComponentHelper.getDefinition(ComponentHelper.java:308)
        at
org.apache.tools.ant.ComponentHelper.getComponentClass(ComponentHelper.java:298)
        at
org.apache.tools.ant.ComponentHelper.createNewTask(ComponentHelper.java:547)
        at
org.apache.tools.ant.ComponentHelper.createTask(ComponentHelper.java:524)
        at org.apache.tools.ant.Project.createTask(Project.java:1179)
        at Obfuscate.execute(Obfuscate.java:29)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 0 seconds

-- 
View this message in context: http://ant.1045680.n5.nabble.com/project-createTask-not-working-with-ant-1-8-2-tp3385716p3385995.html
Sent from the Ant - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message