Skip to content

Project Setup

Rob Crocombe edited this page Jul 23, 2016 · 11 revisions

Requirements

Codegen requires the following software:

  • Java 1.8
  • Java JDK 8
  • Apache Tomcat 8.0.36
  • Eclipse IDE for Java EE Developers Neon, which should include:
    • Maven
    • EMF
    • Ant
    • JUnit
  • Epsilon 1.3 JAR (kitchen sink)
  • xmlparser.jar from my repository (download the release or build yourself)

Running Codegen

  1. Import project into your Eclipse workspace.
  • Add Epsilon and xmlparser JARs to /WebContent/WEB-INF/lib directory inside CodeGenerator project.
  • Check that Maven has added the required dependancies.
  • Setup Tomcat as a server, add CodeGenerator to the configured list.
  • Create run configurations for each executable:
    • CodeGenerator should already be in the Tomcat config.
    • Client should be a Java App.
    • All tests should be JUnit.
  • Set environmental variables:
    • gen_path
    • output_path
  • Test the project is working with the JUnit tests.

Troubleshooting

Sometimes after restarting the server it refuses to work. Try one of the following:

  • Restart Eclipse.
  • Right click the Server and choose the Clean… option.
  • Right click the Server and choose to monitor port 8080.

Clone this wiki locally