Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  1. In the Package Explorer, right-click on your project and choose Properties.
  2. Go to Java Build Path.
  3. On the Source tab, remove any existing entries, and click Add Folder.
  4. Select the agents, gameconfigs, gui, and src folders. Depending on your project, you might have additional folders that contain Java code; you should add those here.
  5. On the Libraries tab, click Add JARs
  6. Navigate to the lib/jars folder and choose all of the JAR files that it contains.
  7. Click OK.
  8. Eclipse should now reorganize the package hierarchy in the Package Explorer.

5. Access Ant from Eclipse

You can load CT's build.xml into Eclipse, making it possible to run Ant targets without opening up a command line.

  1. In Eclipse, choose Window > Show View > Ant
  2. In the new empty Ant pane that appears, click on the leftmost icon (a + next to a small ant) to add a build file.
  3. In the list that pops up, expand the CT3 folder and select build.xml.
  4. You'll now see an entry labeled coloredtrails in the Ant pane. Click the + or arrow next to it to expand it.
  5. You can now double-click any of the targets to run them.