-
Notifications
You must be signed in to change notification settings - Fork 0
Tutorial 0: Setting up the environment
This is a tutorial to get you via the installation and working with basic software engineering tools:
- Git
- Java
- Eclipse
- Maven
Here is what you should do to get started:
-
Install Ubuntu/Linux (you can use Windows or Mac, but this would be your own responsibility, e.g., if we see CRLF in the code, it is going to be your problem. If you do not know what CRLF is, or why it is a problem, you must use Linux.)
-
Install Java JDK; you must use OPENJDK 11:
$ sudo apt-get install openjdk-11-doc openjdk-11-jdk openjdk-11-jre -
Install Eclipse SimRel 2018‑09; make sure you choose Eclipse for Java developers.
-
Install git:
sudo apt-get install git -
Read the section "What is version control?" below
-
Clone this repository:
https://github.com/SpartanRefactoring/fluent.ly.git -
Install maven (in case not installed):
sudo apt-get install maven -
Import
fluent.lyinto Eclipse: import -> existing maven project -> then choose the directory -
After the import is done, make sure the project pass all the unit tests by right click on the project folder in eclipse -> run as -> junit test
Note, we will not grade thiד assignment but it is mandatory to complete the above stages before class on Wednesday
- Software tools that help a software team manage changes to source code over time.
1. New Git repository
- Create a new Git repository
- git init
- Configure your Git installation
- git config --global user.name
- git config --global user.email
- git config --system core.editor
- git config --list
- Create/Edit files
- git diff --verify changes
2. Existing Git repository
- Clone repository:
- git clone --repository url
- Modify files in your working directory.
- Stage the files, adding snapshots of them to your staging area.
- Commit, which takes the files as they are in the staging area and stores that snapshot permanently to your Git directory.
3. Inspect repository
- git status --List which files are staged, unstaged, and untracked
- git log --Display committed snapshots
- git tag -- Create tag