[right click]

1. project > Build Project

  • .class 파일 빌드 경로에 있는 모든 파일을 컴파일하고 .class 파일을 지정한 폴더에 넣습니다.
  • 상단 Project 메뉴에서 Build Automatically 설정하면 빌드경로에서 소스파일을 추가, 삭제 또는 수정 시 자동으로 build 되므로 수동으로 build를 호출할 필요가 없습니다.
  • .class 파일 빌드 경로 : D:\TEST_PROJECT\workspace\test\.classpath

2. server > Publish 

  • 컴파일된 프로젝트 resources를 올바른 위치로 복사하여 Tomcat 인스턴스에 애플리케이션을 배포합니다.
  • 새로 변경된 프로젝트 resources가 해당됨.
  • 서버경로 : Overview (server) > Server Locations > Server path 
  • 배포 경로: Overview (server) > Server Locations > Deploy path 

3. server > Clean...

  • 프로젝트 빌드 경로에 있는 모든 파일을 컴파일하고 Tomcat 인스턴스에 애플리케이션을 재배포합니다.
  • Tomcat 인스턴스가 실행중인 경우 해당 작업을 수행하지 않습니다.

4. server > Clean Tomcat Work Directory...

  • Tomcat 인스턴스 실행중에 jsp 파일명 등 변경 시 수행 가능합니다.
  • 해당 작업을 수행 시 서버에서 jsp 컴파일 후 저장하는 폴더를 clear 하게 됩니다. 기존 작업파일은 서버 경로에서 삭제합니다.

(eclipse > Server(tomcat) 우클릭 시 탭에서 Publish, Clean, Clean Tomcat Work Directory 옵션을 확인할 수 있습니다.)

 

[참고 사이트]

https://stackoverflow.com/questions/5656989/eclipse-difference-between-clean-build-and-publish

 

Eclipse: Difference between clean, build and publish

I am using eclipse with tomcat. On the server (right-click)tab you have the options: Clean, Publish and Clean Tomcat Work directory, What do these options really do and how are they different from

stackoverflow.com

http://wiki.eclipse.org/WTP_Tomcat_FAQ

 

WTP Tomcat FAQ - Eclipsepedia

Contents 1 General 2 Getting Started 3 Information 4 Troubleshooting General What should I know about this FAQ? This FAQ includes frequently asked questions and other useful information about the support for Apache Tomcat servers in WTP 1.5.x, 2.0.x, and 3

wiki.eclipse.org

https://help.eclipse.org/latest/index.jsp?topic=/org.eclipse.wst.server.ui.doc.user/topics/tpublish.html 

 

Help - Eclipse Platform

 

help.eclipse.org

 

728x90

'Eclipse' 카테고리의 다른 글

[Eclipse] 줄 간격 설정 (자동 줄바꿈)  (0) 2020.08.19
[Eclipse] Code Template 등록 및 실행 방법  (0) 2020.08.18

+ Recent posts