Cov txheej txheem:

Ant build yog dab tsi?
Ant build yog dab tsi?

Video: Ant build yog dab tsi?

Video: Ant build yog dab tsi?
Video: Kev hlub yog dabtsi thiab yog li cas tiag 2024, Tej zaum
Anonim

Ant yog Java-based tsim cuab yeej tsim los ua ib feem ntawm Apache qhib qhov project. Koj tuaj yeem xav tias nws yog Java version ntawm kev tsim. Ant scripts muaj cov qauv thiab sau hauv XML. Similar to ua, Ant lub hom phiaj tuaj yeem nyob ntawm lwm lub hom phiaj.

Tom qab ntawd, ib tus tuaj yeem nug, Kuv yuav tsim cov ntaub ntawv Ant tsim li cas?

Yuav ua li cas los tsim Ant tsim cov ntaub ntawv rau Java project uas twb muaj lawm hauv dab noj hnub

  1. Xaiv Cov Ntaub Ntawv> Export los ntawm cov ntawv qhia zaub mov tseem ceeb (lossis txoj nyem rau ntawm lub npe project thiab xaiv Export> Export…).
  2. Hauv Export dialog, xaiv General> Ant Buildfilesas hauv qab no:
  3. Nyem Next. Hauv Generate Ant Buildfilesscreen:
  4. Nyem Ua tiav, Dab Ntxwg Nyoog yuav tsim cov build.xmlfile nyob rau hauv qhov project directory raws li hauv qab no:

Kuj Paub, Ant hais kom ua dab tsi? Apache Ant yog ib lub tsev qiv ntawv Java thiab lus txib -line cuab yeej uas nws lub hom phiaj yog tsav cov txheej txheem piav qhia hauv kev tsim cov ntaub ntawv raws li lub hom phiaj thiab cov ntsiab lus txuas ntxiv nyob ntawm ib leeg. Lub ntsiab paub siv ntawm Ant yog tus tsim cov kev siv Java.

Tsis tas li ntawd, cov ntsaum ua haujlwm li cas?

Ant ua yog raws li peb lub blocks: cov dej num, lub hom phiaj thiab cov ntsiab lus txuas ntxiv. Ib txoj haujlwm yog ib chav ua haujlwm uas yuav tsum tau ua thiab tsim los ntawm me me atomic cov kauj ruam, piv txwv li compile qhov chaws los yog tsim Javadoc. Cov hauj lwm tuaj yeem muab faib ua cov hom phiaj. Lub hom phiaj tuaj yeem raug hu ncaj qha los ntawm Ant.

Ant lub hom phiaj yog dab tsi?

Ib Ant lub hom phiaj yog ib ntu ntawm cov dej num uas yuav tsum tau ua kom ua ib feem (lossis tag nrho) ntawm cov txheej txheem tsim. Ant lub hom phiaj yog txhais los ntawm tus neeg siv Ant . Yog li ntawd, dab tsi ua hauj lwm ib Ant lub hom phiaj muaj nyob ntawm seb tus neeg siv li cas Ant yog sim ua nyob rau hauv cov ntawv tsim.

Pom zoo: