File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed
Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 165165 </distributionManagement >
166166
167167 <build >
168+ <resources >
169+ <resource >
170+ <directory >src/main/resources</directory >
171+ <filtering >true</filtering >
172+ <includes >
173+ <include >**/*.properties</include >
174+ </includes >
175+ </resource >
176+ <resource >
177+ <directory >src/main/resources</directory >
178+ <filtering >false</filtering >
179+ <excludes >
180+ <exclude >**/*.properties</exclude >
181+ </excludes >
182+ </resource >
183+ </resources >
168184 <plugins >
169185 <plugin >
170186 <groupId >org.apache.maven.plugins</groupId >
251267 <configuration >
252268 <includes >
253269 <include >smoke</include >
254- <!-- <include>set-datepicker</include>-->
255270 </includes >
256271 <excludes >
257272 <exclude >not-ready</exclude >
Original file line number Diff line number Diff line change 3838import org .robotframework .javalib .annotation .Autowired ;
3939import org .robotframework .javalib .library .AnnotationLibrary ;
4040import org .robotframework .remoteserver .RemoteServer ;
41- import org .testfx .util .WaitForAsyncUtils ;
4241
4342import javax .script .ScriptEngine ;
4443import javax .script .ScriptEngineManager ;
4544import javax .script .ScriptException ;
4645import static javafxlibrary .utils .HelperFunctions .*;
4746import static org .testfx .util .WaitForAsyncUtils .waitFor ;
47+ import java .util .ResourceBundle ;
4848
4949public class JavaFXLibrary extends AnnotationLibrary {
5050
@@ -78,6 +78,15 @@ public JavaFXLibrary(boolean headless) {
7878 }
7979 }
8080
81+ public static String loadRobotLibraryVersion () {
82+ try {
83+ return ResourceBundle .getBundle (JavaFXLibrary .class .getCanonicalName ().replace ("." , File .separator ))
84+ .getString ("version" );
85+ } catch (RuntimeException e ) {
86+ return "unknown" ;
87+ }
88+ }
89+
8190 @ Autowired
8291 protected RunOnFailure runOnFailure ;
8392
@@ -213,3 +222,4 @@ public static void main(String[] args) throws Exception {
213222 }
214223 }
215224}
225+
Original file line number Diff line number Diff line change 1+ version =${project.version}
You can’t perform that action at this time.
0 commit comments