Skip to content

Commit

Permalink
RW-628: Updated library for Java 6 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-russell committed Feb 10, 2015
1 parent 3565c73 commit a8b5392
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 15 deletions.
7 changes: 5 additions & 2 deletions build.gradle
@@ -1,5 +1,8 @@
apply plugin: 'java'

sourceCompatibility = "1.6"
targetCompatibility = "1.6"

repositories {
mavenCentral()
}
Expand All @@ -19,11 +22,11 @@ dependencies {

jar {
baseName = 'jDeployR'
version = '7.3.0'
version = '7.4.0'
}

javadoc {
title = "DeployR 7.3.0 Java Client Library"
title = "DeployR Java Client Library"
options.overview = "src/main/java/overview.html"
exclude "com/revo/deployr/client/core/**/*.java"
exclude "com/revo/deployr/client/call/**/*.java"
Expand Down
7 changes: 5 additions & 2 deletions examples/awt/build.gradle
@@ -1,9 +1,12 @@
apply plugin: 'java'
apply plugin: 'application'

sourceCompatibility = "1.6"
targetCompatibility = "1.6"

mainClassName = 'com.revo.deployr.example.SimpleConsole'

applicationDefaultJvmArgs = ["-Dendpoint=http://localhost:7300/deployr",
applicationDefaultJvmArgs = ["-Dendpoint=http://localhost:7400/deployr",
"-Dusername=testuser",
"-Dpassword=changeme"]

Expand All @@ -27,7 +30,7 @@ dependencies {

jar {
baseName = 'deployr-example'
version = '7.3.0'
version = '7.4.0'
}

task wrapper(type: Wrapper) {
Expand Down
7 changes: 5 additions & 2 deletions examples/tutorial/build.gradle
@@ -1,7 +1,10 @@
apply plugin: 'java'
apply plugin: 'application'

applicationDefaultJvmArgs = ["-Dendpoint=http://localhost:7300/deployr",
sourceCompatibility = "1.6"
targetCompatibility = "1.6"

applicationDefaultJvmArgs = ["-Dendpoint=http://localhost:7400/deployr",
"-Dusername=testuser",
"-Dpassword=changeme"]

Expand All @@ -25,7 +28,7 @@ dependencies {

jar {
baseName = 'client-tutorial'
version = '7.3.0'
version = '7.4.0'
}

task execute(type: JavaExec) {
Expand Down
7 changes: 1 addition & 6 deletions src/main/java/com/revo/deployr/client/call/AbstractCall.java
Expand Up @@ -173,12 +173,7 @@ protected RCoreResult makeRequest(HttpUriRequest httpUriRequest, String API) {

pResult = new RCoreResultImpl();

try {
pResult.parseMarkup(markup, API, statusLine.getStatusCode(), statusLine.getReasonPhrase());
} catch (Throwable tex) {
log.warn("AbstractCall: makeRequest pResult.parseMarkup throwable=" + tex);
throw tex;
}
pResult.parseMarkup(markup, API, statusLine.getStatusCode(), statusLine.getReasonPhrase());

} catch (UnsupportedEncodingException ueex) {
log.warn("AbstractCall: makeRequest unsupported encoding exception=" + ueex);
Expand Down
Expand Up @@ -57,7 +57,7 @@ public static RProjectDetails getProjectDetails(Map project) {
}
Date modified = null;
try {
modified = new Date((long) project.get("lastmodified"));
modified = new Date((Long) project.get("lastmodified"));
} catch (Exception lex) {
}
List<String> authors = (List<String>) project.get("authors");
Expand Down
5 changes: 4 additions & 1 deletion test/build.gradle
@@ -1,5 +1,8 @@
apply plugin: 'java'

sourceCompatibility = "1.6"
targetCompatibility = "1.6"

repositories {
mavenCentral()
}
Expand All @@ -20,7 +23,7 @@ dependencies {
}

test {
systemProperty "url.property", "localhost:7300"
systemProperty "url.property", "localhost:7400"
}

task wrapper(type: Wrapper) {
Expand Down
2 changes: 1 addition & 1 deletion test/src/test/java/com/revo/deployr/DeployrUtil.java
Expand Up @@ -29,7 +29,7 @@
public class DeployrUtil {

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

0 comments on commit a8b5392

Please sign in to comment.