Bug 533347 - Regression: Ant <javac> classpath entries outside project directory are ignored
Summary: Regression: Ant <javac> classpath entries outside project directory are ignored
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 4.7.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: regression
Depends on:
Blocks:
 
Reported: 2018-04-08 00:47 EDT by Damjan Jovanovic CLA
Modified: 2020-08-15 15:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damjan Jovanovic CLA 2018-04-08 00:47:03 EDT
Importing an Ant project whose <javac> classpath refers to JARs outside the project's directory, causing those JARs to get silently left out.

For example when opening this simple Ant project file using "File" -> "Open Project from File System" in Eclipse:

<project name="testant" default="compile">
    <path id="main.classpath">
        <pathelement location="lib/unoil.jar"/>
        <pathelement location="/tmp/ridl.jar"/>
    </path>

    <target name="compile">
        <mkdir dir="build"/>
        <javac srcdir="src"
               destdir="build"
               classpathref="main.classpath"
               includeantruntime="false"/>
    </target>
</project>

the resulting Eclipse project's "References Libraries" only has unoil.jar under it, it doesn't have ridl.jar. No warnings about this are given.

This is a regression from an earlier version of Eclipse (probably Mars or thereabout), where this was working. The bug is reproducible on at least 4.7.3 and 4.6.
Comment 1 Sarika Sinha CLA 2018-04-09 01:18:45 EDT
Which java version are you using - 8 or 9?
Comment 2 Damjan Jovanovic CLA 2018-04-09 03:24:26 EDT
(In reply to Sarika Sinha from comment #1)
> Which java version are you using - 8 or 9?

7 or 8.
Comment 3 Eclipse Genie CLA 2020-08-15 15:26:42 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.