The Discovery Environment is a web portal for life science research, giving access to the data store and compute of the CyVerse cyber-infrastructure.
This project is built with Gradle. Please refer to the Gradle documentation for an intro to the build script basics. The top level is itself a gradle project, but there are multiple sub-projects defined within.
In addition to the basic gradle build files, here is an explanation of our additions:
- versions.gradle: This contains common library version definitions for libraries used throughout the subprojects.
- iplant/webapps.gradle: Contains the sub-project definitions for the DE webapps.
- iplant/modules.gradle: Contains the sub-project definitions for the non-webapp projects used by the webapps.
- iplant/code-style: Contains code style definitions for the eclipse and idea environments.
To find the list of tasks you can execute:
./gradlew tasks
The webapp requires that the de.properties
file be located in /etc/iplantc/de/
.
To build and run the DE draft or prod self-executing war:
./gradlew runDraftWar
./gradlew runWar
To generate production war file:
./gradlew createProdWar # Resulting war will be in target/
To generate a GWT draft war file:
./gradlew draftBootRepackage
To start the Super Dev Mode code-server:
./gradlew sdm
Once this code-server is started, you can use it to debug any of our wars which have source-maps enabled. Only the draft wars have source-maps enabled. For instructions on how to use Super Dev Mode, please refer to the GWT project site.
Find documentation in /react-components