2014년 1월 9일 목요일

eclipse 파일 합치기

프로시저는 보통 eclipse 에 올려서 코드 저장소 에서 관리한다(svn, git 등)
문제는 마이그래이션 할때나 적용할대 eclipse 에서 실행 시키면
delimeter 때문에 오류가 난다.

버그를 찾아보니 2013.8월에올린 질문에 버그로 올라와 있고.. 대답이 없다.

걍 ant 로 합쳐서 사용하자

<project name="test"  default="all"  basedir=".">
<target name="concatfiles">
<concat destfile="./deploySql/all_procedure.sql" encoding="UTF-8" >
<fileset dir="." includes="Create_Procedure/**/*.sql"/>
</concat>
</target>

<target name="concatfiles1">
<concat destfile="./deploySql/all_function.sql" encoding="UTF-8" >
<fileset dir="." includes="Create_Function/**/*.sql"/>
</concat>
</target>

<target name="concatfiles2">
<concat destfile="./deploySql/all_game_schema.sql" encoding="UTF-8" >
<fileset dir="." includes="CreateGameSchema/**/*.sql"/>
</concat>
</target>

<target name="concatfiles3">
<concat destfile="./deploySql/all_log_schema.sql" encoding="UTF-8" >
<fileset dir="." includes="CreateLogSchema/**/*.sql"/>
</concat>
</target>

<target name="all">
<antcall target="concatfiles" />
<antcall target="concatfiles1" />
<antcall target="concatfiles2" />
<antcall target="concatfiles3" />
</target>
</project>