Sun Microsystems Laboratories Experimental Stuff [Fortress-interest] using fortress from other directories

[Fortress-interest] using fortress from other directories

Eric Lavigne lavigne.eric@gmail.com
Mon, 15 Jan 2007 14:05:55 -0500


Fortress is ordinarily run like this (from base of installation directory):
  ./fortress hello.fss

I prefer to place my scripts in my own working directory and use like this:
   fortress myscript.fss

To make this work, I created an environment variable FORTRESS_HOME:
   /home/eric/install/fortress-svn/fortress/ProjectFortress/

Note that FORTRESS_HOME ends with "/"

Then I added FORTRESS_HOME to PATH and made some small changes to the
fortress bash script (copyright notice skipped for brevity):

#!/bin/bash
java -cp "${FORTRESS_HOME}build:
   ${FORTRESS_HOME}third_party/xtc/xtc.jar:
   ${FORTRESS_HOME}third_party/FJ/concurrent.jar" \
com.sun.fortress.interpreter.drivers.fs "$@"

That is three lines. The second line is just very long. I indented to
show that it is one line. There are no spaces between quotation marks.

If FORTRESS_HOME is not set, then this script will work the same as
the old version. If FORTRESS_HOME is set correctly, then I can use the
interpreter from other directories.

Note: I am still having trouble with installing under windows, as
discussed in a previous email. The installation process was
straightforward with Ubuntu, but my Windows computer is much faster
and I would like to get that working as well.


This page is: http://www.experimentalstuff.com/pipermail/fortress-interest/2007-January/000073.html
Last Modified: Tue, 16 Jan 2007 18:39:56 GMT
copyright (c) 2000-2007, Sun Microsystems