Navigation Menu

Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

SWARM-990: Sub Module classes not in right location #302

Merged
merged 1 commit into from Jan 17, 2017
Merged

SWARM-990: Sub Module classes not in right location #302

merged 1 commit into from Jan 17, 2017

Conversation

kenfinnigan
Copy link
Member

  • Have you followed the guidelines in our Contributing document?
  • Have you created a JIRA and used it in the commit message?
  • Have you checked to ensure there aren't other open Pull Requests for the same issue?
  • Have you built the project locally prior to submission with mvn clean install?

Motivation

RuntimeDeployer assumes all paths that are dependencies are JAR files as it calls depContainer.addAsLibrary() for them.

However, sometimes the dependency path points to the /classes directory of another module. This is especially true when running from the IDE and it has auto added sub modules as a project dependency and not an artifact one.

Modifications

Get smarter about whether we're dealing with an actual library or a path to compiled classes, and handle them appropriately.

Result

Fixes problem of /classes not being added correctly for a sub module when running in the IDE.

Motivation
----------
RuntimeDeployer assumes all paths that are dependencies are JAR files as it calls `depContainer.addAsLibrary()` for them.

However, sometimes the dependency path points to the /classes directory of another module. This is especially true when running from the IDE and it has auto added sub modules as a project dependency and not an artifact one.

Modifications
-------------
Get smarter about whether we're dealing with an actual library or a path to compiled classes, and handle them appropriately.

Result
------
Fixes problem of /classes not being added correctly for a sub module when running in the IDE.
@kenfinnigan kenfinnigan merged commit c1e09e4 into thorntail:master Jan 17, 2017
@kenfinnigan kenfinnigan deleted the SWARM-990 branch January 17, 2017 18:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants