Ignore:
Timestamp:
10/09/06 20:10:36 (6 years ago)
Author:
anp
Message:

gestion correcte de la taille des ODG inclus dans un autre OD : exclusion du fichier settings.xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Jav_CO/com/scenari/s/co/odstorage/OdFile.java

    r6584 r6827  
    7474 
    7575        public static final String ODPATH_THUMBNAILS = "Thumbnails/"; 
     76     
     77    public static final String ODPATH_SETTINGS = "settings.xml"; 
    7678 
    7779        /** Attention : le fichier "mimetype" ne doit aps être compressé. */ 
     
    178180         * <li>META-INF/manifest.xml 
    179181         * <li>mimetype 
     182     * <li>(settings.xml) optionnel 
    180183         * </ul> 
    181184         *  
     
    338341         * Inclut un OD dans un autre OD dans le path spécifié. 
    339342         */ 
    340         public void includeOd(String pOdPath, IHSourceElem pSource) throws Exception { 
     343        public void includeOd(String pOdPath, IHSourceElem pSource, Boolean pRemoveSettings) throws Exception { 
    341344                if (pSource.hGetStatus() == IHSourceElem.STATUS_FILE) { 
    342345                        if (!pOdPath.endsWith("/")) 
     
    356359                                } else if (vOdPath.startsWith(ODPATH_THUMBNAILS)) { 
    357360                                        // Thumbnails, on ne les reprend pas. 
     361                }else if(pRemoveSettings.booleanValue() && vOdPath.startsWith(ODPATH_SETTINGS)){ 
     362                    // Settings, on ne le reprend pas. 
    358363                                } else if (vOdPath.equals(ODPATH_MIMETYPE)) { 
    359364                                        if (vMainMime == null || vMainMime.length() == 0) { 
Note: See TracChangeset for help on using the changeset viewer.