Skip to content

Commit

Permalink
Java 17 string usage and dependency fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
at88mph committed Jul 10, 2023
1 parent 269cd13 commit c60433d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions data/src/main/java/org/opencadc/alma/data/DataJobRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,16 @@ public void run() {
void throwUsageError() {
final String requestURI = this.job.getRequestPath();
throw new IllegalArgumentException(
String.format("\nUsage: \n"
+ "%s?file=[ABSOLUTE_FILE_PATH]\n"
+ "OR for a sub-region:\n"
+ "%s?file=[ABSOLUTE_FILE_PATH]&[SODA_PARAM]=[CUTOUT_SPEC]\n"
+ "OR for headers only:\n%s"
+ "?file=[ABSOLUTE_FILE_PATH]&headers=true\n\n"
+ "See https://www.ivoa.net/documents/SODA/20170517/REC-SODA-1.0.html#tth_sEc3.3 for "
+ "SODA_PARAM values.",
String.format("""
Usage:\s
%s?file=[ABSOLUTE_FILE_PATH]
OR for a sub-region:
%s?file=[ABSOLUTE_FILE_PATH]&[SODA_PARAM]=[CUTOUT_SPEC]
OR for headers only:
%s?file=[ABSOLUTE_FILE_PATH]&headers=true
See https://www.ivoa.net/documents/SODA/20170517/REC-SODA-1.0.html#tth_sEc3.3 for SODA_PARAM values.""",
requestURI,
requestURI,
requestURI));
Expand Down
2 changes: 1 addition & 1 deletion tap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies {
implementation 'org.opencadc:cadc-log:[1.1.7,1.2.0)'
implementation 'org.opencadc:cadc-rest:[1.3.11,1.4.0)'
implementation 'org.opencadc:cadc-tap-server:[1.1.21,1.2.0)'
implementation 'org.opencadc:cadc-tap-server-oracle:[1.2.12,1.3.0)'
implementation 'org.opencadc:cadc-tap-server-oracle:[1.2.11,1.3.0)'
implementation 'org.opencadc:cadc-tap-tmp:[1.1.0,1.2.0)'
implementation 'org.opencadc:cadc-util:[1.6.1,1.7.0)'
implementation 'org.opencadc:cadc-uws:[1.0.5,1.1.0)'
Expand Down

0 comments on commit c60433d

Please sign in to comment.