Uploaded image for project: '[Read Only] - Hippo Plugins'
  1. [Read Only] - Hippo Plugins
  2. HIPPLUG-1059

Import Tool - Support Custom BINARY and XML EXTENSIONS configuration

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            wko Woonsan Ko (Inactive)
            wko Woonsan Ko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: