Bug 58531 - Dependent Class load broken for Java
Summary: Dependent Class load broken for Java
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-24 01:06 UTC by Tom Saul
Modified: 2015-10-24 01:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Saul 2015-10-24 01:06:11 UTC
The issue occurs in a 'master' build script, that in turn invokes a number of sub-builds using the ant task.  Assuming we have the following
1) Lib X - a common Java class library (JAR) used by the others
2) App A - a Java class library that uses Lib X, built using its own build script.  Dependency on Lib X is explicitly included.
3) App B - a Java class library that uses Lib X, built using its own build script. Dependency on Lib X was missed.
4) Master Build script

If the Master build script calls the Ant task for App A then App B all works as expected.  If the order is reversed (or if App B build is done directly) the build fails because the Lib X class is not found in the load path.

The implication is that the class path for the build of App A is influencing the build for App B, even though they don't really have anything in common other than being called from the master script.