-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
カスタムクラスローダーLoaderがURLClassLoaderを継承するように変更し、Loaderが外部ライブラリ(JAR)からのクラスロードも担当するように変更しました。 従来はLoaderはEXE内リソースからのクラスロードのみを担当し、外部ライブラリ(JAR)からのクラスロードは親クラスローダー(AppClassLoader)に任せていました。 クラスローダーがLoaderとAppClassLoaderの2つに分かれていると意図しない動作をするケースがあるための対処です。 たとえば、logbackはlogbackのクラスをロードしたクラスローダーからしか設定ファイルlogback.xmlリソースを検索しません。 このようなケースでlogbackのクラスがAppClassLoaderの担当する外部ライブラリ(JAR)からロードされ、設定ファイルlogback.xmlがLoaderの担当するEXE内リソースに存在すると logbackのクラスが設定ファイルlogback.xmlを見つけることができませんでした。 今回の対処により外部ライブラリ(JAR)からのlogbackクラスもLoaderによってロードされるようになり、Loader担当のEXE内リソースlogback.xmlを見つけられるようになります。 git-svn-id: http://svn.osdn.net/svnroot/exewrap/exewrap/trunk/exewrap@90 d83a06de-854e-4732-85b7-fdf7162022b6
- Loading branch information
hirukawa_ryo
committed
Jul 12, 2020
1 parent
629add4
commit 1d9d88c
Showing
5 changed files
with
62 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters