Examples of execute()


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

          fileSet.setDir(new File(paths[i]));
          fileSet.setIncludes("**/*");
          fileSet.setExcludes(sourceRootCopyFilter);
          copy.addFileset(fileSet);
        }
        copy.execute();
      }
    }
    if ((null != inpathDirCopyFilter) && (null != inpath)) {
      String[] paths = inpath.list();
      if (!LangUtil.isEmpty(paths)) {
View Full Code Here

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

    zip.execute();
    Delete delete = new Delete();
    delete.setProject(getProject());
    delete.setTaskName(getTaskName() + " - delete");
    delete.setDir(dir);
    delete.execute();
    Mkdir mkdir = new Mkdir();
    mkdir.setProject(getProject());
    mkdir.setTaskName(getTaskName() + " - mkdir");
    mkdir.setDir(dir);
    mkdir.execute();
View Full Code Here

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

        Echo echo = new Echo();
        echo.setProject(project);
        echo.setMessage("new version");
        echo.setFile(art);
        echo.execute();

        File dest = new File(
                "test/repositories/1/apache/resolve-simple/jars/resolve-simple-1.2.jar");
        FileUtil.copy(new File("test/repositories/1/org1/mod1.1/jars/mod1.1-1.0.jar"), dest, null);
View Full Code Here

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

        ExecTask execTask = (ExecTask) this.project.createTask("exec");
        Commandline commandLine =
            new Commandline(OPENOFFICE_EXECUTABLE
                + " -headless -accept=\"socket,host=127.0.0.1,port=8100;urp;\" -nofirststartwizard");
        execTask.setCommand(commandLine);
        execTask.execute();
    }
}
View Full Code Here

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

                    final Execute executor = new Execute(); // new LogStreamHandler ( attributes , Project.MSG_INFO , Project.MSG_WARN ) ) ;
                    executor.setAntRun(getProject());
                    executor.setWorkingDirectory(getProject().getBaseDir());
                    executor.setCommandline(commandLine);
                    try {
                        executor.execute();
                    } catch (final IOException ioe) {
                        throw new BuildException("Error running forked groovyc.", ioe);
                    }
                    final int returnCode = executor.getExitValue();
                    if (returnCode != 0) {
View Full Code Here

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

                                     + " class");
        }

        cmd.setExecutable(c.getName());
        ej.setJavaCommand(cmd);
        ej.execute(log.getProject());
        // otherwise ExecuteJava has thrown an exception
        return true;
    }

    /**
 
View Full Code Here

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

          unzip.setProject(project);
          unzip.setTaskName(taskName);
          unzip.setDest(destDir);
          unzip.setSrc(new File(paths[i]));
          unzip.addPatternset(patternSet);
          unzip.execute();
        }
      }
    }
    if ((null != sourceRootCopyFilter) && (null != sourceRoots)) {
      String[] paths = sourceRoots.list();
View Full Code Here

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

        project.init();
        FixCRLF fixCRLF = new FixCRLF();
        fixCRLF.setProject(project);
        fixCRLF.setSrcdir(destFile.getParentFile());
        fixCRLF.setIncludes(destFile.getName());
        fixCRLF.execute();
        return null;
    }
   
    protected List sort(List classes) {
    return classes;
View Full Code Here

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

            GZip gzipTask = new GZip();
            gzipTask.setProject( project );
            gzipTask.setDestfile( finalFile );
            gzipTask.setSrc( tarFile );
            gzipTask.execute();

            if ( !tarFile.delete() )
            {
                Exception e = new IOException( I18n.err( I18n.ERR_113_COULD_NOT_DELETE_FILE_OR_DIRECTORY, tarFile ) );
                log.error( e.getLocalizedMessage() );
View Full Code Here

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

        }

        Get get = (Get) AntUtils.createProject().createTask("get");
        get.setSrc(pomLocation);
        get.setDest(pom);
        get.execute();

        MavenProject p = createProjectFromPom(pom);

        List moduleDependencies = p.getOriginalModel().getDependencies();
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.