Ant 作業 - undeploy
undeploy 作業可用來從 Liberty 伺服器移除應用程式。
說明
undeploy 作業支援從 Liberty 伺服器取消部署單一應用程式。
屬性
下表說明 undeploy 作業的屬性。
屬性 | 說明 | 必要 |
---|---|---|
installDir | Liberty 伺服器的位置。 | 是 |
serverName | Liberty 伺服器實例的名稱。預設值為 defaultServer。 | 否 |
userDir | ${wlp_user_dir} 變數的值。 預設值為 ${installDir}/usr/servers/${serverName}。 | 否 |
outputDir | ${wlp_output_dir} 變數的值。 預設值為 ${installDir}/usr/servers/${serverName}。 | 否 |
file | 要移除的應用程式名稱。 應用程式類型可以是 war、eba、zip、rar 或 jar。 | 是 |
timeout | 取消部署順利完成之前的等待時間。 預設值為 30 秒。以毫秒為單位。 | 否 |
ref | 參照現有的伺服器作業定義,以重複使用它的伺服器配置。 當設定其他必要的屬性時,這個值可以是空值。 | 否 |
範例
這個範例顯示如何在您的 build.xml 檔中使用 undeploy 作業:
<wlp:undeploy ref="wlp.ant.test" file="SimpleOSGiApp.eba" timeout="60000" />