Package org.apache.tools.ant.taskdefs

Examples of org.apache.tools.ant.taskdefs.SQLExec


            writeCompressedText(scriptFile, _creationScript);

            project.setBasedir(tmpDir.getAbsolutePath());

            // we use the ant task 'sql' to perform the creation script
          SQLExec         sqlTask = new SQLExec();
          SQLExec.OnError onError = new SQLExec.OnError();
 
          onError.setValue("continue");
          sqlTask.setProject(project);
          sqlTask.setAutocommit(true);
          sqlTask.setDriver(_jcd.getDriver());
          sqlTask.setOnerror(onError);
          sqlTask.setUserid(_jcd.getUserName());
          sqlTask.setPassword(_jcd.getPassWord() == null ? "" : _jcd.getPassWord());
          sqlTask.setUrl(getDBCreationUrl());
          sqlTask.setSrc(scriptFile);
          sqlTask.execute();

          deleteDir(tmpDir);
        }
        catch (Exception ex)
        {
View Full Code Here


            writeCompressedText(scriptFile, _creationScript);

            project.setBasedir(tmpDir.getAbsolutePath());

            // we use the ant task 'sql' to perform the creation script
          SQLExec         sqlTask = new SQLExec();
          SQLExec.OnError onError = new SQLExec.OnError();
 
          onError.setValue("continue");
          sqlTask.setProject(project);
          sqlTask.setAutocommit(true);
          sqlTask.setDriver(_jcd.getDriver());
          sqlTask.setOnerror(onError);
          sqlTask.setUserid(_jcd.getUserName());
          sqlTask.setPassword(_jcd.getPassWord() == null ? "" : _jcd.getPassWord());
          sqlTask.setUrl(getDBCreationUrl());
          sqlTask.setSrc(scriptFile);
          sqlTask.execute();

          deleteDir(tmpDir);
        }
        catch (Exception ex)
        {
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.taskdefs.SQLExec

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.