/ist-412

Primary LanguageJava

How to compile the code:

Note: This guide assumes you have both java and ant installed.

1. Unzip the file.

2. Download the following libraries and put them in a directory called "lib" in the root directory:
    - commons-lang3-3.4.jar (http://apache.claz.org//commons/lang/binaries/commons-lang3-3.4-bin.zip)
    - junit-4.10.jar (https://search.maven.org/remotecontent?filepath=junit/junit/4.10/junit-4.10.jar)

3. Create a new file called build.properties and put it in the root directory.

4. Add the following lines to the file:

        # Build Directories
        binDirectory=[Path To Unzipped Project]/bin
        distDirectory=[Path To Unzipped Project]/dist
        srcDirectory=[Path To Unzipped Project]/src/program-test-242-1
        libDirectory=[Path To Unzipped Project]/lib
        docDirectory=[Path To Unzipped Project]/doc
        testDirectory=[Path To Unzipped Project]/src/program-test-242-1/test

        #Executable class name
        mainClass=controller.Main

        # jar app name
        appName=ProgramTest


5. Edit the paths to reflect where you unzipped the source code to and save.

6. Download student submissions to use for runs. Example submission code is available from http://acs.ist.psu.edu/courses/ist412/source/java-tester-demo.zip

7.The student submissions must be placed into [Root Directory] -> src -> program-test-242-1 -> src WITHIN the unzipped project. 

For the example submission code, there are two "src" directories within the zip folder. Find the second one and cut and paste it into the the first folder that was unzipped under the directory titled "program-test-242-1".

8. If on Windows, run the setup7.bat script in src/program-test-242-1.

9. Open up the command prompt/terminal, navigate to the root directory and enter the command "ant". This will run the 
default ant target for the project "run-all".

10. Once you have opened the program click on the documentation tab in the menu bar for further instructions on how to use the program.