Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
import-tool-1.06.02
-
None
Description
Currently, the binary and xml file extensions are hard-coded:
public final class ImportToolConst { public static final String[] BINARY_EXTENSIONS = new String[]{"pdf", "gif", "jpg", "jpeg", "png", "doc", "bmp", "psd", "xls", "ai", "swf", "qt", "zip", "rar", "tif", "gz", "gzip", "au", "asf", "asx", "avi", "wav", "csv"}; public static final String[] XML_EXTENSIONS = new String[]{"xml"};
In project, we'd like to allow to add a classpath configuration (e.g, classpath:META-INF/org/onehippo/forge/import-tool/ImportToolConst.properties) like the following example:
binary.extensions = pdf, gif, ..., csv, docx xml.extensions = xml
So, project implementation doesn't have to be bothered by the hard-coded file extensions. Instead they can add the custom properties to add specific file extensions.