이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Appendix A. Apache Ant


A.1. Installing Apache Ant

The Java build tool Apache Ant and the Trax plugin is a required installation of JBoss ModeShape. It is not required for the installation or normal operation of the JBoss Enterprise BRMS Platform. Apache Ant requires a correctly installed Java Runtime Environment (JRE).
If running a development workstation, Apache Ant may already be installed. The Apache Ant package from the Apache Ant website includes the Trax plugin but Red Hat Enterprise Linux includes it as a separate package.

Procedure A.1. Installing Apache Ant on Red Hat Enterprise Linux

  • Download and install Apache Ant and the Trax plugin on Red Hat Enterprise Linux Repository by issuing this command:
    [localhost]$ sudo yum install ant-trax
    Copy to Clipboard Toggle word wrap

Procedure A.2. Installing Apache Ant on Other Operating Systems

  1. Download and Extract

    Download the Apache Ant binary release from http://ant.apache.org/bindownload.cgi.
    Once it is downloaded, extract it in a preferred installation location, such as c:\Program Files\Apache\Ant\ or /opt/apache-ant-1.8/.
  2. Add the ANT_HOME Environment Variable

    Create an environment variable called ANT_HOME. This variable has to contain the path created in the previous step.
    • Do this on Red Hat Enterprise Linux by adding the following line to the ~/.bash_profile file, substituting the path with that created in the previous step.
      export ANT_HOME=/opt/apache-ant-1.8.1
      Copy to Clipboard Toggle word wrap
    • On Microsoft Windows, do this by clicking on the Start Menu, opening the Control Panel and then selecting System -> Advanced -> Environment Variables.
      Create a new variable, calling it ANT_HOME, and configure it to point to the directory created in the previous step.
  3. Include bin in the PATH

    Append the bin directory of the Ant installation to the PATH environmental variable.
    • On Unix/Linux systems, one does this simply by adding the following line to the ~/.bash_profile file after the one which sets the ANT_HOME variable:
      export PATH=$PATH:$ANT_HOME/bin
      Copy to Clipboard Toggle word wrap
    • On Microsoft Windows, do this task by opening the Control Panel and selecting System -> Advanced -> Environment Variables -> System Variables. Edit the PATH variable and append the text ;%ANT_HOME%\bin.
To test the Apache Ant installation, run ant -version from a command line shell. The output should look similar to this:
[localhost]$ ant -version
Apache Ant version 1.8 compiled on June 27 2008
Copy to Clipboard Toggle word wrap
To learn more about Apache Ant, visit the project's website at http://ant.apache.org.

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat