All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jdc.mvn.plugins.dbtools.ShowDBDBToolsMojo Maven / Gradle / Ivy

package com.jdc.mvn.plugins.dbtools;

import org.apache.maven.plugin.MojoExecutionException;

/**
 * Goal which launches DBTools
 *
// * @goal showdb
 * @author Jeff Campbell
 * @version $Id$
 *
 */
public class ShowDBDBToolsMojo extends AbstractDBToolsMojo {

//    private DBToolsFrame dbToolsFrame;

    public void execute() throws MojoExecutionException {

//        Database db = new Database();
//        db.setAlias(dbAlias);
//        db.setVendorCode(dbVendor);
//        db.setDriver(dbDriverClasspath);
//        db.setUrl(dbUrl);
//        db.setUsername(dbUsername);
//        db.setPassword(dbPassword);
//        db.setSchema(schemaDir);
//
//        DBProfile dbProfile = new DBProfile(db);
//
//
//        dbToolsFrame = new DBToolsFrame();
//        dbToolsFrame.addDBProfile(dbProfile);
//
//        java.awt.EventQueue.invokeLater(new Runnable() {
//            public void run() {
//                dbToolsFrame.setVisible(true);
//            }
//        });
//
//
//        waitIndefinitely();
    }

    /**
     * Causes the current thread to wait indefinitely. This method does not return.
     */
    private void waitIndefinitely() {
        Object lock = new Object();

        synchronized (lock) {
            try {
                lock.wait();
            } catch (InterruptedException exception) {
                getLog().warn("RunMojo.interrupted", exception);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy