2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Salesforce Migration Tool(Ant移行ツール)のインストール方法について(Mac)

2
Posted at

Salesforceの主にCore機能で使用するMigration Tool(通称Ant移行ツール)をMacで導入する方法を簡単に整理します。

  1. https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmlからJava SE 8をインストールします。
  2. http://ant.apache.org/からバージョン1.6以降で適当に選んでローカルにzipをダウンロードして解凍します。
  3. 解凍したフォルダを/usr/local/bin/に移動します。
    • コマンド:mv apache-ant-1.10.5 /usr/local/bin/
  4. 起動時にPATHを通すようにするために、.bash_profileに下記を追記します。
    • コマンド:vi ~/.bash_profile
    • 追記内容:
      • ANT_HOME=/usr/local/bin/apache-ant-1.10.5
      • export PATH=$ANT_HOME/bin:$PATH
  5. 即時反映させます。
    • コマンド:source ~/.bash_profile
  6. ant -versionで正しくコンパイルが成功していることを確認します。
    • Apache Ant(TM) version 1.10.5 compiled on July 10 2018
  7. Summer '18 Ant 移行ツールの .zip ファイルをダウンロードします。(その時の最新のフォルダをインストールします。)
  8. Ant移行ツールは、ダウンロードしたフォルダの中にあるant-salesforce.jarが本体なので、これをAntlibディレクトリにコピーします。(最新版のツールに置き換える場合は、このjarを入れ替えます。)
    • コマンド:cp ~/Downloads/salesforce_ant_43.0/ant-salesforce.jar /usr/local/bin/apache-ant-1.10.5/lib/

次回は、具体的な使用方法をまとめたいと思います。

[参照]
https://developer.salesforce.com/docs/atlas.ja-jp.apexcode.meta/apexcode/apex_deploying_ant.htm

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?