feat: 발주기관 계정 메뉴 추가 건
parent
bf0cc86d1c
commit
99a0f7444f
|
|
@ -1 +1,2 @@
|
||||||
/target
|
/target
|
||||||
|
path.txt
|
||||||
208
2_apply.bat
208
2_apply.bat
|
|
@ -1,90 +1,140 @@
|
||||||
@echo off
|
@echo off
|
||||||
setlocal enabledelayedexpansion
|
setlocal enabledelayedexpansion
|
||||||
|
|
||||||
|
rem # ----------------------------------------------------------------------
|
||||||
|
rem # 환경 설정: path.txt에서 이클립스 경로를 읽고 워크스페이스 경로를 설정합니다.
|
||||||
|
rem # ----------------------------------------------------------------------
|
||||||
|
|
||||||
set source_prefix=src\main\webapp\
|
rem # target_directory를 현재 배치 파일이 실행되는 경로로 설정합니다.
|
||||||
set target_prefix=C:\Users\dbnt\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\geoinfo_admin\
|
set "target_directory=%~dp0"
|
||||||
set target_directory=C:\Users\dbnt\git\dbnt\geoinfo.or.kr\old-geoinfo-or-kr-admin\
|
set "path_file=%target_directory%path.txt"
|
||||||
|
set "eclipse_path="
|
||||||
|
|
||||||
rem For 192.168.10.20
|
rem # path.txt 파일이 존재하는지 확인합니다.
|
||||||
hostname | find "DESKTOP-9C42CR8" > nul
|
if not exist "%path_file%" (
|
||||||
if %errorlevel% == 0 (
|
echo [ERROR] "%path_file%"을 찾을 수 없습니다. 스크립트를 종료합니다.
|
||||||
set target_prefix=D:\app_geoinfo\app\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\old-geoinfo-or-kr-admin\
|
pause
|
||||||
set target_directory=D:\app_geoinfo\app\eclipse\workspace\old-geoinfo-or-kr-admin\
|
exit /b
|
||||||
) else (
|
|
||||||
echo goodbye
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
rem # path.txt에서 'eclipse='로 시작하는 라인을 찾아 이클립스 경로를 설정합니다.
|
||||||
|
for /f "tokens=1,* delims==" %%a in ('findstr /b "eclipse=" "%path_file%"') do (
|
||||||
|
set "eclipse_path=%%b"
|
||||||
|
)
|
||||||
|
|
||||||
|
if not defined eclipse_path (
|
||||||
|
echo [ERROR] "%path_file%"에서 이클립스 경로를 찾을 수 없습니다.
|
||||||
|
pause
|
||||||
|
exit /b
|
||||||
|
)
|
||||||
|
|
||||||
|
rem # 이클립스 설정 파일 경로를 만듭니다.
|
||||||
|
set "prefs_file=!eclipse_path!\configuration\.settings\org.eclipse.ui.ide.prefs"
|
||||||
|
|
||||||
|
if not exist "!prefs_file!" (
|
||||||
|
echo [ERROR] Eclipse 설정 파일을 찾을 수 없습니다: "!prefs_file!"
|
||||||
|
pause
|
||||||
|
exit /b
|
||||||
|
)
|
||||||
|
|
||||||
|
rem # 설정 파일에서 최근 워크스페이스 목록을 읽어옵니다.
|
||||||
|
for /f "tokens=1,* delims==" %%a in ('findstr /b "RECENT_WORKSPACES=" "!prefs_file!"') do (
|
||||||
|
set "workspaces_line=%%b"
|
||||||
|
)
|
||||||
|
|
||||||
|
rem # \n을 공백으로 치환하여 여러 경로가 있을 경우 첫 번째 경로만 가져옵니다.
|
||||||
|
set "workspaces_line_cleaned=!workspaces_line:\n= !"
|
||||||
|
for /f "tokens=1" %%w in ("!workspaces_line_cleaned!") do (
|
||||||
|
set "workspace_path=%%w"
|
||||||
|
)
|
||||||
|
|
||||||
|
rem # 경로에 포함된 이스케이프 문자(\\)를 단일 백슬래시(\)로 변경합니다.
|
||||||
|
set "workspace_path=!workspace_path:\\=\!"
|
||||||
|
|
||||||
|
rem # 드라이브 경로 형식이 'D\:\'와 같이 잘못된 경우 'D:\'로 바로잡습니다.
|
||||||
|
set "drive_letter=!workspace_path:~0,1!"
|
||||||
|
if /i "!workspace_path:~1,2!" == "\:" (
|
||||||
|
set "workspace_path=!drive_letter!:!workspace_path:~3!"
|
||||||
|
)
|
||||||
|
|
||||||
|
rem # 최종 target_prefix를 설정합니다.
|
||||||
|
set "target_prefix=!workspace_path!\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\geoinfo_admin\"
|
||||||
|
|
||||||
|
explorer "!target_prefix!"
|
||||||
|
|
||||||
|
echo target_prefix: "!target_prefix!"
|
||||||
|
|
||||||
|
set "source_prefix=src\main\webapp\"
|
||||||
|
|
||||||
|
echo --- File Copy Script Start (Robust Version) ---
|
||||||
|
echo.
|
||||||
|
|
||||||
|
rem for 루프는 각 줄을 서브루틴으로 넘기는 역할만 수행
|
||||||
for /f "delims=" %%i in (admin_list.txt) do (
|
for /f "delims=" %%i in (admin_list.txt) do (
|
||||||
set line=%%i
|
call :processLine "%%i"
|
||||||
|
|
||||||
if "!line:~-5!" == ".java" (
|
|
||||||
echo Skip
|
|
||||||
) else if "!line:~-4!" == ".xml" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
:: "src\main\resources\" Á¦°Å
|
|
||||||
set relative_path=!relative_path:*src\main\resources\=!
|
|
||||||
set target_file=%target_prefix%WEB-INF\classes\!relative_path!
|
|
||||||
) else if "!line:~-4!" == ".jsp" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-4!" == ".css" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-4!" == ".png" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-4!" == ".svg" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-3!" == ".js" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-4!" == ".svg" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-4!" == ".reb" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-4!" == ".png" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-6!" == ".woff2" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-5!" == ".woff" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-4!" == ".otf" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-11!" == ".properties" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
) else if "!line:~-4!" == ".gif" (
|
|
||||||
set source_file=%target_directory%!line!
|
|
||||||
set relative_path=!line:%source_prefix%=!
|
|
||||||
set target_file=%target_prefix%!relative_path!
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
rem Copy the source file to the target location, overwriting if necessary
|
|
||||||
echo Copying "!source_file!" to "!target_file!"
|
|
||||||
xcopy /i /Y "!source_file!" "!target_file!"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
rem pause
|
echo.
|
||||||
|
echo --- All operations completed. ---
|
||||||
|
pause
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
|
||||||
|
rem ======================================================
|
||||||
|
rem :processLine 서브루틴 - 실제 파일 처리 로직
|
||||||
|
rem ======================================================
|
||||||
|
:processLine
|
||||||
|
set "line=%~1"
|
||||||
|
|
||||||
|
rem 루프 시작 시 변수 초기화
|
||||||
|
set "source_file="
|
||||||
|
set "target_file="
|
||||||
|
set "relative_path="
|
||||||
|
|
||||||
|
rem #으로 시작하는 주석 라인 건너뛰기
|
||||||
|
if "!line:~0,1!" == "#" (
|
||||||
|
echo [SKIP] Comment: !line!
|
||||||
|
goto :eof
|
||||||
|
)
|
||||||
|
|
||||||
|
echo [PROCESS] !line!
|
||||||
|
|
||||||
|
rem .java 파일 건너뛰기
|
||||||
|
if "!line:~-5!" == ".java" (
|
||||||
|
echo [SKIP] Java source file.
|
||||||
|
goto :eof
|
||||||
|
)
|
||||||
|
|
||||||
|
set "source_file=%target_directory%!line!"
|
||||||
|
set "relative_path=!line:%source_prefix%=!"
|
||||||
|
|
||||||
|
rem .xml 파일은 WEB-INF\classes 경로로 처리
|
||||||
|
if "!line:~-4!" == ".xml" (
|
||||||
|
set "relative_path=!line:*src\main\resources\=!"
|
||||||
|
set "target_file=%target_prefix%WEB-INF\classes\!relative_path!"
|
||||||
|
) else (
|
||||||
|
rem 그 외 모든 파일 처리
|
||||||
|
set "target_file=%target_prefix%!relative_path!"
|
||||||
|
)
|
||||||
|
|
||||||
|
rem --- [수정된 부분] 파일 복사 실행 및 결과 출력 ---
|
||||||
|
if defined source_file (
|
||||||
|
if exist "!source_file!" (
|
||||||
|
echo [COPY]
|
||||||
|
echo FROM: "!source_file!"
|
||||||
|
echo TO: "!target_file!"
|
||||||
|
xcopy /i /Y "!source_file!" "!target_file!" > nul
|
||||||
|
|
||||||
|
rem xcopy 성공 여부 확인 (errorlevel이 0이면 성공)
|
||||||
|
if !errorlevel! == 0 (
|
||||||
|
echo -> SUCCESS
|
||||||
|
) else (
|
||||||
|
echo -> FAILED (Error Code: !errorlevel!)
|
||||||
|
)
|
||||||
|
) else (
|
||||||
|
echo [ERROR] Source file not found: "!source_file!"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
echo.
|
||||||
|
goto :eof
|
||||||
|
|
@ -9,3 +9,6 @@ src\main\java\geoinfo\admins\chLog\DownloadAppController.java
|
||||||
src\main\java\geoinfo\admins\notice\NoticeMngController.java
|
src\main\java\geoinfo\admins\notice\NoticeMngController.java
|
||||||
src\main\java\geoinfo\admins\user\GeneralUserMngController.java
|
src\main\java\geoinfo\admins\user\GeneralUserMngController.java
|
||||||
src\main\java\geoinfo\com\file\FileController.java
|
src\main\java\geoinfo\com\file\FileController.java
|
||||||
|
|
||||||
|
|
||||||
|
src\main\webapp\WEB-INF\views\admins\constructionProjectManagement\left.jsp
|
||||||
|
|
@ -77,9 +77,11 @@ img { border:0; }
|
||||||
<div class="menu-item active">
|
<div class="menu-item active">
|
||||||
<span style="cursor:hand" onClick="javascript:goUrl('construction-project-statistics-index', '${menuId}')"><img src="${pageContext.request.contextPath}/images/renew/arrow-right.png" /> 건설현장 통계</span>
|
<span style="cursor:hand" onClick="javascript:goUrl('construction-project-statistics-index', '${menuId}')"><img src="${pageContext.request.contextPath}/images/renew/arrow-right.png" /> 건설현장 통계</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="menu-item">
|
||||||
|
<span style="cursor:hand" onClick="javascript:goUrl('construction-project-statistics-index', '${menuId}')"><img src="${pageContext.request.contextPath}/images/renew/arrow-right.png" /> 발주기관 계정</span>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue