Skip to content

Commit fbe5951

Browse files
committed
#70 Jars of which modulename extraction cause an exception should end up on the classpath
1 parent 249f8bd commit fbe5951

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

plexus-java/src/main/java/org/codehaus/plexus/languages/java/jpms/LocationManager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ public String extract( Path path )
205205
catch ( Exception e )
206206
{
207207
result.getPathExceptions().put( t, e );
208+
209+
pathElements.put( t, null );
210+
208211
continue;
209212
}
210213

plexus-java/src/test/java/org/codehaus/plexus/languages/java/jpms/LocationManagerIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,6 @@ public void testClassicJarNameStartsWithNumber() throws Exception
132132
ResolvePathsResult<Path> result = locationManager.resolvePaths( request );
133133

134134
assertThat( result.getPathExceptions().size(), is( 1 ) );
135+
assertThat( result.getClasspathElements().size(), is(1) );
135136
}
136137
}

0 commit comments

Comments
 (0)