Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Fyodor Kupolov http://j2ee.by.ru

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Scriptella script to shutdown HSQLDB server

The following snippet performs shutdown of HSQLDB database.

   1  
   2  <!DOCTYPE etl SYSTEM "http://scriptella.javaforge.com/dtd/etl.dtd">
   3  <etl>
   4      <connection driver="hsqldb" url="jdbc:hsqldb:hsql://127.0.0.1/mydb" user="sa" classpath="hsqldb.jar"/>
   5      <script>
   6          SHUTDOWN;
   7      </script>
   8  </etl>


Running Scriptella from Ant is simple:
   1  
   2  <taskdef classpath="scriptella.jar" resource="antscriptella.properties" />
   3  <etl file="file_path"/>


Command line launcher is even simpler:
   1  
   2  scriptella [file_path]


« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS