You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Experimental java agent support
JavaFXLibrary can now be attached to process as java agent.
* Fix docker-compose up
Building the docker demo failed because of missing package versions for
the newer Ubuntu image. Base image of the demo is now fixed to bionic
tag since Ubuntu updates have broken the build earlier as well.
Related Launchpad ticket:
https://bugs.launchpad.net/ubuntu/+source/openjfx/+bug/1799946
* Updated documentation (java agent)
* Add possibility to configure different directory for log.html in Set Screenshotdir, fixes#17
* java agent documentation fix
* Set Classpath failure as warnings and add failIfNotFound argument
* Use asyncFx for helperfunctions methods, remove waitForFxEvents usage, failure printout improvements
* remove deprecated keywords and methods (enhancement #11)
Co-authored-by: Turo Soisenniemi <[email protected]>
Co-authored-by: Pasi Saikkonen <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ Executing _test.sh_ runs the acceptance suite twice: first using JavaFXLibrary a
75
75
If you want the suite to run only once, you can define which type of library to use by including **local** or **remote** as an argument. For example command `test.sh remote` will execute the suite only in remote mode.
76
76
77
77
## Experimental: Headless support
78
-
Library supports headless operation utilizing [Monocle](https://wiki.openjdk.java.net/display/OpenJFX/Monocle). The support for this is still at experimental level.
78
+
Library supports headless operation utilizing [Monocle](https://wiki.openjdk.java.net/display/OpenJFX/Monocle). The support for this is still at experimental level.
79
79
80
80
### Main issues with headless function
81
81
* Scrolling doesn't work same way as with screen
@@ -97,4 +97,7 @@ Remote:
97
97
```
98
98
*** Settings ***
99
99
Library Remote http://127.0.0.1:8270 ${True} WITH NAME JavaFXLibrary
100
-
```
100
+
```
101
+
102
+
## Experimental: Java agent support
103
+
Library can be used as java agent. Launch application with `-javaagent:/path/to/javafxlibrary-<version>.jar`. Default port is 8270 and can be changed with adding `=<port>` to java agent command. Only remote library is supported. Using launch keyword is still required but instead of starting new application keyword initializes Stage for library.
for (Filefile : Objects.requireNonNull(fileList)) {
139
-
if (file.getName().endsWith(".jar")) {
140
-
jarsFound = true;
141
-
_addPathToClassPath(file.getAbsolutePath());
142
-
}
143
-
}
144
-
if(!jarsFound) thrownewJavaFXLibraryNonFatalException("No jar files found from classpath: " + FileSystems.getDefault().getPath(path).normalize().toAbsolutePath().toString());
0 commit comments