배포 환경에 따라 기본 등록 정보 파일과 기본값의 특정 설정을 대체하는 특정 배치 특정 등록 정보 파일이 있습니다. 내 Ant 빌드 스크립트가 두 속성 파일을 병합 (기본 값을 배포 특정 값으로 덮어 씀)하고 결과 속성을 새 파일로 출력하고 싶습니다. Ant를 사용하여 두 개의 다른 등록 정보 파일 병합
나는과 같이 그 일을 시도하지만 실패했습니다 :<target depends="init" name="configure-target-environment">
<filterset id="application-properties-filterset">
<filtersfile file="${build.config.path}/${target.environment}/application.properties" />
</filterset>
<copy todir="${web-inf.path}/conf" file="${build.config.path}/application.properties" overwrite="true" failonerror="true" >
<filterset refid="application-properties-filterset" />
</copy>
</target>
마크는 자신의 대답은 올바른 것으로 확신하고있어 일단 디버그 수준으로 변경하는 것이 좋습니다. –