Quantcast
Channel: プログラム の個人的なメモ
Viewing all articles
Browse latest Browse all 860

【Ant】Antで環境変数を使用する

$
0
0

■ 環境変数を取得するには(例:JAVA_HOME)

<!-- [1] 環境変数を取り込む --><property environment="env"/><!-- [2] ${env.【環境変数】}で取得する --><echo message="${env.JAVA_HOME}" level="info" />

サンプル

<?xml version="1.0" encoding="UTF-8" standalone="no"?><project basedir="." default="sample.path" name="SampleJava"><property environment="env"/><target name="sample.path"><echo message="${env.JAVA_HOME}" level="info" /></target></project>


関連記事

【Ant】【Eclipse】 Eclipse 内のAntを使用する

https://blogs.yahoo.co.jp/dk521123/35292040.html

Viewing all articles
Browse latest Browse all 860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>