Bug 101840 - Composed path names wrongly interpretted
Summary: Composed path names wrongly interpretted
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-06-27 05:25 EDT by philipp suter CLA
Modified: 2009-08-30 02:08 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 philipp suter CLA 2005-06-27 05:25:37 EDT
I have two properties in the ant file 
<property name="ROOT" value="c:"/>
and
<property name="SINDBAD_LIB" value="${ROOT}/project/include"/>
which produces the following error:
"Unbound classpath container: 'C:project/include/gate30/jar' in project sindbad"
obviously a slash was deleted, which is quite important to find anything.
I have imported the ant file with "Build project from ant file".
Cheers and thanks for the other fantastic work.
Comment 1 Darin Swanson CLA 2005-06-27 11:45:54 EDT
Thanks for the bug report.
Can you provide the original build file used for import?
Comment 2 philipp suter CLA 2005-06-27 12:29:20 EDT
The problem is not the interpretation of the class path but the created
.classpath file. if I import e.g. nutch it creates those lines:

<classpathentry kind="lib" path="C:/project/include/nutch05/concurrent-1.3.4.jar"/>
<classpathentry kind="lib" path="C:/project/include/nutch05/nutch-0.5.jar"/>
<classpathentry kind="lib" path="C:/project/include/nutch05/dom4j-1.4.jar"/>
<classpathentry kind="lib" path="C:/project/include/nutch05/jaf-1.0.2.jar"/>
<classpathentry kind="lib" path="C:/project/include/nutch05/jakarta-oro-2.0.7.jar"/>
<classpathentry kind="lib" path="C:/project/include/nutch05/taglibs-i18n.jar"/>
<classpathentry kind="lib" path="C:/project/include/nutch05/xerces-2_6_2.jar"/>
<classpathentry kind="lib" path="C:/project/include/nutch05/xerces-2_6_2-apis.jar"/>
<classpathentry kind="lib" path="C:/project/include/nutch05"/>

the last line creates the error as it is obviously unnecessary.
Comment 3 Darin Swanson CLA 2005-06-27 12:34:10 EDT
Can you also indicate the Eclipse build Id you are using:
Help>About Eclipse SDK>Build id
Comment 4 philipp suter CLA 2005-06-27 13:22:13 EDT
Build id: I20050617-1618

What I just realised, if I remove it from the classpath, which lets the library
dissapear from the .project and re-add it:

<classpathentry kind="con" path="C:/project/include/gate30/jar"/>

the error is gone. I don't know if the kind="con" was always there, my original
post is not a direct copy of the .classpath, the last line was added by hand!!
Comment 5 philipp suter CLA 2005-06-28 10:18:28 EDT
The last comment is not entirely true, the error re-appears after a few other
changes in the project. The same behaviour happened initially when I did not
know what the error means. Some changes let the error disappear but at a later
stage it   was back. Mostly when the ant file was savedv but not exlusively. I
could not find any behaviour pattern provocking the error to be there or not. It
only disappears when folders are excluded from the classpath, which impedes
including un-jared or un-zipped classes.
Comment 6 Darin Swanson CLA 2006-03-29 20:31:00 EST
Still looking for a reproducealbe test case.

A buildfile that when imported creates the problem would be great.
Comment 7 Denis Roy CLA 2009-08-30 02:08:55 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.