Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-releng] WTP Build error, Could not create task or type of type: eclipse.fetch

The issue is buildAll.xml triggers PDE build scripts. These use many of the internal ant tasks provided by the eclipse PDE. They have to be in the classpath and their plugins must be loaded. Ofcourse this is only possible when eclipse is running. That is why the cruise.xml is needed. It starts a headless eclipse to run the build scripts.


Hi Lawrence,

Thank you very much for replying my message.

At beginning, I tried to follow the document "WTP Builds" but ran into an error by doing "ant -f cruise.xml test". I investigated the problem and found a thread similar to my error in releng mail archive. The suggestion was to check the required tools listed in WTP Builds doc. I was trying to verify my tools as close as possible but still having problems. That was why I tried to run the buildAll.xml directly.

The followings are more details and stack traces I got by running "ant -debug -f cruise.xml". The complete output is attached and I apology if this is not desired. I simply hope that I am not missing any critical information for finding the problem here. The values for baseos, basearch, and basews are listed below and they seem okay.

...
Execute:Java13CommandLauncher: Executing 'E:\DevKits\Java\j2sdk1.4.2_08\jre\bin\java.exe' with arguments:
'-Dosgi.ws=win32'
'-Dosgi.os=win32'
'-Dosgi.arch=x86'
'-Dbasews=win32'
'-Dbaseos=win32'
'-Dbasearch=x86'
'-Dbuild.home=E:\WTP_Build'
'-DbuildType=N'
'-DjavacDebugInfo=on'
'-classpath'
'E:\WTP_Build\org.eclipse.releng.basebuilder\startup.jar'
'org.eclipse.core.launcher.Main'
'-application'
'org.eclipse.ant.core.antRunner'
'-buildfile'
'buildAll.xml'
'build'

The ' characters around the executable and arguments are not part of the command.

BUILD FAILED
E:\WTP_Build\releng.builder\scripts\cruise.xml:80: Java returned: 13
       at org.apache.tools.ant.taskdefs.Java.execute(Java.java:86)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
       at org.apache.tools.ant.Task.perform(Task.java:364)
       at org.apache.tools.ant.Target.execute(Target.java:341)
       at org.apache.tools.ant.Target.performTasks(Target.java:369)
       at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
       ...

Any idea about what could went wrong?

BTW, the followings are some basic env. setups.
   OS: windows xp
   java version "1.4.2_08"
   Apache Ant version 1.6.2 compiled on July 16 2004

Sorry for the long post and thank you again for your help,
Justin
Oracle

Lawrence Mandel wrote:


Hi Justin,

I had the same problem running the build from buildAll.xml. Using cruise.xml worked for me. What trouble are you having with cruise.xml? There are some properties you need to set, most notably baseos, basews, and basearch.

Lawrence Mandel

Software Developer
IBM Rational Software
Phone: 905 - 413 - 3814   Fax: 905 - 413 - 4920
lmandel@xxxxxxxxxx


*Yung-chang Chen <yung-chang.chen@xxxxxxxxxx>*
Sent by: wtp-releng-bounces@xxxxxxxxxxx

07/27/2005 04:13 PM
Please respond to
Webtools releng discussion list


To
    wtp-releng@xxxxxxxxxxx
cc
Subject [wtp-releng] WTP Build error, Could not create task or type of type: eclipse.fetch







Hi,

I have trouble running "ant -f cruise.xml" in the WTP Builds document. Instead, I am running the buildAll.xml directly.

The followings are the directory structure for building WTP.
  e:\tmp\wtp_build\  (base build directory)
  e:\tmp\wtp_build\org.eclipse.releng.basebuilder\
  e:\tmp\wtp_build\org.eclipse.releng.eclipsebuilder\
  e:\tmp\wtp_build\org.eclipse.wtp.releng\
  e:\tmp\wtp_build\releng\
  e:\tmp\wtp_build\releng.builder\

Then, do the followings.
  e:\tmp\wtp_build\releng.builder\scripts> ant -f buildAll.xml build

It seems miss dependency jar file(s) and have the following errors.
Just wondering if missing jar file(s) is the problem.  What are they and
where should I put them if that is the case.
If not the missing dependecny, what is the problem and how should I
resolve it?

BTW, the Ant version I am using is 1.6.2 and the system is windows XP.

Thank you very much,
Justin
Oracle

-----------------------
...
fetchElement:

BUILD FAILED
E:\WTP_Build\releng.builder\scripts\buildall.xml:203: The following
error occurred while executing this line:
E:\WTP_Build\releng.builder\scripts\build.xml:22: The following error
occurred while executing this line:
E:\WTP_Build\org.eclipse.releng.basebuilder\plugins\org.eclipse.pde.build_3.1.0\scripts\build.xml:22:
The following error occurred while executing this line:
E:\WTP_Build\org.eclipse.releng.basebuilder\plugins\org.eclipse.pde.build_3.1.0\scripts\build.xml:50:
The following error occurred while executing this line:
E:\WTP_Build\releng.builder\components\wst\customTargets.xml:13: The
following error occurred while executing this line:
E:\WTP_Build\org.eclipse.releng.basebuilder\plugins\org.eclipse.pde.build_3.1.0\scripts\genericTargets.xml:34:
Could not create task or type of type: eclipse.fetch.

Ant could not find the task or a class this task relies upon.

...
-----------------------


_______________________________________________
wtp-releng mailing list
wtp-releng@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-releng

------------------------------------------------------------------------

_______________________________________________
wtp-releng mailing list
wtp-releng@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-releng
------------------------------------------------------------------------

_______________________________________________
wtp-releng mailing list
wtp-releng@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-releng


--
Naci Dai,
eteration a.s. Inonu cad. Sumer sok. Zitas D1-15
Kozyatagi, Istanbul 34742
+90 (533) 580 2393 (cell)
+90 (216) 361 5434 (phone)
+90 (216) 361 2034 (fax)
http://www.eteration.com/
mailto:nacidai@xxxxxxx
mailto:naci@xxxxxxxxxxxxx



Back to the top