Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » P2 dev » Running P2 Ant tasks outside Eclipse(Stuck with " Check that any custom tasks/types have been declared" Ant error)
icon5.gif  Running P2 Ant tasks outside Eclipse [message #516628] Wed, 24 February 2010 15:47 Go to next message
Anthony Dahanne is currently offline Anthony DahanneFriend
Messages: 2
Registered: February 2010
Junior Member
Hi everyone !
I got ant script running fine inside Eclipse
Here is a piece of it :
<p2.composite.repository failOnExists="true">
			<repository location="file:/${basedir}/compRepo" name="Repository description goes here" />
			<add>
				<repository location="http://url/Eclipse/repo/Galileo-3.5.1/" />
				<repository location="http://another-url/Java/repo/4.0/" />
				<repository location="${diag.location}" />
			</add>
		</p2.composite.repository>

But I would like Hudson CI server to be able to run it, but, no matter all the jars I put in ANT_HOME/lib I can't get this task to run in a simple command line ant...
I got stuck with this error :
C:\workspaces\workspace\project\junit.script\createCompRepo.xml:10: Problem: failed to create task or type p2.composite.repository
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.


Where are defined the p2 ant tasks ? Is there a way to run them outside Eclipse ?
Thank you very much for you help !
Anthony
Re: Running P2 Ant tasks outside Eclipse [message #517026 is a reply to message #516628] Thu, 25 February 2010 19:22 Go to previous message
Anthony Dahanne is currently offline Anthony DahanneFriend
Messages: 2
Registered: February 2010
Junior Member
Hello, the solution is described there :
http://stackoverflow.com/questions/2327393/running-p2-ant-ta sks-outside-eclipse
Anthony
Previous Topic:IInstallableUnits contained in a Profile do not seem to carry over IRequiredCapabilities
Next Topic:Check for min Java Execution Environment prior to Update
Goto Forum:
  


Current Time: Thu Dec 18 21:18:30 GMT 2014

Powered by FUDForum. Page generated in 0.01636 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software