How to run Squalix
Below are the steps you have to follow to configure your Eclipse so that you can run/debug Squalix:
- Create the installer
- Run the following command on the "squale" project:
clean package assembly:attached -Dmaven.test.skip=true
- Copy the generated "squale-XXXX-distrib.zip" file (that got generated in the "target" folder) into "incoming/squale-distrib" folder of the "squale-installer" project.
- Run the "build.xml" Ant script of the "squale-installer" project. You will find the generated installer in the "target" folder.
- Run the installer
- Be sure that Squale gets installed in a folder that does not have spaces in its path.
- Start the HSQL database
- Run the start-db script located in the "database" folder of Squale installation directory.
- Run "Squalix" class with the following parameters:
- Program arguments:
"C:\SqualeInstallFolder\squale.home\Squalix\bin"
-s 1
- VM arguments:
-Dsquale.home="C:\SqualeInstallFolder\squale.home"
- Working directory:
C:\SqualeInstallFolder\squale.home\Squalix\bin
With this configuration, you will be able to run and debug Squalix in Eclipse.
How to run/debug Squale Web using the same configuration
You can also set your local server configuration to use the local Derby database, using the following url:
jdbc:hsqldb:hsql://localhost/squale-db
Now, you can debug both Squalix and Squale Web within Eclipse!