Command Line - rsanchez-wsu/jfiles GitHub Wiki

The instructor recommends running builds from the command line. Although similar results can be achieved through the plug-ins for Eclipse, it is recommended that you follow the steps outlined here in addition to the Eclipse installation.

Contents

  1. Requirements
  2. Ant
  3. Ivy

Requirements

Before starting, a JDK installation is required. Download the latest JDK from the following link: http://www.oracle.com/technetwork/java/javase/downloads/


Ant

Ant is a command-line tool and Java library that is used to build Java projects. Ant allows developers to compile, assemble, test, and run applications in Java and other languages, although it is aimed at Java. Read more about Apache Ant here: https://ant.apache.org/.

Follow the installation tutorial at this link: CLI-Ant


Ivy

Ivy is a dependency manager for Java, although it can be used for other projects. Apache Ivy is integrated with Apache Ant and is a subproject of Apache Ant. Read more about Apache Ivy here: https://ant.apache.org/ivy/features.html.

Follow the installation tutorial at this link: Ivy.


Junit

Junit is a testing framework that allows developers to write tests that will test a portion of your code. Once the test case is created it can be ran as many times as the developer needs. This saves valuable time since the developer doesn’t have to test this section of code again manually. JUnit tests can be automated from the ant framework. Read more about JUnit here: https://github.com/junit-team/junit4/wiki/Download-and-Install

Information about running JUnit with ant is in the JUnit Overview.

(This is not implemented for the master branch yet)