Scalate Tool

Scalate Tool helps get you scalate-ing faster!

Requirements

Scatate Tool is a handy command line tool for creating new projects using Scalate.

Scalate Tool has the following requirements

To get started with the Scalate Tool you’ll need to download and install it.

Download a distribution such as 1.1-SNAPSHOT zip or tar.gz

The installation step is really just about adding the scalate script to your PATH so that its easy to run the tool from any directory you happen to be in. If you know how to do that kind of stuff go right ahead.

You can just run the scalate script directly from your download if you prefer. There follows detailed instructions on how to install the scalate tool to ensure you can run the tool from any directory.

Windows 2000/XP

  • Unzip the distribution archive, i.e. scalate-1.1-SNAPSHOT-windows-bin.zip to the directory you wish to install Scalate 1.1-SNAPSHOT. These instructions assume you chose C:\Program Files\Scala. The subdirectory scalate-1.1-SNAPSHOT will be created from the archive.

  • Add the C:\Program Files\Scala\scalate-1.1-SNAPSHOT directory to the PATH environment variable by

    • Opening up the system properties (WinKey + Pause)
    • Selecting the “Advanced” tab, and the “Environment Variables” button
    • Update/create the PATH variable in the user variables prepending the value C:\Program Files\Scala\scalate-1.1-SNAPSHOT
    • Be sure to omit any quotation marks around the path even if it contains spaces.
  • In the same dialog, make sure that JAVA_HOME exists in your user variables or in the system variables and it is set to the location of your JDK, e.g. C:\Program Files\Java\jdk1.5.0_02 and that %JAVA_HOME%\bin is in your Path environment variable.

  • Open a new command prompt (Winkey + R then type cmd) and run the following to verify that it is correctly installed.

     scalate

Unix-based Operating Systems (Linux, Solaris and Mac OS X)

  • Extract the distribution archive, i.e. scalate-1.1-SNAPSHOT-unix-bin.tar.gz to the directory you wish to install Scalate 1.1-SNAPSHOT. These instructions assume you chose /usr/local/scala. The subdirectory scalate-1.1-SNAPSHOT will be created from the archive.

  • In a command terminal, prepend the PATH variable with the bin directory in the scalate release. e.g.

    export PATH=/usr/local/scala/scalate-1.1-SNAPSHOT/bin:$PATH
  • Make sure that JAVA_HOME is set to the location of your JDK and that $JAVA_HOME/bin is in your PATH environment variable, e.g.

    export JAVA_HOME=/usr/java/jdk1.5.0_02
    export PATH=$JAVA_HOME/bin:$PATH
  • Run the following to verify that it is installed correctly

    scalate