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 165
165
</distributionManagement >
166
166
167
167
<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 >
168
184
<plugins >
169
185
<plugin >
170
186
<groupId >org.apache.maven.plugins</groupId >
251
267
<configuration >
252
268
<includes >
253
269
<include >smoke</include >
254
- <!-- <include>set-datepicker</include>-->
255
270
</includes >
256
271
<excludes >
257
272
<exclude >not-ready</exclude >
Original file line number Diff line number Diff line change 38
38
import org .robotframework .javalib .annotation .Autowired ;
39
39
import org .robotframework .javalib .library .AnnotationLibrary ;
40
40
import org .robotframework .remoteserver .RemoteServer ;
41
- import org .testfx .util .WaitForAsyncUtils ;
42
41
43
42
import javax .script .ScriptEngine ;
44
43
import javax .script .ScriptEngineManager ;
45
44
import javax .script .ScriptException ;
46
45
import static javafxlibrary .utils .HelperFunctions .*;
47
46
import static org .testfx .util .WaitForAsyncUtils .waitFor ;
47
+ import java .util .ResourceBundle ;
48
48
49
49
public class JavaFXLibrary extends AnnotationLibrary {
50
50
@@ -78,6 +78,15 @@ public JavaFXLibrary(boolean headless) {
78
78
}
79
79
}
80
80
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
+
81
90
@ Autowired
82
91
protected RunOnFailure runOnFailure ;
83
92
@@ -213,3 +222,4 @@ public static void main(String[] args) throws Exception {
213
222
}
214
223
}
215
224
}
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