databases 디렉토리에 이미 생성하고자 하는 데이터베이스명으로 된 디렉토리가 존재할 경우 오류처리가 되지 않고 데이터베이스 생성 프로세스로 넘어가서 CM Server로부터도 정상적인 오류 메시지를 받지 못하는 문제로
-- 목적 데이터베이스명(디렉토리명)으로 된 디렉토리가 존재하지 않을 경우
task:checkdir
status:success
note:none
noexist:C:\CUBRID\databases\testdb
-- 이미 존재할 경우
task:checkdir
status:success
note:none
서버에 연결할 수 없습니다. CUBRID 매니저 서버의 구동 상태와 연결 설정(Port,IP등)을 점검하십시오.와 같은 오류 메시지가 출력되어 왔습니다. 데이터베이스 생성전 디렉토리 검사 프로세스에서 존재시 오류 메시지를 출력하는 것이 더 좋은 방법이라 생각되어 오류 메시지를 추가하였습니다.
-- 목적 데이터베이스명(디렉토리명)으로 된 디렉토리가 존재하지 않을 경우
task:checkdir
status:success
note:none
noexist:C:\CUBRID\databases\testdb
-- 이미 존재할 경우
task:checkdir
status:success
note:none
// if a directory is not exists, display a alert window.
if (dirs == null || dirs.length == 0) {
Display.getDefault().syncExec(new Runnable() {
public void run() {
CommonTool.openErrorBox(getShell(),
Messages.bind(Messages.msgExistDbFound, databaseName));
isCanFinished = false;
getShell().setVisible(true);
}
});
}
if (dirs == null || dirs.length == 0) {
Display.getDefault().syncExec(new Runnable() {
public void run() {
CommonTool.openErrorBox(getShell(),
Messages.bind(Messages.msgExistDbFound, databaseName));
isCanFinished = false;
getShell().setVisible(true);
}
});
}
