| ... | ... | @@ -50,12 +50,12 @@ This will create a local copy of the repository on your machine. |
|
|
|
If you run `ls`, you will see a new directory in the current folder.
|
|
|
|
|
|
|
|
In both labs, the first exercise is to create a "Hello World" program.
|
|
|
|
If you are in CPSC 150L and are using BlueJ, skip to [the BlueJ and Git tutorial](#bluej), complete that, and then return here.
|
|
|
|
If you are in CPSC 150L and are using IntelliJ, skip to [the IntelliJ and Git tutorial](#intellij), complete that, and then return here.
|
|
|
|
If you are in CPSC 250L, skip to [the Eclipse and Git tutorial](#eclipse), complete that, and then return here.
|
|
|
|
|
|
|
|
## The Lab Workflow
|
|
|
|
|
|
|
|
In jEdit or BlueJ (CPSC 150L) or Eclipse (CPSC 250L), create your `HelloWorld.java` file.
|
|
|
|
In Notepad++ or IntelliJ (CPSC 150L) or Eclipse (CPSC 250L), create your `HelloWorld.java` file.
|
|
|
|
Now return to your terminal and, in the project directory, run
|
|
|
|
```
|
|
|
|
git add .
|
| ... | ... | @@ -108,14 +108,20 @@ This command will grab your new commits from the server and update your reposito |
|
|
|
|
|
|
|
## IDE Specific Instructions
|
|
|
|
|
|
|
|
### BlueJ
|
|
|
|
### IntelliJ
|
|
|
|
|
|
|
|
For CPSC 150L students, open BlueJ.
|
|
|
|
For CPSC 150L students, open IntelliJ.
|
|
|
|
|
|
|
|
After cloning, click BlueJ's "Project" menu and then click "Open Non BlueJ".
|
|
|
|
In the dialog that pops up, select the repository that you just cloned.
|
|
|
|
After cloning, click "Open Project" and then click the folder that you just cloned.
|
|
|
|
If it tells you that it cannot find a JDK, press the '+' button to add a JDK.
|
|
|
|
In this dialog, navigate to where you installed the JDK and select the `jdk1.x.y_z` folder (where `x`, `y`, and `z` may vary).
|
|
|
|
From here on continue with [the usage section](#the-lab-workflow) using Git from a terminal or Git Bash.
|
|
|
|
|
|
|
|
To set up jUnit, open a jUnit test file from the `tests` directory and click on a `@Test` annotation.
|
|
|
|
Then press Alt+Enter and select "Add JUnit 4 to classpath".
|
|
|
|
Press OK.
|
|
|
|
JUnit test files will now work with this project.
|
|
|
|
|
|
|
|
### Eclipse
|
|
|
|
|
|
|
|
For CPSC 250L students, open Eclipse.
|
| ... | ... | |