Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-build-dev] Running Integration tests in PDE, unable to find the Ant Tasks

I've managed to create a PDE test plugin which:
* copies some pre-built plugins created from the eclipse wizards
* creates a generate.xml file with contents like:
<project default="generate" >
 <target name="generate" >
   <eclipse.buildScript
     baseLocation="D:\eclipse-3.2"
     buildDirectory="D:/ide/junit-workspace/integration-tests/it001"
     elements="plugin@xxxxxxxx.plugin"
   />
 </target>
</project>
* invokes AntRunner on the generate.xml file to create the PDE build.xml file.

With the aim to then use a known working version, say
(3.2.1r321_v20060823) and capture the output and use this to check
against the changes I am making.  So at the very least I can see that
these integration tests don't break PDE.


Now, this setup works fine when I run against the supplied Eclipse
plugin org.eclipse.pde.build (3.2.1r321_v20060823)

However when I attempt to run this against my workspace version I get
the following Ant error:
org.eclipse.core.runtime.CoreException:
D:\ide\junit-workspace\integration-tests\it001\generate.xml:8: Could
not create task or type of type: eclipse.buildScript.

I'm at a loss to work out what the differences are and why this is happening.

The workspace version has all the antTask extensions in plugin.xml,
has the lib/pdebuild-ant.jar defined in the build tab. The
lib/pdebuild-ant.jar doesn't appear to be in the workspace though,
when I export the plugin the zip file contains the jar correctly.
Maybe running as a Junit Plug-in Test isn't creating this file.  I
don't know how to tell.

Has anyone experienced this problem before and know what the solution is?

(In the mean time I'll try copying the lib/pdebuild-ant.jar from the
plugin archive into the workspace)

Thanks
Barrie


Back to the top