Skip to main content

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


Barrie,
The workspace is building the classfiles for that jar, they are in bin_ant, but because the lib/pdebuild-ant.jar is being loaded by the ant classloaders, the normal self hosting mechanism won't find the classfiles.  The pde.build project is not currently setup to build that jar during a normal workspace build.
I normally build the jar by right-clicking on the manifest.mf -> PDE Tools -> Create Ant Build File.  Then right-click on the generated build.xml file and Run As -> Ant Build.  That could probably be automated by adding an ant builder to the project.

-Andrew




"Barrie Treloar" <baerrach@xxxxxxxxx>
Sent by: pde-build-dev-bounces@xxxxxxxxxxx

03/08/2007 12:01 AM

Please respond to
"Eclipse PDE Build developers list." <pde-build-dev@xxxxxxxxxxx>

To
"Eclipse PDE Build developers list." <pde-build-dev@xxxxxxxxxxx>
cc
Subject
[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
_______________________________________________
pde-build-dev mailing list
pde-build-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-build-dev


Back to the top