Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1279 → Rev 1280

/demos/trunk/loader/readme.txt
16,7 → 16,9
specification of the test case is contained inside the loadfile
directory.
 
Valid extensions for the test case specification files are: .fsf
Valid extensions for the test case specification files are:
.fsf - old script file
.fsf2 - XML version
(other extensions can be added easily)
 
For example:
23,25 → 25,40
 
make OS=SHARK TEST=load all
 
or
these makefile will:
- prepare the out directory with the common files
- add the shark initialization files
- parse a file loadfile/load.fsf (the file extension is guessed automatically
by the makefile) to produce source code inside out
- compile the resulting shark application
 
make OS=SHARK TEST=loadxml java
-------------------------------------------------------------------------
 
to use the XML parser (Example loadxml.fsf)
XML Parser & Java setup
 
NOTE: setup the CLASSPATH variable inside
To use the XML parser (file extension .fsf2) you need to properly setup
your system, and you need toinstall the following libraries:
 
generators/java/makefile
generators/java/java_gen
- JDOM BETA 9 - http://www.jdom.org
- XERCES (Parser SAX with XSD support) - http://xml.apache.org
 
to compile and execute java class files you need
also the libraries
On my Linux system, after installing the Sun's j2re,
I did the following commands (as root):
 
JDOM BETA 9 - http://www.jdom.org
XERCES (Parser SAX with XSD support) - http://xml.apache.org
# mkdir j
# cd j
# wget http://www.jdom.org/dist/binary/jdom-b9.tar.gz
# tar xvzf jdom-b9.tar.gz
# cp jdom-b9/build/jdom.jar /usr/java/j2re1.4.1_02/lib/
# wget http://www.apache.org/dist/xml/xerces-j/Xerces-J-bin.2.6.0.tar.gz
# tar xvzf Xerces-J-bin.2.6.0.tar.gz
# cp ./xerces-2_6_0/xercesImpl.jar /usr/java/j2re1.4.1_02/lib/
# cp ./xerces-2_6_0/xml-apis.jar /usr/java/j2re1.4.1_02/lib/
 
these makefile will:
- prepare the out directory with the common files
- add the shark initialization files
- parse loadfile/load.fsf to produce source code inside out
- compile the resulting shark application
then, as user, I did
 
$ export CLASSPATH=/usr/java/j2re1.4.1_02/lib
 
Enjoy,
 
Michael, Giacomo, PJ