logo.gif


Deploying EBI Neutrino R1.

The system gives you the possibility to use "ant" for compile and deploy the source code.

Once you have checked out the EBINeutrinoCORE you will see this folder tree structure


EBINeutrinoCORE

|... src

|... buildFiles

|... Config

| ebiExtensions

| hibernate

| images

| lib

.....

.....



First check if you have ant installed before deploy EBINeutrino,
http://ant.apache.org/ .

The second important work to do is to edit the build.xml file, situated in the buildFile folder for your requirements.

You could deploy EBINeutrino using the "console" with the following commands:


#Compiling EBI NEutrino Sourcecode


~ cd to the buildFile directory

~ ant deployLinux
or for Windows(r) type
~ ant deployWindows


With this command the system compile the source code, and generate the EBI Neutrino release folder.




#Generate the hibernate mapping files use the following commands:

#You should only use this task if you have made changes to the database structure!


Modify the hibernate.properties from the buildFiles folder:

################################################################
# Example

# hibernate.connection.driver_class=com.mysql.jdbc.Driver

# hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

# hibernate.connection.url=jdbc:mysql://xxx.xxx.x.x

# hibernate.connection.username=sysadmin
# hibernate.connection.password=
# hibernate.connection.schema=ebineutrino
# hibernate.connection.defaultschema=ebineutrino
# hibernate.bytecode.use_reflection_optimizer=true
################################################################
 
hibernate.connection.driver_class=
hibernate.dialect=
hibernate.connection.url=
hibernate.connection.username=
hibernate.connection.password=
hibernate.connection.schema=
hibernate.connection.defaultschema=
hibernate.bytecode.use_reflection_optimizer=


#This task generate the hibernate database mapping file and the java beans for the used database tables.

~ ant hibernate

#If you like to create the database schema you need to modify the build.xml and insert in the schema.file.name tag the database driver:

**<property name="jdbc.driver.jar" value="connector-x.x.x-file.jar"/>
<property name="schema.file.name" value="oracle.ddl" />**

Finally you are ready to generate the database schema:
~ ant hibernateSchema

 

Or simply use the IntelliJ IDE to view the available Ant tasks.