Skip to content

Commit 4048b7f

Browse files
committed
Allow config of binding to dependency
1 parent 6e556e8 commit 4048b7f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/github/maven_nar/NarCompileMojo.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,9 @@ private void createLibrary(final Project antProject, final Library library)
371371

372372
// FIXME no handling of "local"
373373

374-
// FIXME, no way to override this at this stage
375-
final String binding = dependency.getNarInfo().getBinding(getAOL(), Library.NONE);
374+
String binding = getBinding(library, dependency);
375+
if (binding == null)
376+
binding = dependency.getNarInfo().getBinding(getAOL(), Library.NONE);
376377
getLog().debug("Using Binding: " + binding);
377378
AOL aol = getAOL();
378379
aol = dependency.getNarInfo().getAOL(getAOL());

0 commit comments

Comments
 (0)