Skip to content

Commit b37b191

Browse files
committed
Ensure that .jar files include the correct sources
Now that we use a MiniMaven version that includes sources correctly, we might just as well ensure that it keeps doing so, even in future versions. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 793de89 commit b37b191

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/org/scijava/plugins/scripting/java/MakeJarTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public void testSingle() throws Exception {
5959
engine.makeJar(file, false, output, writer);
6060
assertJarEntries(output, "META-INF/MANIFEST.MF",
6161
"META-INF/maven/net.imagej/Dummy/pom.xml", "Dummy.class");
62+
engine.makeJar(file, true, output, writer);
63+
assertJarEntries(output, "META-INF/MANIFEST.MF",
64+
"META-INF/maven/net.imagej/Dummy/pom.xml", "Dummy.class",
65+
"pom.xml", "src/main/java/Dummy.java");
6266
}
6367

6468
private void assertJarEntries(File output, String... paths) throws IOException {

0 commit comments

Comments
 (0)