Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Remove duplicate ToolsUI WebStart file #779

Merged
merged 4 commits into from Mar 17, 2017
Merged

Conversation

cwardgar
Copy link
Contributor

Fixes MPS-625937.

Previously, we had both netCDFtools.jnlp and ToolsUI.jnlp, and they only differed in the application-desc element. Rather than maintain both and try to keep them in sync, we're nuking ToolsUI.jnlp and programmatically modifying netCDFtools.jnlp as necessary.

I also simplified the other filtered resources that are included in thredds.war.

cwardgar added 3 commits March 16, 2017 15:16
Fixes MPS-625937.

Previously, we had both netCDFtools.jnlp and ToolsUI.jnlp, and they only differed in the 'application-desc' element.
Rather than maintain both and try to keep them in sync, we're nuking ToolsUI.jnlp and modifying netCDFtools.jnlp as necessary.
* Maven is out of the picture, so we don't have to use Maven-style placeholders anymore.
* Figured out a way to filter tds.properties without removing it from the CopySpec first.
doLast {
GPathResult jnlp = new XmlSlurper().parse(inputFile)

// Add "<argument>{catalog}#{dataset}</argument>" to the "application-desc" node
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tiny bit of Groovy code changes

<application-desc main-class="ucar.nc2.ui.ToolsUI"/>

to

<application-desc main-class="ucar.nc2.ui.ToolsUI">
  <argument>{catalog}#{dataset}</argument>
</application-desc>

Cool, right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 - Groovy is awesome!

@lesserwhirls
Copy link
Collaborator

Looks nice to me. Would you mind updating the copyright blocks on the java files with the following?

/*
 * Copyright (c) 1998-2017 University Corporation for Atmospheric Research/Unidata
 */

@lesserwhirls
Copy link
Collaborator

Oops...meant to comment, not close.

* Minor tweaks to filterWebStartFile task.
@cwardgar
Copy link
Contributor Author

Done.

@lesserwhirls lesserwhirls merged commit 74ab581 into Unidata:master Mar 17, 2017
@lesserwhirls
Copy link
Collaborator

Thanks @cwardgar!

@cwardgar cwardgar deleted the jnlp branch March 19, 2017 08:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants