Kuv yuav txheeb xyuas Ant installation li cas?
Kuv yuav txheeb xyuas Ant installation li cas?

Video: Kuv yuav txheeb xyuas Ant installation li cas?

Video: Kuv yuav txheeb xyuas Ant installation li cas?
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
  1. JAVA_HOME. Xyuas kom tseeb tias JDK yog ntsia , thiab JAVA_HOME tau teeb tsa raws li Windows ib puag ncig hloov pauv.
  2. Download Apache Ant . Mus saib Apache Ant official lub website, download tau lub Ant binary zip file, piv txwv li: apache- ant -1.9.
  3. Ntxiv ANT_HOME.
  4. Hloov kho PATH.
  5. Kev pov thawj .

Ib yam li ntawd, kuv yuav ua li cas thiaj paub tias tus ntsaum raug ntsia?

Nco ntsoov tias JAVA_HOME ib puag ncig hloov pauv tau teeb tsa rau JDK. Qhov no yog tsim nyog rau kev khiav Ant . Tshawb xyuas koj kev teeb tsa los ntawm kev qhib kab hais kom ua thiab ntaus ntawv ant -version rau hauv kab lus qhuas. Lub kaw lus yuav tsum nrhiav cov lus txib ant thiab qhia tus lej version ntawm koj ntsia Ant version.

Tsis tas li ntawd, kuv yuav hloov txoj kev ntawm tus ntsaum hauv Windows 10 li cas? Teeb Ant_Home:

  1. Ntxiv Ant_Home ntawm Advanced System Settings> Environment Variables> System Variables> Tshiab.
  2. Lub npe hloov pauv: ANT_HOME.
  3. Tus nqi sib txawv: Extracted Ant home path.
  4. Nyem rau ntawm pob tshiab thiab muab txoj hauv kev zoo li %ANT_HOME% hauv thiab nyem rau OK.

Qhov thib ob, Ant ntsia qhov twg?

Kev txhim kho Apache Ant Unzip cov ntaub ntawv zip mus rau qhov chaw yooj yim c: folder. siv Winzip, winRAR, 7-zip lossis cov cuab yeej zoo sib xws. Tsim ib qho chaw tshiab hloov pauv hu ua ANT_HOME uas taw qhia rau Ant installation folder, hauv qhov no c:apache- ant -1.8. 2-bin folder.

Yuav ua li cas koj ua tus kab hais kom ua kab?

Ua Ant siv a tsim ua ntaub ntawv lwm yam tshaj li tsim . xml, siv lus txib - kab xaiv -buildfile cov ntaub ntawv, qhov twg cov ntaub ntawv yog lub npe ntawm cov tsim cov ntaub ntawv koj xav siv (los yog ib phau ntawv uas muaj a tsim.

Pom zoo: