차이점을 무시하도록 BOM 업데이트 구성

선택적으로 BOM과 XOM 간의 특정 차이점을 무시하도록 BOM 업데이트 기능을 구성할 수 있습니다.

BOM 파일 업데이트를 위해 새 특성이 있는 .cfg 파일을 추가하는 경우 BOM 업데이트를 실행할 때 발견된 차이점을 필터링할 수 있습니다. 즉, BOM 업데이트 기능은 표시하지 않으려는 차이점을 필터링합니다. 하지만 BOM과 XOM의 차이점을 무시하는 것이 반드시 해당 차이점이 수정되지 않도록 방지하지는 않습니다. BOM 메소드 및 속성은 조치로도 업데이트할 수 있습니다. 예를 들어, 무시한 속성이 BOM과 XOM 클래스의 유일한 차이점인 경우 BOM 업데이트 기능이 조치를 제안하지 않습니다. 하지만 동일한 BOM 클래스에서 다른 속성을 변경하는 경우, BOM 업데이트 조치는 무시하도록 선택한 속성을 포함하여 전체 클래스를 업데이트합니다.

.cfg 파일은 적용할 .bom 파일과 동일한 디렉토리에 있어야 합니다. 파일의 이름은 .bom 파일과 일치해야 하지만 파일 확장자는 .cfg입니다.

값은 쉼표로 구분된 glob입니다. 각 glob 앞에는 더하기 "+" 기호(포함) 또는 빼기 "-" 기호(제외)가 와야 합니다. glob의 표시 순서가 중요합니다. "*" 및 "?"를 동등한 JRE REGEX로 바꿔서 glob를 REGEX로 변환하고 "." 및 "\"를 이스케이프합니다. 다른 모든 문자는 변환되지 않고 REGEX에 작성된 대로 표시됩니다. REGEX 앞에 "ˆ"가 오고 끝에는 "$"가 추가됩니다.

다음 예제에서는 어노테이션이 있는 .cfg 파일을 제공합니다.

/** This property ignores the following missing BOM elements:  
* + the 'ignore' package and all sub-packages  
* - except for the ignore.exception package and all sub-packages  
* + the XOM class 'bank.Loan'  
* + all classes in the 'branch' package as well as all sub-packages  
* + the method 'bank.Customer.doSomething' taking a java.lang.String  
* + all classes with 'test' in their package name  
* + the attribute bank.Customer.age  
* + classes starting with the name 'Test' followed by any 3 characters
*
* These classes/methods are not listed as missing from the BOM. 
*/  
update.ignoreMissingBomElement = +ignore.,\ 
-ignore.exception.*,\ 
+bank.Loan,\ 
+branch.*,\ 
+bank.Customer.doSomething[(]java.lang.String[)],\ 
+*.test.*,\ 
+bank.Customer.age,\ 
+*.Test???
/** This property ignores the following missing XOM elements: 
* + the BOM class 'new.BomClass' 
* 
* These classes/methods are not listed as missing from the XOM. 
*/  
update.ignoreMissingXomElement = +new.BomClass
/** This property ignores the following differences between BOM and XOM classes: 
* + all attributes on 'bank.Customer' 
* - except for the bank.Customer.name attribute 
* 
* These attributes/methods/domains are not analyzed for differences. 
*/  
update.ignoreDifferences = +bank.Customer.,-bank.Customer.name