Bug 40594 - wrong location set for org.apache.ant when building jdt component with baseLocation
Summary: wrong location set for org.apache.ant when building jdt component with baseLo...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.0 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-22 10:30 EDT by Sonia Dimitrov CLA
Modified: 2003-08-28 04:51 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sonia Dimitrov CLA 2003-07-22 10:30:13 EDT
When using org.eclipse.releng.eclipsebuilder to build the jdt component 
against a prebuilt platform component via a baseLocation setting, the 
classpath entry for org.apache.ant is not set correctly.
  ie.  the build.xml for org.eclipse.jdt.core contains the following:

- <target name="jdtcore.jar" depends="init" unless="jdtcore.jar" 
description="Create jar: jdtcore.jar.">
  <delete dir="${temp.folder}/jdtcore.jar.bin" /> 
  <mkdir dir="${temp.folder}/jdtcore.jar.bin" /> 
- <!--  compile the source code 
  --> 
- <javac destdir="${temp.folder}/jdtcore.jar.bin" 
failonerror="${javacFailOnError}" verbose="${javacVerbose}" 
debug="${javacDebugInfo}" includeAntRuntime="no" 
bootclasspath="${bootclasspath}" 
classpath="../../../t1/plugins/org.eclipse.core.boot/boot.jar;../org.apache.ant
/ant.jar;../../../t1/plugins/org.eclipse.core.runtime/runtime.jar;../../../t1/p
lugins/org.apache.xerces/xmlParserAPIs.jar;../../../t1/plugins/org.apache.xerce
s/xercesImpl.jar;../../../t1/plugins/org.eclipse.core.resources/resources.jar;.
./../../t1/plugins/org.eclipse.core.resources.macosx/resources.jar;../../../t1/
plugins/org.eclipse.core.resources.linux/resources.jar;../../../t1/plugins/org.
eclipse.core.resources.win32/resources.jar;../../../t1/plugins/org.eclipse.core
.resources.qnx/resources.jar;../../../t1/plugins/org.eclipse.ant.core/antsuppor
t.jar;../../../t1/plugins/org.eclipse.team.core/team.jar" 
source="${javacSource}" target="${javacTarget}">
  <src path="batch/" /> 
  <src path="codeassist/" /> 
  <src path="compiler/" /> 
  <src path="eval/" /> 
  <src path="formatter/" /> 
  <src path="dom/" /> 
  <src path="model/" /> 
  <src path="search/" /> 
  </javac>

"../org.apache.ant/ant.jar" should 
be ";../../../t1/plugins/org.apache.ant/ant.jar" in the classpath.
Comment 1 Pascal Rapicault CLA 2003-07-23 15:17:57 EDT
The location for ant is wrong because the specification of its location is 
wrong in the build.properties.

The jars.extra.classpath entries are used as is in the classpath. 
If the jars that are being refered are part of plugins people must use platform 
urls.

So in the case of jdt.core the entry should say:
  jars.extra.classpath=platform:/plugin/org.apache.ant/ant.jar
Comment 2 Sonia Dimitrov CLA 2003-07-24 13:54:40 EDT
reassign but to JDT Core.
Comment 3 Sonia Dimitrov CLA 2003-07-24 13:56:50 EDT
Verified that the change suggested by Pascal works.
Comment 4 Philipe Mulet CLA 2003-07-25 05:39:13 EDT
Change integrated.
Comment 5 Philipe Mulet CLA 2003-07-25 05:39:26 EDT
Fixed
Comment 6 David Audel CLA 2003-08-28 04:51:17 EDT
Verified.