Package com.vst.webapp.util

Examples of com.vst.webapp.util.FTPUtil


        if (request.getParameter("update") != null) {

            Properties properties = new Properties();
            properties.load(new FileInputStream(FileHelper.getCurrentPath(request) + "WEB-INF/classes/ApplicationResources.properties"));

            FTPUtil ftpUtil = new FTPUtil(
                    properties.getProperty("update.ftpAddress"),
                    properties.getProperty("update.ftpUser"),
                    properties.getProperty("update.ftpPassword"));

            ftpUtil.setIgnoreFiles(properties.getProperty("update.ignoreFiles"));
            ftpUtil.setLogFile(properties.getProperty("update.logFile"));
            ftpUtil.copyFromFTP(
                    properties.getProperty("update.ftpFolder"),
                    FileHelper.getCurrentPath(request));

            mav.addObject("message", "Updated!");
View Full Code Here

TOP

Related Classes of com.vst.webapp.util.FTPUtil

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.