<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>I have tried all invocations of jlink with --exclude-files and failed to make it exclude anything at all.</div><div><br></div><div>I was hoping to exclude SunRsaSign.class from the java.base jmod if at all possible:</div><div><br></div><div><div>rm -rf /tmp/myjre</div><div>jlink --output /tmp/myjre --exclude-files='glob:/java.base/**/SunRsaSign.class' --add-modules java.base</div><div>jimage list /tmp/myjre/lib/modules | grep SunRsaSign.class</div><div>    sun/security/rsa/SunRsaSign.class</div></div><div><br></div><div>But trying any other patterns to exclude anything else, seems to have no effect and everything is always included.</div><div><br></div><div>If I want to really exclude a class, do I need to rebuild the jmod first too?</div><div><br></div><div>Is there any working example of --exclude-files which shows invocation without it preserving a given file in the resulting modules?</div><div><br></div><div>Did I completely misunderstand the feature and --exclude-files is only to exclude other toplevel files in the output jre directory, and cannot affect what ends up in the /modules file (partial jmod inclusion)?</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Regards,<br><br>Dimitri.</div></div>
</div></div>