Ant高级入门

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

AntJavaTMAntJavaAntAntbuildfileJavaAntAntJavaEclipseIDEAntAntAntAntAntEclipseAntEclipseEclipseEclipse.orgEclipseJavaAntAntAntAntAntCVSAntJavaAntAntAntMattChapman1996HursleyIBMCentreforJavaTechnologyJavaJavaSwingAWTEclipseMattSunJavamchapman@uk.ibm.comAntAntAntApacheAntJavaJamesDuncanDavidsonanotherneattoolCC++makeshellAntmakeshellJavaAntJavaAntJavaAntAntAntAntAntTomcatTomcatJavaServletJavaServerPages(JSP)servletTomcatApacheApacheJakartaJavaAntJakartaJakarta20007AntJava200211AntApacheAnt1.5.41.1JDK1.6betaJDK1.22.0Ant2.0AntAntAntXMLAntXMLAntprojecttargettargettargettargettargetprojectdefaultAnttarget?xmlversion=1.0?projectdefault=inittargetname=init/target/projectXMLXMLXMLAnttargettargetname=init/?xmlversion=1.0?projectdefault=initname=ProjectArgondescriptionAsimpleprojectintroducingtheuseofdescriptivetagsinAntbuildfiles./description!--XMLcommentscanalsobeused--targetname=initdescription=InitializeArgondatabase!--performinitializationstepshere--/target/projectXMLAntdescriptiondescriptionAntAntJavaStringAntAntpropertyname=metalvalue=beryllium/${metal}propertyname=metal-databasevalue=${metal}.db/AntJavaAntAnt${user.home}Ant${ant.version}Ant${basedir}projectbasedir/\Antlocationlocationvaluepropertyname=database-filelocation=archive/databases/${metal}.db/locationpropertyname=database-filelocation=archive\databases\${metal}.db/DOSJavaJavaArchiveFileJARJARtargetAntmaketargetdependstargetname=init/targetname=preprocessdepends=init/targetname=compiledepends=init,preprocess/targetname=packagedepends=compile/AntAntcompileinitpreprocessinitAntpreprocesstargetinitAntpreprocesscompiledependsAntApacheAntAntUNIXLinuxshellWindowsAntIDEIDEAntIDEIDEAntAntEclipseAntEclipseAntAntantAntAntAntAntBuildfile:build.xmlinit:[mkdir]Createddir:E:\tutorials\ant\example\build[mkdir]Createddir:E:\tutorials\ant\example\distcompile:[javac]Compiling8sourcefilestoE:\tutorials\ant\example\builddist:[jar]Buildingjar:E:\tutorials\ant\example\dist\example.jarBUILDSUCCESSFULTotaltime:2secondsmakemakefileAntbuild.xmlAnt-buildfilefile-ffile-Dname-Dmetal=beryllium-DIDEAntIDEIDEJEditJextBorlandJBuilderIntelliJIDEAJavaDevelopmentEnvironmentforEmacs(JDEE)NetBeansIDEEclipseWebSphere®StudioApplicationDeveloperAntIDEEclipseAntEclipseAntEclipseAntEclipseAntproCtrl-Spaceproperty(outline)AntAntEclipseAntbuild.xmlEclipseAntEclipseRunAnt...RunAntEclipseConsoleEclipseEclipsebuild.xmlAntWindow=PreferencesWorkbenchFileAssociationsmybuild.xml.xmlplugin.xmlEclipse*.xmlAnteditorJavaAntAntJavaJARAntAntJavajavacJavaJavajavacsrcdir=src/src.javajavacdestdirAnt•classpathjavac-classpath•debug=truejavacjavaccleanAntAntjavacJavaAntjavacAntJavaJVMJavajavacJVMAntJVMAntJARAntjavacAntJVMjavacforktruejavacsrcdir=srcfork=true/javacjavacsrcdir=srcfork=trueexecutable=d:\sdk141\bin\javacmemoryMaximumSize=128m/AntJikesGNUGNUCompilerCollectionGCCGCIbuild.compilerjavacjavaccompilerjavacAntJARJavaJARzipJARJARAntjarjardestfile=package.jarbasedir=classes/package.jarJARclassesJARAntmanifestJARmanifestjarJARjardestfile=package.jarbasedir=classesmanifestattributename=Built-Byvalue=${user.name}/attributename=Main-classvalue=package.Main//manifest/jarJARziptstampinittstamp/tstampAnttstampDSTAMPyyyymmdd20031217TSTAMPhhmm1603TODAY20031217JARjardestfile=package.jarbasedir=classes/tstampJARjardestfile=package-${DSTAMP}.jarbasedir=classes/20031217JARpackage-20031217.jartstampformattstampformatproperty=OFFSET_TIMEpattern=HH:mm:ssoffset=10unit=minute//tstampOFFSET_TIME10java.text.SimpleDateFormatJavasrcbuilddistJARJavasrcHellWorldJavaclasspathJARjavacclasspath?xmlversion=1.0?projectdefault=distname=ProjectArgondescriptionAsimpleJavaproject/descriptionpropertyname=srcDirlocation=src/propertyname=buildDirlocation=build/propertyname=distDirlocation=dist/targetname=inittstamp/mkdirdir=${buildDir}/mkdirdir=${distDir}//targettargetname=compiledepends=initjavacsrcdir=${srcDir}destdir=${buildDir}//targettargetname=distdepends=compilejardestfile=${distDir}/package-${DSTAMP}.jarbasedir=${buildDir}manifestattributename=Built-Byvalue=${user.name}/attributename=Main-Classvalue=package.Main//manifest/jarjardestfile=${distDir}/package-src-${DSTAMP}.jarbasedir=${srcDir}//targettargetname=cleandeletedir=${buildDir}/deletedir=${distDir}//target/projectsrcBuildfile:build.xmlinit:[mkdir]Createddir:E:\tutorial\javaexample\build[mkdir]Createddir:E:\tutorial\javaexample\distcompile:[javac]Compiling10sourcefilestoE:\tutorial\javaexample\builddist:[jar]Buildingjar:E:\tutorial\javaexample\dist\package-20031217.jar[jar]Buildingjar:E:\tutorial\javaexample\dist\package-src-20031217.jarBUILDSUCCESSFULTotaltime:5secondsJARjava-jarpackage-20031217.jarJARAntJavaAntAntmkdirWindowsUNIX/Linuxmkdirdir=archive/metals/zinc//UNIXLinuxAnt\AntmkdirarchivemetalsmkdirmetalsmkdirzincAntmkdirdeletedir=archive/metals/zinc/filedirAntcopyfile=src/Test.javatofile=src/TestCopy.java/movemovefile=src/Test.j

1 / 23
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功