My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
InvokerTool  
Top-level invoker tool to invoke multiple tools in a single jvm-launch
Updated Dec 16, 2009 by roman.stumm

Introduction

This class has a main() method that allows to invoke other tools (main()) with different parameters.

Example

Invokes the DDLParserTool 3 times via the InvokerTool:

<java fork="true" failonerror="true"
    classname="com.agimatec.database.InvokerTool"
    classpathref="maven.compile.classpath">
  <arg line="{ com.agimatec.sql.meta.script.DDLParserTool "/>
  <arg line="-catalog target/schema1-catalog-postgres.xml"/>
  <arg line="-dbms postgres"/>
  <arg line="-parse file:postgres/setup/schema1-create-tables.sql }"/>

  <arg line="{ com.agimatec.sql.meta.script.DDLParserTool "/>
  <arg line="-catalog target/schema2-catalog-postgres.xml"/>
  <arg line="-dbms postgres"/>
  <arg line="-parse file:postgres/setup/schema2-create-tables.sql }"/>

  <arg line="{ com.agimatec.sql.meta.script.DDLParserTool "/>
  <arg line="-catalog target/schema3-catalog-postgres.xml"/>
  <arg line="-dbms postgres"/>
  <arg line="-parse file:postgres/setup/schema3-create-tables.sql }"/>
</java>

Sign in to add a comment
Powered by Google Project Hosting