Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] Re: 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.

Indeed, it was another JRE that was picked up by the launch configuration.

Now it works. and it brings the bundles from the p2 repository. But is
there a way to specify that you need a certain version WITHOUT the
qualifier and path version. For example, instead of:

<p2.repo2runnable
source="http://download.eclipse.org/technology/dltk/updates-dev/1.0";
	destination="${basedir}/out" >
	<iu id='org.eclipse.dltk.core' version='1.0.2.v20100209-1928'/>
</p2.repo2runnable>

I want:

<p2.repo2runnable
source="http://download.eclipse.org/technology/dltk/updates-dev/1.0";
	destination="${basedir}/out" >
	<iu id='org.eclipse.dltk.core' version='1.0'/>
</p2.repo2runnable>


This will allow the build script to pick the latest version of the
bundle. Otherwise I am forced to pick the correct version first from
the repository. Or is there another way to bring the dependencies from
a repository that I need for my product build?

Thanks!

Gabriel

On Thu, Apr 15, 2010 at 1:33 PM, Gabriel Petrovay
<gabipetrovay@xxxxxxxxx> wrote:
> 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
>



-- 
MSc Gabriel Petrovay
Mobile: +41(0)787978034
www.28msec.com


Back to the top