Skip to content

Commit

Permalink
Merge branch 'release-2.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
guygriffiths committed Sep 23, 2020
2 parents 5a83a35 + 30a37e6 commit d5b67c4
Show file tree
Hide file tree
Showing 12 changed files with 122 additions and 89 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2.5.0
=====
Updated to EDAL 1.5.0
Minor bugfixes
Changes to make JDK11 compatible

2.4.2
=====
Updated to EDAL 1.4.2

2.4.1
=====
Updated to EDAL 1.4.1
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN mkdir /edal && \
COPY . /ncWMS
RUN cd /ncWMS && \
JAVA_HOME=/usr/lib/jvm/java-8-oracle mvn clean install && \
unzip target/ncWMS2.war -d $CATALINA_HOME/webapps/ncWMS/ && \
unzip target/ncWMS2.war -d $CATALINA_HOME/webapps/ncWMS2/ && \
rm -rf /edal && \
rm -rf /ncWMS/target

Expand Down
6 changes: 6 additions & 0 deletions docs/04-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ The `TIME` parameter should specify a range of times in the form `starttime/endt
* image/jpg
* image/jpeg
* text/csv
* text/json
* application/prs.coverage+json
* application/prs.coverage json

### GetVerticalProfile

Expand All @@ -75,6 +78,9 @@ This produces either a vertical profile graph or, if downloading is enabled, a C
* image/jpg
* image/jpeg
* text/csv
* text/json
* application/prs.coverage+json
* application/prs.coverage json

### GetTransect

Expand Down
Binary file modified docs/images/palettes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 54 additions & 30 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>uk.ac.rdg.resc</groupId>
<artifactId>ncWMS</artifactId>
<version>2.4.2</version>
<version>2.5.0</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<gwt.version>2.7.0</gwt.version>
<gwt.version>2.8.2</gwt.version>
<winstone.version>0.9.10</winstone.version>
<edal.version>1.4.2</edal.version>
<edal.version>1.5.0</edal.version>
<resc.url>http://www.met.reading.ac.uk/resc/home/</resc.url>
</properties>

Expand All @@ -32,7 +34,8 @@
full details).</comments>
</license>
</licenses>
<!-- groupId, developers and build sections are all inherited by child modules -->
<!-- groupId, developers and build sections are all inherited by child
modules -->
<developers>
<developer>
<name>Guy Griffiths</name>
Expand Down Expand Up @@ -63,6 +66,18 @@
<artifactId>edal-godiva</artifactId>
<version>${edal.version}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
Expand Down Expand Up @@ -104,6 +119,12 @@
<groupId>com.google.gwt</groupId>
<artifactId>gwt-codeserver</artifactId>
<version>${gwt.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
</exclusion>
</exclusions>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -123,21 +144,6 @@
<build>
<finalName>ncWMS2</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<inplace>true</inplace>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
Expand All @@ -162,21 +168,23 @@
<configuration>
<cmdLineOptions>
<property>
<!-- This gives no-password access to the admin interface, which is what we want when running as a local standalone application -->
<!-- This gives no-password access to the admin
interface, which is what we want when running as a local standalone application -->
<name>realmClassName</name>
<value>uk.ac.rdg.resc.edal.ncwms.StandaloneAuthentication</value>
</property>
</cmdLineOptions>
</configuration>
</plugin>
<plugin>
<!-- Sets the source version to 1.7 -->
<!-- Sets the source version to Java 11 -->
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>11</source>
<target>11</target>
<strict>true</strict>
</configuration>
<version>2.5.1</version>
<version>3.8.1</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
Expand All @@ -202,14 +210,17 @@
<!-- Create aggregated javadoc for all modules -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<version>3.2.0</version>
<configuration>
<!-- Output the apidocs to the base directory. These are ignored in .gitignore for most branches, but NOT in the gh-pages branch. This makes documentation deployment very simple -->
<!-- Output the apidocs to the base directory. These
are ignored in .gitignore for most branches, but NOT in the gh-pages branch.
This makes documentation deployment very simple -->
<reportOutputDirectory>${project.basedir}</reportOutputDirectory>
</configuration>
</plugin>
<plugin>
<!-- On package, generate an image containing all of the palettes for the documentation -->
<!-- On package, generate an image containing all of the
palettes for the documentation -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
Expand Down Expand Up @@ -237,6 +248,16 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0.0</version>
<extensions>true</extensions>
<configuration>
<moduleName>uk.ac.rdg.resc.edal.ncwms.Godiva3</moduleName>
<webappDirectory>src/main/webapp</webappDirectory>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
Expand Down Expand Up @@ -291,7 +312,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.1</version>
<version>3.2.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down Expand Up @@ -365,7 +386,10 @@
<version>2.10.3</version>
<configuration>
<goal>javadoc:aggregate</goal>
<!-- These links really belong in the child POMs but if we put them there, they don't seem to get picked up when building the javadoc for the aggregated project. Therefore if the versions of any of the dependencies change these links will also have to be updated. -->
<!-- These links really belong in the child POMs but
if we put them there, they don't seem to get picked up when building the
javadoc for the aggregated project. Therefore if the versions of any of the
dependencies change these links will also have to be updated. -->
<links>
<link>http://java.sun.com/j2se/1.6.0/docs/api/</link>
<link>http://joda-time.sourceforge.net/api-2.0/</link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,10 @@ private void updateConfig(HttpServletRequest request, HttpServletResponse respon
boolean queryable = request
.getParameter("dynamicService." + ds.getAlias() + ".queryable") != null;
ds.setQueryable(queryable);

boolean downloadable = request
.getParameter("dynamicService." + ds.getAlias() + ".downloadable") != null;
ds.setDownloadable(downloadable);

String newDataReaderClass = request
.getParameter("dynamicService." + ds.getAlias() + ".reader");
Expand Down Expand Up @@ -724,10 +728,6 @@ private void addDataset(HttpServletRequest request, HttpServletResponse response
datasetOK = false;
message = "Dataset with ID " + id + " already exists";
}
if (CdmUtils.expandGlobExpression(location).size() < 1) {
datasetOK = false;
message = "Location: " + location + " doesn't refer to any existing files";
}
try {
if (!dataReader.isEmpty()) {
Class.forName(dataReader);
Expand Down
Loading

0 comments on commit d5b67c4

Please # to comment.