명령행에서 Update Manager 실행

설치 마법사와 구성 대화 상자 외에도, 명령행 모드에서 Eclipse를 실행하여 Update Manager 조작을 수행할 수 있습니다. 기능을 설치 또는 갱신하거나, 사용 또는 사용 안함으로 설정하거나, 설치된 기능 또는 갱신 사이트에서 사용할 수 있는 기능을 나열하거나, 로컬 설치에 확장 제품 사이트를 추가할 수 있습니다.
또한 갱신 사이트에서 로컬 갱신 사이트 위치로 선택된 기능을 미러할 수도 있습니다.

다음과 같이 Eclipse를 실행하십시오. 여기서 [ ]는 선택적 인수를 의미하며 이탤릭체로 된 인수는 사용자가 제공해야 합니다.

원격 사이트에서 기능 설치:
java -cp startup.jar org.eclipse.core.launcher.Main
    -application  org.eclipse.update.core.standaloneUpdate
    -command install
    -featureId feature_id
    -version version
    -from remote_site_url
    [-to target_site_dir]

예제:: java -cp startup.jar org.eclipse.core.launcher.Main -application org.eclipse.update.core.standaloneUpdate -command install -from http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-update-home/optionalSite/ -featureId com.example.root -version 1.0.0


기존 기능 또는 모든 기능 갱신:
java -cp startup.jar org.eclipse.core.launcher.Main
    -application  org.eclipse.update.core.standaloneUpdate
    -command update
    [-featureId feature_id ]
    [-version version ]

지정된 기능 사용(구성):
java -cp startup.jar org.eclipse.core.launcher.Main
    -application  org.eclipse.update.core.standaloneUpdate
    -command enable
    -featureId feature_id
    -version version
    [-to target_site_dir]

지정된 기능 사용 안함(구성 취소):
java -cp startup.jar org.eclipse.core.launcher.Main
    -application  org.eclipse.update.core.standaloneUpdate
    -command disable
    -featureId feature_id
    -version version
    [-to target_site_dir]

지정된 기능 설치 제거:
java -cp startup.jar org.eclipse.core.launcher.Main
    -application  org.eclipse.update.core.standaloneUpdate
    -command uninstall
    -featureId feature_id
    -version version
    [-to target_site_dir]

-to target_site_dir이 지정된 위의 모든 명령에서는 지정된 디렉토리에 구성된 대상 사이트를 사용합니다. 위치를 지정하지 않으면 기본 로컬 제품 사이트를 사용합니다.

위의 명령에서 실제로 수행하지 않고 조작이 성공했는지, 즉 제한조건을 만족하는지 확인만 해야 하는 경우 -verifyOnly=true를 인수 목록에 추가하십시오.

원격 사이트를 검색하여 설치 시 사용 가능한 모든 기능 나열:
java -cp startup.jar org.eclipse.core.launcher.Main
    -application  org.eclipse.update.core.standaloneUpdate
    -command search
    -from remote_site_url

설치된 기능 나열:
java -cp startup.jar org.eclipse.core.launcher.Main
    -application  org.eclipse.update.core.standaloneUpdate
    -command listFeatures
    -from local_site_dir

기능은 다음과 같이 나열됩니다.
Site: site url
  Feature: id version enabled (or disabled)


추가 기능과 함께 로컬 사이트 추가:
java -cp startup.jar org.eclipse.core.launcher.Main
    -application  org.eclipse.update.core.standaloneUpdate
    -command addSite
    -from local_site_dir

로컬 사이트 제거:
java -cp startup.jar org.eclipse.core.launcher.Main
    -application  org.eclipse.update.core.standaloneUpdate
    -command removeSite
    -to local_site_dir

원격 사이트에서 기능 미러링:
java -cp startup.jar org.eclipse.core.launcher.Main
    -application  org.eclipse.update.core.standaloneUpdate
    -command mirror
    -from remote_site_url
    -to target_site_dir
    [-featureId feature_id ]
    [-version version ]
    [-mirrorURL mirror_site_url]

-mirrorURL을 지정할 경우, 갱신 정책은 <target_site_dir>/policy.xml 파일에서 생성됩니다. 결과로 생성되는 policy.xml은 모든 기능을 미러 사이트에서 지정된 URL로 맵핑합니다. policy.xml을 있는 그대로 사용하거나 단편을 사용자 정의 디자인 정책 파일에 포함할 수 있습니다.

각 명령의 리턴 코드는 0(성공) 또는 1(실패)입니다.

또한 Eclipse 실행 파일이 받아들이는 대부분의 옵션이 전달될 수 있습니다. 이러한 옵션은 디버깅 중이나 설치된 기능의 대상 환경을 지정할 때 특히 유용합니다. 예를 들어, -data some_path 옵션을 전달하면 작업공간이 some_path로 설정됩니다.