[opencms-dev] Folder Synchronization Exclusion lists?

Tim Daschner timd at thedoleco.com
Wed Apr 22 18:39:30 CEST 2009


Thank you everyone for your responses! I am going to try Nikolas Lotz's idea
and see how it goes.

on a related note: how does one request new features for opencms? OR if
someone has suggestions for the product, how does one provide those
suggestions?

Thanks again,

Tim

On Wed, Apr 22, 2009 at 3:50 AM, Nikolas Lotz <nlotz at nde.ag> wrote:

> I just wrote my own version of 'CmsSynchronize.java' with
> a method that checks for resources to be omitted from sync:
>
> --- snip: CmsSynchronizeExtended.copyFromRfs(...) ------------
>
>        // now loop through all resources
>        for (int i = 0; i < res.length; i++) {
>
> [+]         if(omitResource(res[i].getName()))
> [+]             continue;
>
>            [...]
>        }
>
> --- snap ------------------------------------------------------
>
> --- snip: CmsSynchronizeExtended.omitResource(...) ------------
>
> [+]     public boolean omitResource(String name) {
> [+]
> [+]         if(name.equals("CVS"))      // CVS metadata
> [+]             return true;
> [+]
> [+]         if(name.startsWith("."))    // .svn, .something
> [+]             return true;
> [+]
> [+]         if(name.endsWith(".swp"))   // VI swap files
> [+]             return true;
> [+]
> [+]         return false;
> [+]     }
>
> --- snap -------------------------------------------------------
>
> --
> Nikolas Lotz                            voice   : +49-40-559 51 75
> NDE Netzdesign und -entwicklung AG      fax     : +49-40-559 51 77
> Postfach 61 03 15                       mobile  : +49-163-758-6751
> D-22423 Hamburg                         e-mail  : nlotz at nde.ag
>
>        Vorsitzende des Aufsichtsrates: Angelika Mozdzen
>          Sitz und Registergericht: Hamburg, HRB 90934
>                  Vorstand: Jens-U. Mozdzen
>                   USt-IdNr. DE 814 013 983
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090422/7f7bc9e7/attachment.htm>


More information about the opencms-dev mailing list