Skip to content

Commit 80656fa

Browse files
committed
ADAP-78: added example for setting fallback version
1 parent 9b5dbf7 commit 80656fa

File tree

4 files changed

+88
-29
lines changed

4 files changed

+88
-29
lines changed

RELEASENOTES-ADAPTER.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
* Improved support for window embedding
3939
* Replaced WebSocket library with org.eclipse.jetty.websocket
4040

41+
# Version 5.44.5.1
42+
## New Features
43+
* Branch from Version 6.0.1.1 to support Java 1.6
44+
4145
# Version 5.44.3.6
4246

4347
* Fixed an issue with loop of re-connecting to Runtime

pom.xml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<dependency>
5959
<groupId>co.openfin</groupId>
6060
<artifactId>openfin-desktop-java-adapter</artifactId>
61-
<version>6.0.1.1-SNAPSHOT</version>
61+
<version>5.44.5.2</version>
6262
</dependency>
6363
<dependency>
6464
<groupId>co.openfin</groupId>
@@ -93,7 +93,7 @@
9393
<dependency>
9494
<groupId>org.slf4j</groupId>
9595
<artifactId>slf4j-api</artifactId>
96-
<version>1.7.5</version>
96+
<version>1.7.21</version>
9797
</dependency>
9898
<dependency>
9999
<groupId>org.slf4j</groupId>
@@ -135,6 +135,10 @@
135135
<configuration>
136136
<archive>
137137
<manifestFile>${basedir}/target/classes/META-INF/MANIFEST.MF</manifestFile>
138+
<manifest>
139+
<addClasspath>true</addClasspath>
140+
<mainClass>com.openfin.desktop.demo.OpenFinDesktopDemo</mainClass>
141+
</manifest>
138142
</archive>
139143
</configuration>
140144
<executions>
@@ -146,6 +150,25 @@
146150
</executions>
147151
</plugin>
148152

153+
<plugin>
154+
<groupId>org.apache.maven.plugins</groupId>
155+
<artifactId>maven-dependency-plugin</artifactId>
156+
<executions>
157+
<execution>
158+
<id>copy</id>
159+
<phase>install</phase>
160+
<goals>
161+
<goal>copy-dependencies</goal>
162+
</goals>
163+
<configuration>
164+
<outputDirectory>
165+
${project.build.directory}/
166+
</outputDirectory>
167+
</configuration>
168+
</execution>
169+
</executions>
170+
</plugin>
171+
149172
<!-- To run all tests: -->
150173
<!-- mvn -DskipTests=false -Dtest=AllTests test -->
151174
<plugin>

src/main/java/com/openfin/desktop/demo/OpenFinDesktopDemo.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ private void initDesktopConnection() throws DesktopException {
124124
desktopVersion = "stable";
125125
}
126126
this.runtimeConfiguration.setRuntimeVersion(desktopVersion);
127+
128+
String fallBackVersion = java.lang.System.getProperty("com.openfin.demo.fallBackVersion");
129+
if (fallBackVersion != null) {
130+
this.runtimeConfiguration.setRuntimeFallbackVersion(fallBackVersion);
131+
}
127132
String rvmArgs = java.lang.System.getProperty("com.openfin.demo.rvm.arguments");
128133
if (rvmArgs != null) {
129134
updateMessagePanel("Additional RVM arguments: " + rvmArgs);
@@ -522,7 +527,7 @@ public void onOutgoingMessage(String message) {
522527
desktopConnection.connect(listener);
523528
} else {
524529
updateMessagePanel("Connecting to version " + this.runtimeConfiguration.getRuntimeVersion());
525-
desktopConnection.connect(this.runtimeConfiguration, listener, 10000);
530+
desktopConnection.connect(this.runtimeConfiguration, listener, 10);
526531
}
527532
} catch (Exception ex) {
528533
ex.printStackTrace();

src/main/java/com/openfin/desktop/demo/PubSubTest.java

Lines changed: 53 additions & 26 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)