30 likes | 177 Views
Using Ant with Minecraft Forge. CSCI 3130 Summer 2014. Steps to using Ant. Make sure your project is set up as covered in the last class Download the starter build file from here . Place this file in the src folder Create a folder called ‘lib’
E N D
Using Ant with Minecraft Forge CSCI 3130 Summer 2014
Steps to using Ant • Make sure your project is set up as covered in the last class • Download the starter build file from here. • Place this file in the src folder • Create a folder called ‘lib’ • Download JUnit and hamcrest from https://github.com/junit-team/junit/wiki/Download-and-Install • Rename the Junit jar to JUnit.jar (leave hamcrest-core as is) • Copy both jars into the lib folder • Create a new folder in src called “test” and a folder inside that called “java” • Find this folder in Eclipse, right click it, choose “Build Path”->”Add to Build Path”
How the Ant File works • Build your project with the “build” target • Run all your tests with the “test” target • Generate a test report with the “testReport” target • Clean your output with the “clean” target