Examples of execute()


Examples of org.apache.tools.ant.taskdefs.Mkdir.execute()

    delete.execute();
    Mkdir mkdir = new Mkdir();
    mkdir.setProject(getProject());
    mkdir.setTaskName(getTaskName() + " - mkdir");
    mkdir.setDir(dir);
    mkdir.execute();
    return result;
  }

  /**
   * @throw BuildException if options conflict
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Move.execute()

        Move moveTask = (Move) antProject.createTask("move");

        FileSet fileSet = AntUtils.createFileset(inSourceDirectory, inPattern, new ArrayList());
        moveTask.setTodir(new File(inDestinationDirectory));
        moveTask.addFileset(fileSet);
        moveTask.execute();
    }
    /**
     * This method will movie files from the source directory to the destination directory based on
     * the pattern.
     *
 
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Parallel.execute()

        parallel.setThreadCount(4);
        parallel.addTask(resolve);
        parallel.addTask(resolve);
        parallel.addTask(resolve);
        parallel.addTask(resolve);
        parallel.execute();
    }

    public void testIVY779() throws Exception {
        Project project = new Project();
        project.setProperty("ivy.local.default.root",
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Property.execute()

                addProperties(getDefaultProperties(task));
            }
        };
        prop.setProject(project);
        prop.init();
        prop.execute();

        IvyAntVariableContainer ivyAntVariableContainer = new IvyAntVariableContainer(project);
        IvySettings settings = new IvySettings(ivyAntVariableContainer);
        settings.setBaseDir(project.getBaseDir());
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Replace.execute()

            String className = project.getGroupId() + ".model." + pojoName;
            Project antProject = AntUtils.createProject();
            Replace replace = (Replace) antProject.createTask("replace");
            replace.setFile(new File(hibernateCfgLocation));
            replace.setToken("    <mapping class=\"" + className + "\"/>");
            replace.execute();
        }

        log("Removal succeeded! Please run 'mvn clean' to remove any compiled classes.");
    }
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.SQLExec.execute()

          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

Examples of org.apache.tools.ant.taskdefs.Sequential.execute()

       
        ProcessTester server = new ProcessTester();
       
        MockControl ctrl = MockClassControl.createControl(Sequential.class);
        Sequential afterwards = (Sequential)ctrl.getMock();
        afterwards.execute();

        XhJavaBgTask task = new XhJavaBgTask();
        task.setProject(project);
        task.setClassname(ProcessTester.class.getName());
        task.setClasspath(new Path(project, getClassPath()));
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Tar.execute()

            Tar tarTask = new Tar();
            tarTask.setProject( project );
            tarTask.setDestFile( finalFile );
            tarTask.setBasedir( getTargetDirectory() );
            tarTask.setIncludes( getArchiveDirectory().getName() + "/**" );
            tarTask.execute();
        }
        // TAR.GZ Archive
        else if ( archiveType.equalsIgnoreCase( "tar.gz" ) )
        {
            File tarFile = new File( mojo.getOutputDirectory(), target.getId() + ".tar" );
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Taskdef.execute()

    {
        antProject.addBuildListener(new MvnLogBuildListener(log));
        Taskdef taskdef = (Taskdef) antProject.createTask( "taskdef" );
        taskdef.init();
        taskdef.setResource( "cloverlib.xml" );
        taskdef.execute();
    }

    /**
     * Wait 2*'flush interval' milliseconds to ensure that the coverage data have been flushed to the Clover database.
     *
 
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.TempFile.execute()

            String tempFileProperty = getClass().getName() + String.valueOf(counter++);
            File tmp = FILE_UTILS.resolveFile(project.getBaseDir(),
                    project.getProperty("java.io.tmpdir"));
            tempFileTask.setDestDir(tmp);
            tempFileTask.setProperty(tempFileProperty);
            tempFileTask.execute();
            outputFile = new File(project.getProperty(tempFileProperty));
        } else {
            outputFile = new File(toDir, "junit-noframes.html");
        }
        xsltTask.setOut(outputFile);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.