Cov txheej txheem:

Yuav ua li cas kuv khiav Ant tsim nyob rau hauv dab noj hnub?
Yuav ua li cas kuv khiav Ant tsim nyob rau hauv dab noj hnub?

Video: Yuav ua li cas kuv khiav Ant tsim nyob rau hauv dab noj hnub?

Video: Yuav ua li cas kuv khiav Ant tsim nyob rau hauv dab noj hnub?
Video: PRESTIN - Hnub No Koj Yuav Ncaim Mus (Cover) 2024, Hlis ntuj nqeg
Anonim

Teeb tsa ntsaum tsim rau Java Workspace hauv dab noj hnub

  1. Qhib qhov project Java hauv Dab tuag .
  2. Txoj nyem rau qhov project.
  3. Mus rau Export.
  4. Hauv seem General xaiv Ant tsim cov ntaub ntawv thiab nyem "Next"
  5. Xaiv qhov project koj xav tau tsim , un-check "Tsim lub hom phiaj rau sau ua ke siv qhov project Dab tuag compiler", thiab nyem "Finish"

Xav txog qhov no, Ant tsim cov ntaub ntawv hauv dab noj hnub yog dab tsi?

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. Cov Ant UI raws li muab hauv Dab tuag los nrog thawj chav kawm Ant tsim - ntaub ntawv editor, suav nrog syntax highlighting, Content Assist, templates, thiab cov ntsiab lus formatting.

Qhov thib ob, koj ua li cas hauv dab noj hnub? Yuav tsim ib qhov project:

  1. Hauv qhov Project Explorer saib, xaiv koj qhov project. Rau qhov kev qhia, koj tuaj yeem xaiv qhov haujlwm HelloWorld koj tau tsim ua ntej.
  2. Nyem qhov Project> Tsim qhov project, lossis nyem lub cim tsim. ntawm toolbar.
  3. Koj tuaj yeem pom hauv Console saib cov zis thiab cov txiaj ntsig ntawm kev tsim cov lus txib.

Tom qab ntawd, lo lus nug yog, ua li cas koj khiav Ant tsim?

Khiav Ant buildfiles

  1. Nyob rau hauv ib qho ntawm cov kev pom navigation, xaiv cov ntaub ntawv XML.
  2. Los ntawm cov ntawv qhia zaub mov pop-up, xaiv Run Ant. Lub launch configuration dialog opens.
  3. Xaiv ib lossis ntau lub hom phiaj los ntawm Targets tab.
  4. (Yeem) Configure xaiv ntawm lwm tabs.
  5. Nyem Khiav.

Qhov twg zoo dua Ant lossis Maven?

Maven yog zoo dua rau kev tswj hwm kev vam meej (tab sis Ant yog ok nrog lawv thiab, yog tias koj siv Ant + Ivy) thiab tsim artefacts. Cov txiaj ntsig tseem ceeb los ntawm mav - nws lifecycle. Maven archetype yog lub zog muaj zog, uas tso cai rau koj los tsim qhov project sai. Ant yog zoo dua rau kev tswj cov txheej txheem tsim.

Pom zoo: