Skip to content
Alejandro Díaz Torres edited this page Jan 30, 2014 · 4 revisions

Build

ServiceBox is a Maven based project. So before building ServiceBox you have to install Maven in your system.

By first you'll neeed Git installed in order to clone ServiceBox in your system.

Then you have to build and deploy the ServiceBox in your Servlet Container (like Apache Tomcat).

you@prompt:~$ cd servicebox
you@prompt:~/servicebox$ mvn install (Maven build)

After the Maven build phase move the servicebox.war file (located in the newly created target directory) to your Servlet Container. About the servicebox configuration make sure you have set a correct temp path inside the app.properties file (if the application is already running you have to reload it). Following an example:

### Temp directory
temp=yourtomcatdir/webapps/servicebox/temp

Spring Framework beans configuration

With the Proposal 1, we added some beans configurables for manage servlets callbacks. You can change it in servicebox-ovr.properties:

### Default Service box property overrider.

# File upload callback configuration
fileUploadCallback.callbackConfiguration.maxSize=100000024
fileUploadCallback.callbackConfiguration.maxItems=100
fileUploadCallback.callbackConfiguration.buffSize=1024
fileUploadCallback.callbackConfiguration.fileTypes=([^*]+(\.(?i)(kml|kmz))$),([^*]+(\.(?i)(map))$)

this properties will override the default values on the Spring beans defined on applicationContext.xml.