Class ResourceModifier


  • public class ResourceModifier
    extends java.lang.Object
    Steps to update:
     - Delete all files in the src/main/resources/META-INF/resources/primefaces-extensions/ckeditor/ directory
     - extract new ckeditor files
     - remove samples dir
     - Look for CRLF breaks the ckeditor.js such as tableselection.css that might break our parser
     - Before executing ResourceModifier, modify the short hash (e.g t=L7C8) to match a new version of CKEditor
     - Execute ResourceModifier
     - Try to run CKEditor and observe if any error occurs on both browser console and server console
        - The most common error is "Resources not found". If that's the case, please check if any new plugins's resources that
          need to be modified then add new rules inside ResourceModifier if needed
        - Re-run ResourceModifier
     
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int indexOf​(java.lang.CharSequence seq, java.lang.CharSequence searchSeq, int startPos)  
      static boolean isEmpty​(java.lang.CharSequence cs)  
      static void log​(java.lang.String message)  
      static void main​(java.lang.String[] args)  
      static java.lang.String replace​(java.lang.String text, java.lang.String searchString, java.lang.String replacement)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceModifier

        public ResourceModifier()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • indexOf

        public static int indexOf​(java.lang.CharSequence seq,
                                  java.lang.CharSequence searchSeq,
                                  int startPos)
      • replace

        public static java.lang.String replace​(java.lang.String text,
                                               java.lang.String searchString,
                                               java.lang.String replacement)
      • isEmpty

        public static boolean isEmpty​(java.lang.CharSequence cs)
      • log

        public static void log​(java.lang.String message)