Libraries - UA-ScriptEase/scriptease GitHub Wiki

Libraries

##AspectJ

###AspectJ in Eclipse with AJDT

  1. Open Help -> Eclipse Marketplace..., search for AJDT, and install the appropriate one for your version of Eclipse (I'm using 'Indigo', for example).
    • If Marketplace not available (perhaps you have an older version of eclipse): use the "Install Software" method:
      1. In eclipse choose Help -> Install New Software...
      2. Go to the Available Software tab, choose Add Site...
      3. In Location field enter: http://download.eclipse.org/tools/ajdt/35/update (depending on your installation of eclipse, the 35 here may change to 36 for eclipse 3.6, etc)
      4. Check the required AJDT updates as well as the two optional updates.
      5. Click the next button, click the finish button, restart Eclipse when it asks.
  2. Right click on SE2 project in Eclipse, choose Configure -> Convert to AspectJ Project

A nice tutorial can be found here: http://www.eclipse.org/aspectj/doc/released/progguide/starting-aspectj.html

###AspectJ for building Jar files To generate Jar files with ANT, you must first install the latest stable release of the vanilla Aspect J package that can be found at their download site into your home directory (see our ANT docs for details). It's required to be installed separate from AJDT because AJDT repackages AspectJ in gross ways, and we need to include the AspectJ runtime in the jar for Aspects to work. It'll download a jar that is an installer. Run it.

##Apache HTTP We use some of the Apache Foundation's libraries (Apache.org) for HTTP communications to enable us to send error feedback back to ScriptEase developers. To include these libraries, you must include them in your Eclipse project's build path.

  1. In the Eclipse menu bar, click Project, then Properties, then Java Build Path, then click the Libraries tab.
  2. Click "Add External JARs...", then navigate to scriptease2\scriptease\resources\lib.
  3. Select all the jar files and click Open.

##XStream XStream (http://xstream.codehaus.org/) is a library for supporting XML I/O in a less ridiculous way than the Java standard. To include these libraries, you must include them in your Eclipse project's build path.

  1. In the Eclipse menu bar, click Project, then Properties, then Java Build Path, then click the Libraries tab.
  2. Click "Add External JARs...", then navigate to scriptease2/scriptease/resources/lib/xstream-1.3.1/lib/.
  3. Select all the jar files and click Open.