if (settingName.indexOf("do_not_use") > 0) {
continue;
}
// 1. determine root folder by pv
PublicationFolder targetFolder = null;
if (settingName.indexOf("pages_html") > 0 || settingName.indexOf("viewlabels") > 0) {
targetFolder = project.getPublicationRootFolderByName("docRoot");
}
if (settingName.indexOf("page_config_xml") > 0) {
targetFolder = project.getPublicationRootFolderByName("pageConfig");
}
// 2. crawl to folder by lv
System.out.println(" " + setting.getLanguageVariant().getRfcLanguageId());
targetFolder = targetFolder.getChildByName(setting.getLanguageVariant().getRfcLanguageId());
// 3. crawl to given folder by name
targetFolder = targetFolder.getChildByName(subFolderName);
// set folder
setting.setPublishedPages(targetFolder);
}
}