-
Notifications
You must be signed in to change notification settings - Fork 16
Getting Started
Charles Graham edited this page May 22, 2024
·
7 revisions
1. Installing VSCode / IDE
How to Install and setup VSCode for use with Java
2. Installing Java 8
How to Install Java 8
3. CDA Setup
Fork, clone repository, setup project (workspaces)
4. Build and Review
Setup VSCode to use the checkstyle.xml file
- Enter the command palette in VSCode with F1 or Ctrl + Shift + P
- Right click your checkstyle.xml file and click "Copy Relative Path" (i.e.
config/checkstyle/checkstyle.xml
) - Type
Java: Open Java Formatter Settings
Note: Command Palette should start with > - Press enter
- If your formatter is not already set, you should now be able to type/paste the relative path you copied above
- Press Enter
Right Click > Format Document and you will now be using the agreed upon checkstyles!
Enter ./gradlew build
into your terminal from the root of the project
- HINT: When checking style errors when looking for specific classes you are working on:
Windows -gradlew clean; gradlew checkstyleMain 2>&1 | findstr Office
-> Would show lines containing "Office"
5. Deploy and Test your Build
Migrate the .war file generated in .\cwms-radar-api\cwms_radar_api\build\libs\cwms_radar_api-_version_-SNAPSHOT.war
to district-data.war
and deploy it Confirm and Test. Detailed Steps Here
6. Commit Changes
-
Navigate to your GitHub profile page for cwms-radar-api and perform a sync with the primary HEC repository.
-
Commit your changes in your local repository, then sync them with your fork.
-
Create a pull request (on your github profile page), add detailed comments about the changes you have made being mindful these will be emailed out once you create the PR.