Package org.apache.tools.ant.taskdefs

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


            pomLocation = new URL(trunk + tag + moduleLocation + "pom.xml");
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }

        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


    {
        validate();

        final File file = getDest();

        final Get get = (Get)project.createTask( "get" );
        get.setDest( file );
        get.setSrc( m_url );
        get.execute();

        return file;
    }
View Full Code Here

        throws BuildException {
        validate();

        final File file = getDest();

        final Get get = (Get) project.createTask("get");
        get.setDest(file);
        get.setSrc(m_url);
        get.execute();

        return file;
    }
View Full Code Here

    }
   
    protected void downloadWithAnt(final URL url, final File outputFile) {
        Project p = new Project();
        p.addBuildListener(new AntJettyLoggerBuildListener(LOGGER));
        Get g = new Get();
        g.setProject(p);
        g.setSrc(url);
        g.setDest(outputFile);
        g.execute();
    }
View Full Code Here

                         final Project project) throws BuildException {
        validate();

        final File file = getDest();

        final Get get = new Get();
        get.setProject(project);
        get.setDest(file);
        get.setSrc(url);
        get.execute();

        return file;
    }
View Full Code Here

   
    protected void downloadWithAnt(final URL url, final File outputFile) {

        Project p = new Project();
        p.addBuildListener(new AntJettyLoggerBuildListener(LOGGER));
        Get g = new Get();
        g.setProject(p);
        g.setSrc(url);
        g.setDest(outputFile);
        g.execute();
    }
View Full Code Here

        }
        File outputFile = FileUtils.getFileUtils().createTempFile("se-",".file",null);
        outputFile.deleteOnExit(); // to be on the safe side.
        Project p = new Project();
        p.addBuildListener(new AntJettyLoggerBuildListener(log));
        Get g = new Get();
        g.setProject(p);
        g.setSrc(url);
        g.setDest(outputFile);
        g.execute();
        return outputFile;
    }
View Full Code Here

                    results.add(new Result(url, Result.COPIED, srcUrl));
                    succeeded = true;
                }
                else {
                   
                    Get get = new Get();
                    get.setProject(getProject());
                    get.setIgnoreErrors(false);
                   
                    //log("Downloading if applicable from " + srcUrl + " to file: " + toFile);              
                    get.init();
                    get.setSrc(srcUrl);
                    get.setUseTimestamp(true);
                    get.setDest(toFile);
                    get.setDescription(getDescription());
                    get.setLocation(getLocation());
                    get.setOwningTarget(getOwningTarget());
                    get.setVerbose(this.verbose);
                    get.setTaskName("get");
                    try {
                        final boolean got = get.doGet(Project.MSG_INFO, new VerboseProgress(System.out));

                        final int result = got
                                          ? Result.DOWNLOADED :
                                          Result.NOT_MODIFIED;
                       
View Full Code Here

    if (!toDir.isDirectory()) {
      throw new BuildException("The location refered to by 'toDir' is not a directory", getLocation());
    }

    get = new Get();
    copy = new Copy();
    get.setProject(getProject());
    copy.setProject(getProject());

    List<String> fileList = getFileList();
View Full Code Here

    if (!toDir.isDirectory()) {
      throw new BuildException("The location refered to by 'toDir' is not a directory", getLocation());
    }

    get = new Get();
    copy = new Copy();
    get.setProject(getProject());
    copy.setProject(getProject());

    List<String> fileList = getFileList();
View Full Code Here

TOP

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

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.