Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit a8b5392

Browse files
committed
RW-628: Updated library for Java 6 compatibility.
1 parent 3565c73 commit a8b5392

7 files changed

Lines changed: 22 additions & 15 deletions

File tree

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
apply plugin: 'java'
22

3+
sourceCompatibility = "1.6"
4+
targetCompatibility = "1.6"
5+
36
repositories {
47
mavenCentral()
58
}
@@ -19,11 +22,11 @@ dependencies {
1922

2023
jar {
2124
baseName = 'jDeployR'
22-
version = '7.3.0'
25+
version = '7.4.0'
2326
}
2427

2528
javadoc {
26-
title = "DeployR 7.3.0 Java Client Library"
29+
title = "DeployR Java Client Library"
2730
options.overview = "src/main/java/overview.html"
2831
exclude "com/revo/deployr/client/core/**/*.java"
2932
exclude "com/revo/deployr/client/call/**/*.java"

examples/awt/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
apply plugin: 'java'
22
apply plugin: 'application'
33

4+
sourceCompatibility = "1.6"
5+
targetCompatibility = "1.6"
6+
47
mainClassName = 'com.revo.deployr.example.SimpleConsole'
58

6-
applicationDefaultJvmArgs = ["-Dendpoint=http://localhost:7300/deployr",
9+
applicationDefaultJvmArgs = ["-Dendpoint=http://localhost:7400/deployr",
710
"-Dusername=testuser",
811
"-Dpassword=changeme"]
912

@@ -27,7 +30,7 @@ dependencies {
2730

2831
jar {
2932
baseName = 'deployr-example'
30-
version = '7.3.0'
33+
version = '7.4.0'
3134
}
3235

3336
task wrapper(type: Wrapper) {

examples/tutorial/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
apply plugin: 'java'
22
apply plugin: 'application'
33

4-
applicationDefaultJvmArgs = ["-Dendpoint=http://localhost:7300/deployr",
4+
sourceCompatibility = "1.6"
5+
targetCompatibility = "1.6"
6+
7+
applicationDefaultJvmArgs = ["-Dendpoint=http://localhost:7400/deployr",
58
"-Dusername=testuser",
69
"-Dpassword=changeme"]
710

@@ -25,7 +28,7 @@ dependencies {
2528

2629
jar {
2730
baseName = 'client-tutorial'
28-
version = '7.3.0'
31+
version = '7.4.0'
2932
}
3033

3134
task execute(type: JavaExec) {

src/main/java/com/revo/deployr/client/call/AbstractCall.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,7 @@ protected RCoreResult makeRequest(HttpUriRequest httpUriRequest, String API) {
173173

174174
pResult = new RCoreResultImpl();
175175

176-
try {
177-
pResult.parseMarkup(markup, API, statusLine.getStatusCode(), statusLine.getReasonPhrase());
178-
} catch (Throwable tex) {
179-
log.warn("AbstractCall: makeRequest pResult.parseMarkup throwable=" + tex);
180-
throw tex;
181-
}
176+
pResult.parseMarkup(markup, API, statusLine.getStatusCode(), statusLine.getReasonPhrase());
182177

183178
} catch (UnsupportedEncodingException ueex) {
184179
log.warn("AbstractCall: makeRequest unsupported encoding exception=" + ueex);

src/main/java/com/revo/deployr/client/util/REntityUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static RProjectDetails getProjectDetails(Map project) {
5757
}
5858
Date modified = null;
5959
try {
60-
modified = new Date((long) project.get("lastmodified"));
60+
modified = new Date((Long) project.get("lastmodified"));
6161
} catch (Exception lex) {
6262
}
6363
List<String> authors = (List<String>) project.get("authors");

test/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
apply plugin: 'java'
22

3+
sourceCompatibility = "1.6"
4+
targetCompatibility = "1.6"
5+
36
repositories {
47
mavenCentral()
58
}
@@ -20,7 +23,7 @@ dependencies {
2023
}
2124

2225
test {
23-
systemProperty "url.property", "localhost:7300"
26+
systemProperty "url.property", "localhost:7400"
2427
}
2528

2629
task wrapper(type: Wrapper) {

test/src/test/java/com/revo/deployr/DeployrUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public class DeployrUtil {
3030

3131
public static final String SAMPLE_CODE = "demo(graphics); png('sampleArtifact.png'); plot(rnorm(10));";
32-
public static final String DEFAULT_PORT = "7300";
32+
public static final String DEFAULT_PORT = "7400";
3333
// Prefix used to denote file or object created for the
3434
// purpose of later loading from repository on preloadfile*
3535
// or on preloadobject* parameters.

0 commit comments

Comments
 (0)