Package com.asakusafw.cleaner.bean

Examples of com.asakusafw.cleaner.bean.LocalFileCleanerBean


        int listSize = noEmptyDirList.size();
        List<LocalFileCleanerBean> list = new ArrayList<LocalFileCleanerBean>();
        for (int i = 0; i < listSize; i++) {
            // クリーニングディレクトリを設定
            LocalFileCleanerBean bean = new LocalFileCleanerBean();
            String dirKey = noEmptyDirList.get(i);
            String strDir = ConfigurationLoader.getProperty(dirKey);
            bean.setCleanDir(new File(strDir));

            // クリーニングパターンを設定
            String number = dirKey.substring(dirKey.lastIndexOf(".") + 1, dirKey.length());
            String pattarnKey = Constants.PROP_KEY_LOCAL_FILE_CLEAN_PATTERN + "." + number;
            String pattern = ConfigurationLoader.getProperty(pattarnKey);
            if (pattern == null || pattern.equals("")) {
                throw new CleanerSystemException(
                        this.getClass(), MessageIdConst.LCLN_PATTERN_NOT_FOUND, dirKey, strDir, pattarnKey);
            } else {
                bean.setPattern(pattern);
            }

            list.add(bean);
        }
View Full Code Here

TOP

Related Classes of com.asakusafw.cleaner.bean.LocalFileCleanerBean

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.