CSS Image/Resource Path Broken If Built with Gradle
If I build my project with gradle it does use absolute paths for css image urls. Images cannot be found if deployed application runs on different user account. If built via NetBeans and Ant the problem does not occur.
- OS: Mac OS 10.8.3
- Java: 1.7.0u13
- NetBeans: 7.3
- Gradle: 1.6
I created a sample project to demonstrate the issue: https://www.dropbox.com/sh/0u5c81iqafmczq7/KrJGHNt5uT
It contains the gradle project and a NetBeans project as reference. The CSS file references images like so:
How to reproduce:
cd gradle-bugreport/JavaFXCSSBug01-gradle ./gradlew clean assemble
Now start the application. It should run as expected:
If the original resource location is moved the application will not show the styled button:
mv src src2
Now start the application. It should NOT run as expected:
The button image is missing.