@@ -0,0 +1,2204 @@
+package org.codehaus.mojo.dbunit;%0D%0A%0D%0Aimport java.io.File;%0D%0A%0D%0Aimport org.apache.maven.plugin.MojoExecutionException;%0D%0Aimport org.apache.maven.plugin.MojoFailureException;%0D%0Aimport org.dbunit.ant.Operation;%0D%0Aimport org.dbunit.database.IDatabaseConnection;%0D%0A%0D%0A/**%0D%0A * Execute DBUnit Operation%0D%0A * %0D%0A * @goal operation%0D%0A * @author %3Ca href=%22mailto:dantran@gmail.com%22%3EDan Tran%3C/a%3E%0D%0A * @author %3Ca href=%22mailto:topping@codehaus.org%22%3EBrian Topping%3C/a%3E%0D%0A * @version $Id: $%0D%0A * %0D%0A */%0D%0Apublic class OperationMojo%0D%0A    extends AbstractDbUnitMojo%0D%0A%7B%0D%0A    /**%0D%0A     * Type of Database operation to perform. Supported types are UPDATE, %0D%0A     * INSERT, DELETE, DELETE_ALL, REFRESH, CLEAN_INSERT, MSSQL_INSERT, %0D%0A     * MSSQL_REFRESH, MSSQL_CLEAN_INSERT%0D%0A     * %0D%0A     * @parameter expression=%22type%22 %0D%0A     * @required%0D%0A     */%0D%0A    private String type;%0D%0A%0D%0A    /**%0D%0A     * When true, place the entired operation in one transaction%0D%0A     * @parameter expression=%22transaction%22 default-value=%22false%22%0D%0A     * %0D%0A     */%0D%0A    private boolean transaction;%0D%0A%0D%0A    /**%0D%0A     * import data file%0D%0A     * %0D%0A     * @parameter expression=%22$%7Bsrc%7D%22%0D%0A     * @required%0D%0A     */%0D%0A    private File src;%0D%0A%0D%0A    /**%0D%0A     * src format type. Valid type are: flat, xml, csv, and dtd%0D%0A     * %0D%0A     * @parameter expression=%22$%7Bformat%7D%22 default-value=%22xml%22;%0D%0A     * @required%0D%0A     */%0D%0A    private String format;%0D%0A%0D%0A    public void execute()%0D%0A        throws MojoExecutionException, MojoFailureException%0D%0A    %7B%0D%0A        if ( skip )%0D%0A        %7B%0D%0A            return;%0D%0A        %7D%0D%0A%0D%0A        super.execute();%0D%0A        %0D%0A        try%0D%0A        %7B%0D%0A            IDatabaseConnection connection = createConnection();%0D%0A            try%0D%0A            %7B%0D%0A                Operation op = new Operation();%0D%0A                op.setFormat( format );%0D%0A                op.setSrc( src );%0D%0A                op.setTransaction( transaction );%0D%0A                op.setType( type );%0D%0A                op.execute( connection );%0D%0A            %7D%0D%0A            finally%0D%0A            %7B%0D%0A                connection.close();%0D%0A            %7D%0D%0A        %7D%0D%0A        catch ( Exception e )%0D%0A        %7B%0D%0A            throw new MojoExecutionException( %22Error executing %22 + type, e );%0D%0A        %7D%0D%0A%0D%0A    %7D%0D%0A%7D%0D%0A

combine all import mojos into one to take advantage of the logic already provided by dbunit's ant task, will deprecate existing mojos later