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

Scriptella script to shutdown HSQLDB server (See related posts)

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]



You need to create an account or log in to post comments to this site.


Click here to browse all 5355 code snippets

Related Posts