Skip to content

Commit 40ee40b

Browse files
committed
Update Packager.java
1 parent 131cae2 commit 40ee40b

File tree

1 file changed

+6
-10
lines changed
  • src/main/java/io/github/fvarrui/javapackager/packagers

1 file changed

+6
-10
lines changed

src/main/java/io/github/fvarrui/javapackager/packagers/Packager.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ protected String getLicenseName() {
487487
* Copies all dependencies to app folder
488488
*
489489
* @param libsFolder folder containing all dependencies
490-
* @throws MojoExecutionException
490+
* @throws MojoExecutionException Process failed
491491
*/
492492
protected void copyAllDependencies(File libsFolder) throws MojoExecutionException {
493493
if (!copyDependencies) return;
@@ -545,11 +545,7 @@ protected void copyAdditionalResources(List<File> resources, File destination) {
545545

546546
/**
547547
* Bundle a Java Runtime Enrironment with the app.
548-
*
549-
* Next link explains the process:
550-
* {@link https://medium.com/azulsystems/using-jlink-to-build-java-runtimes-for-non-modular-applications-9568c5e70ef4}
551-
*
552-
* @throws MojoExecutionException
548+
* @throws MojoExecutionException Process failed
553549
*/
554550
protected void bundleJre(File destinationFolder, File jarFile, File libsFolder, File specificJreFolder, boolean customizedJre, List<String> defaultModules, List<String> additionalModules, Platform platform) throws MojoExecutionException {
555551
if (!bundleJre) {
@@ -630,7 +626,7 @@ protected void bundleJre(File destinationFolder, File jarFile, File libsFolder,
630626
/**
631627
* Creates a runnable jar file from sources
632628
*
633-
* @throws MojoExecutionException
629+
* @throws MojoExecutionException Process failed
634630
*/
635631
protected File createRunnableJar(String name, String version, String mainClass, File outputDirectory) throws MojoExecutionException {
636632
Logger.infoIndent("Creating runnable JAR...");
@@ -674,7 +670,7 @@ protected File createRunnableJar(String name, String version, String mainClass,
674670
* @param defaultModules Additional files and folders to include in the bundled app.
675671
* @param additionalModules Defines modules to customize the bundled JRE. Don't use jdeps to get module dependencies.
676672
* @return strign containing a comma separated list with all needed modules
677-
* @throws MojoExecutionException
673+
* @throws MojoExecutionException Process failed
678674
*/
679675
protected String getRequiredModules(File libsFolder, boolean customizedJre, File jarFile, List<String> defaultModules, List<String> additionalModules) throws MojoExecutionException {
680676

@@ -806,7 +802,7 @@ protected File resolveLicense(File licenseFile, List<License> licenses) {
806802
* Locates assets or default icon file if the specified one doesn't exist or
807803
* isn't specified
808804
*
809-
* @throws MojoExecutionException
805+
* @throws MojoExecutionException Process failed
810806
*/
811807
protected File resolveIcon(File iconFile, String name, File assetsFolder) throws MojoExecutionException {
812808

@@ -830,7 +826,7 @@ protected File resolveIcon(File iconFile, String name, File assetsFolder) throws
830826
/**
831827
* Bundling app folder in tarball and/or zipball
832828
* @param appFolder Folder to be bundled
833-
* @throws MojoExecutionException
829+
* @throws MojoExecutionException Process failed
834830
*/
835831
public void createBundles() throws MojoExecutionException {
836832
if (!createTarball && !createZipball) return;

0 commit comments

Comments
 (0)