This project will have different solutions on different branches
- WS1-Addressbook
- WS2-Strategy
- Mouse-in-a-Maze
- WS1-ImageViewer
- WS3-Decorator
- WS5-Packages
- WS6-Observer
- Assignment-1 (David Cooper)
- WS7-Refactoring
- L8-State
- L8-Microwave
- WS8-Airlock
- WS9-SpaceProbe
This is a Gradle project structure, so you can get started on the assignment without messing around with Gradle too much.
Basically:
-
Put all your source code in
src/main/java
(or in further subdirectories insidesrc/main/java
)- The subdirectory structure should match the package declaration statements otherwise IDEs may complain!
-
Type
./gradlew run
to run. -
Type
./gradlew check
to verify PMD rules- On Windows, drop the
./
from start of course; i.e.,gradlew run
orgradlew check
.
- On Windows, drop the
-
Gradle currently considers
edu.curtin.app.App
to be the name (and package) of the main class. If you change this, you must also edit build.gradle, and changemainClass = 'edu.curtin.app.App'
accordingly.
Credits: Dr David Cooper
-
This project structure has been made IDE friendly by moving
App.java
tosrc/main/java/edu/curtin/app
to match its package statement -
The project also has an
.idea
folder and can be opened directly using JetBrains IntelliJ IDEA, with Gradle targetsclean
,run
,check
configured within the IDE project.