Platform-specific icons/images are not created

Issue #21 new
Scott Palmer
created an issue

Put icons in src\deploy\package. I have: setup-128.png shortcut-256.png shortcut-64.png shortcut-128.png shortcut-32.png volume-256.png

gradle jfxDeploy

:MyApp:processResources :MyApp:cssToBin :MyApp:classes :MyApp:jar :MyApp:jfxJar :MyApp:jfxSignJar SKIPPED :MyApp:jfxCopyLibs :MyApp:compilePackageJava UP-TO-DATE :MyApp:processPackageResources :MyApp:packageClasses :MyApp:jfxDeploy FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':MyApp:jfxDeploy'.

    java.io.FileNotFoundException: C:\dev\MyApp\build\resources\package\windows\MyApp-setup-icon.bmp (The system cannot find the path specified)

Comments (5)

  1. Scott Palmer reporter

    Turned on debug and noticed some issues. I shouldn't need to turn on --debug to see the real reason for the failure. Shortcut icons were "rejected from Windows bundling because it is not square" - that's a bug IMO. Make them square by centering them in a transparent square image. Maybe issue a warning mesage. But there was no complaint about the "setup" image during processing.

    <pre> 09:36:02.926 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :MyApp:jfxDeploy 09:36:02.926 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':MyApp:jfxDeploy' 09:36:02.935 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':MyApp:jfxDeploy' is up-to-date 09:36:02.955 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':MyApp:jfxDeploy' (up-to-date check took 0.016 secs) due to: Output file C:\dev\MyApp\build\distributions has changed. Output file C:\dev\MyApp\build\distributions\bundles\MyApp\runtime\jre\lib\zi\Pacific\Kosrae has been removed. Output file C:\dev\MyApp\build\distributions\bundles\MyApp\runtime\jre\lib\zi\America\Indiana\Marengo has been removed. 09:36:02.964 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':MyApp:jfxDeploy'. 09:36:03.006 [INFO] [org.gradle.api.Task] Java runtime to be bundled: the runtime executing the Gradle build 09:36:03.077 [INFO] [org.gradle.api.Task] Icon shortcut-128.png for shortcut rejected from Windows bundling because it is not square: 128 x 61. 09:36:03.093 [INFO] [org.gradle.api.Task] Icon shortcut-256.png for shortcut rejected from Windows bundling because it is not square: 256 x 121. 09:36:03.099 [INFO] [org.gradle.api.Task] Icon shortcut-32.png for shortcut rejected from Windows bundling because it is not square: 32 x 16. 09:36:03.105 [INFO] [org.gradle.api.Task] Icon shortcut-64.png for shortcut rejected from Windows bundling because it is not square: 64 x 31. 09:36:03.137 [DEBUG] [sun.awt.windows.WToolkit] Win version: 0x1db10106 = 498139398 (Windows Vista) 09:36:03.176 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':MyApp:jfxDeploy' 09:36:03.181 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :MyApp:jfxDeploy FAILED 09:36:03.188 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :MyApp:jfxDeploy (Thread[main,5,main]) completed. Took 0.262 secs. 09:36:03.193 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 14.387 secs, idle: 0.105 secs 09:36:03.200 [ERROR] [org.gradle.BuildExceptionReporter] 09:36:03.204 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception. 09:36:03.210 [ERROR] [org.gradle.BuildExceptionReporter] 09:36:03.214 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: 09:36:03.218 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':MyApp:jfxDeploy'. 09:36:03.222 [ERROR] [org.gradle.BuildExceptionReporter] > java.io.FileNotFoundException: C:\dev\MyApp\build\resources\package\windows\MyApp-setup-icon.bmp (The system cannot find the path specified) </pre>

  2. Log in to comment