How to integrate my SPIS/NUM java modifications from my
IDE (Eclipse) to SPIS framework ?
If you define your Eclipse project optimally,
things will be very simple.
The best is to define it as a new Java project,
checking the choice "create from existing source", and browsing to define
the SpisNum directory of SPIS distribution as the base directory of the project.
This way Eclipse will automatically find:
-
the sources under SpisNum/src/spis/…
-
the libraries in SpisNum/lib
-
the "make" file SpisNum/build.xml
used by Ant to have SPIS-Num compiled
You will first be able to edit, compile and
execute SPIS code in Eclipse.
Then if you want to transfer your modified code
to have it used by SPIS-UI you have to compile and tar your modified sources in
SpisNum/spis.jar file, which is the one used by SPIS.
This will be readily done by invoking build.xml
this way:
-
in Java perspective of Eclipse
develop the files and folders of your project
-
right-click on build.xml and
choose menu Run As / Ant Build
-
spis.jar will be
automatically updated (old version overwritten)
NB: you need to have a JDK installed properly
on your machine.
If you don't want to use build.xml, you can
also manually compile your modified sources and tar them in a SpisNum/spis.jar
file with jar.
Note also that when used from SPIS-UI the top
class of SPIS-Num is SimulationFormUIParams,
and is called by SpisUI/Bin/JyTop4.py python file, which may also be modified,
e.g. if you want to define another Simulation class (as e.g. a specific GeoSimulation).