Package org.apache.tools.ant.taskdefs

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


    {
        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

    private static final Logger LOGGER = Logger.getLogger(URLTasks.class);

    public static void downloadInto(URL url, Path downloadFolder) {
        FileTasks.mkdirs(downloadFolder);

        Get get = new Get();
        get.setSrc(url);
        get.setSkipExisting(true);
        get.setDest(downloadFolder.toFile());

        get.setProject(AntUtil.builder().getProject());
        get.setTaskName("get");

        get.execute();
    }
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.