protected void addFilePathMapping ( BundlePathMapping bundlePathMapping , String pathMapping ) { long timestamp = 0 ; String filePath = resourceReaderHandler . getFilePath ( pathMapping ) ; if ( filePath != null ) { timestamp = resourceReaderHandler . getLastModified ( filePath ) ; List < FilePathMapping > filePathMappings = bundlePathMapping . getFilePathMappings ( ) ; boolean found = false ; for ( FilePathMapping filePathMapping : filePathMappings ) { if ( filePathMapping . getPath ( ) . equals ( filePath ) ) { found = true ; break ; } } if ( ! found ) { filePathMappings . add ( new FilePathMapping ( bundle , filePath , timestamp ) ) ; } } }
Adds the path mapping to the file path mapping