Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-dev] p2.repo2runnable causing my ant script to fail: [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.


Make sure you run "In the same JRE as the workspace", check the JRE tab for the launch configuration that was created in the external tools launch configurations.

-Andrew


From: Gabriel Petrovay <gabipetrovay@xxxxxxxxx>
To: pde-dev <pde-dev@xxxxxxxxxxx>
Date: 04/15/2010 07:33 AM
Subject: [pde-dev] p2.repo2runnable causing my ant script to fail:        [antlib:org.apache.tools.ant]         Could not load definitions from resource        org/apache/tools/ant/antlib.xml. It could not be found.
Sent by: pde-dev-bounces@xxxxxxxxxxx





Hi,

I use Eclipse Classic 3.5.2 and I have the following build.xml in an
empty Eclipse "General" -> "Project" and I run it as an "Ant Build"
(with the "-debug" argument):

<project name="TestBuild">
                <target name="default">
                                 <p2.repo2runnable
source="
http://download.eclipse.org/technology/dltk/updates-dev/1.0"
                                                  destination="${basedir}/out" >
                                 </p2.repo2runnable>
                </target>
</project>

The result is:

Apache Ant version 1.7.1 compiled on June 27 2008
Setting ro project property: ant.file -> C:\Users\Gabriel\Eclipse
Workspace WTP\build\build.xml
Buildfile: C:\Users\Gabriel\Eclipse Workspace WTP\build\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\Users\Gabriel\Eclipse Workspace
WTP\build\build.xml with URI =
file:/C:/Users/Gabriel/Eclipse%20Workspace%20WTP/build/build.xml
Setting ro project property: ant.project.name -> TestBuild
Adding reference: TestBuild
Setting ro project property: ant.file.TestBuild ->
C:\Users\Gabriel\Eclipse Workspace WTP\build\build.xml
Project base dir set to: C:\Users\Gabriel\Eclipse Workspace WTP\build
+Target:
+Target: default
Adding reference: eclipse.ant.targetVector
Build sequence for target(s) `default' is [default]
Complete build sequence is [default, ]
default:
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.

BUILD FAILED
C:\Users\Gabriel\Eclipse Workspace WTP\build\build.xml:4: Problem:
failed to create task or type p2.repo2runnable
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:484)
                at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:416)
                at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
                at org.apache.tools.ant.Task.perform(Task.java:347)
                at org.apache.tools.ant.Target.execute(Target.java:357)
                at org.apache.tools.ant.Target.performTasks(Target.java:385)
                at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
                at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
                at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
                at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
                at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
                at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
                at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)




--
MSc Gabriel Petrovay
Mobile: +41(0)787978034
www.28msec.com
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev




Back to the top