mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-14 08:41:28 +00:00
Create third-party-license file in target directory, use plugin defaults to let it placed inside jar
This commit is contained in:
1
pom.xml
1
pom.xml
@@ -355,7 +355,6 @@
|
||||
</goals>
|
||||
<phase>generate-resources</phase>
|
||||
<configuration>
|
||||
<outputDirectory>${project.basedir}/src/main/resources/license</outputDirectory>
|
||||
<thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
|
||||
<includedScopes>compile</includedScopes>
|
||||
<excludedGroups>org\.cryptomator</excludedGroups>
|
||||
|
||||
@@ -29,10 +29,10 @@ public class AboutController implements FxController {
|
||||
}
|
||||
|
||||
private static String loadThirdPartyLicenseFile() {
|
||||
try (InputStream in = AboutController.class.getResourceAsStream("/license/THIRD-PARTY.txt")) {
|
||||
try (InputStream in = AboutController.class.getResourceAsStream("/THIRD-PARTY.txt")) {
|
||||
return CharStreams.toString(new InputStreamReader(in));
|
||||
} catch (IOException | NullPointerException e) {
|
||||
LOG.error("Failed to load /license/THIRD-PARTY.txt", e);
|
||||
LOG.error("Failed to load /THIRD-PARTY.txt", e);
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user