From: dion g. <dio...@us...> - 2004-08-02 00:48:09
|
diongillard 04/08/01 17:48:01 Modified: dbunit plugin.jelly dbunit/xdocs goals.xml Log: Add xls2xml, flat2xml and xml2flat goals Revision Changes Path 1.14 +30 -0 maven-plugins/dbunit/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/dbunit/plugin.jelly,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- plugin.jelly 1 Aug 2004 13:17:22 -0000 1.13 +++ plugin.jelly 2 Aug 2004 00:48:01 -0000 1.14 @@ -128,4 +128,34 @@ ${tool.process()} <ant:echo>Spreadsheet '${output}' created from '${input}'</ant:echo> </goal> + + <goal name="dbunit:xls2xml"> + <j:useBean var="tool" class="net.sourceforge.mavenplugins.dbunit.DataSetConverter" + input="${input}" + inputFormat="excel" + output="${output}" + outputFormat="xml" /> + ${tool.process()} + <ant:echo>XML '${output}' created from '${input}'</ant:echo> + </goal> + + <goal name="dbunit:flat2xml"> + <j:useBean var="tool" class="net.sourceforge.mavenplugins.dbunit.DataSetConverter" + input="${input}" + inputFormat="flat" + output="${output}" + outputFormat="xml" /> + ${tool.process()} + <ant:echo>XML '${output}' created from '${input}'</ant:echo> + </goal> + + <goal name="dbunit:xml2flat"> + <j:useBean var="tool" class="net.sourceforge.mavenplugins.dbunit.DataSetConverter" + input="${input}" + inputFormat="xml" + output="${output}" + outputFormat="flat" /> + ${tool.process()} + <ant:echo>Flat XML '${output}' created from '${input}'</ant:echo> + </goal> </project> 1.8 +24 -0 maven-plugins/dbunit/xdocs/goals.xml Index: goals.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/dbunit/xdocs/goals.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- goals.xml 1 Aug 2004 13:24:08 -0000 1.7 +++ goals.xml 2 Aug 2004 00:48:01 -0000 1.8 @@ -24,6 +24,14 @@ </description> </goal> <goal> + <name>dbunit:flat2xml</name> + <description> + Convert a flat XML file, specified by the variable <code>input</code> + into an XML file specified by the variable <code>output</code>. + Both input and output variables are file names. + </description> + </goal> + <goal> <name>dbunit:generate-dataset</name> <description>Generate a dbunit dataset for a connection</description> </goal> @@ -43,6 +51,22 @@ </description> </goal> <goal> + <name>dbunit:xls2xml</name> + <description> + Convert an Excel spreadsheet, specified by the variable <code>input</code> + into an XML file specified by the variable <code>output</code>. + Both input and output variables are file names. + </description> + </goal> + <goal> + <name>dbunit:xml2flat</name> + <description> + Convert an XML file, specified by the variable <code>input</code> + into a flat XML file specified by the variable <code>output</code>. + Both input and output variables are file names. + </description> + </goal> + <goal> <name>dbunit:xml2xls</name> <description> Convert an XML formatted dataset, specified by the variable <code>input</code> |