|
InvokerTool
Top-level invoker tool to invoke multiple tools in a single jvm-launch
IntroductionThis class has a main() method that allows to invoke other tools (main()) with different parameters.
ExampleInvokes 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