ant -projecthelp命令

本文介绍了使用 AppFuse 框架进行 JavaEE 开发时可用的各种 Ant 构建任务,包括清理、编译、部署等多个阶段的任务详情,有助于开发者理解和配置自动化构建流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

查看工程完整任务列表命令:ant -projecthelp

appfuse complete list of tasks:

F:\workspace\javaee\myapp>ant -projecthelp
Buildfile: F:\workspace\javaee\myapp\build.xml
Trying to override old definition of datatype resources

Main targets:

 bin                  creates zip file with war, jdbc drivers, and XML file
 checkstyle           Check code style for compliance with coding standards
 clean                Removes build artifacts
 compile              alias for compile-web
 compile-dao          Compile dao module
 compile-service      Compile service module
 compile-web          Compile web module
 copy-resources       Copy .properties and .xml files from source directory
 copy-web-files       Copy static files
 db-create            create database for ${database.type}
 db-drop              drops database tables
 db-export            Exports the current data in the database
 db-load              Loads the database with sample data
 db-prepare           creates database tables
 deploy               unwar into the servlet container's deployment directory
 deploy-test-reports  Deploys Generated JUnit test reports to server
 deploy-war           Deploy '${webapp.name}.war' to local Tomcat
 deploy-web           deploy only web classes to servlet container's deploy dire
ctory
 dist                 create zip and tar.gz of entire directory for distribution

 docs                 runs javadoc, todo, checkstyle and pmd tasks
 emma                 turns on EMMA instrumentation/reporting
 hibernatedoclet      Generate Hibernate mapping files
 init                 defines custom tasks
 install              Install application in Tomcat
 java2html            creates HTML pages of code for online viewing
 javadoc              Generate JavaDoc API docs
 jsp-2                Convert JSP 1.2 tags (i.e. JSTL) to JSP 2.0
 list                 List Tomcat applications
 new                  creates a new project with the specified name
 package-dao          Package DAO JAR
 package-web          Package WAR
 ping-tomcat          pings tomcat to make sure it's running
 pmd                  Locates unused imports, unused variables, etc.
 prepare              create target directories
 refresh              Undeploys, cleans, then re-deploys
 reload               Reload application in Tomcat
 remove               Remove application in Tomcat
 setup                Sets up database, tomcat and deploys expanded war
 setup-db             creates database and populates by calling other tasks
 setup-tomcat         copies jdbc driver and context.xml to tomcat
 stage-web            Calls other targets to gather static resources
 start                Start Tomcat application
 start.tomcat         starts tomcat in the current console window
 stop                 Stop Tomcat application
 test-all             runs all tests for dao, service, web and jsp
 test-all-running     runs all tests for DAOs, Services, Controllers and JSPs
 test-canoo           Runs Canoo WebTests in Tomcat to test JSPs
 test-dao             Test dao module
 test-jsp             Runs Canoo WebTests using Cargo
 test-reports         Generate test reports
 test-service         Test service module
 test-web             Test web module
 todo                 creates report of todos in code
 undeploy             undeploy war file to servlet container's deployment dir
 war                  alias for package-web
 webdoclet            Generate JSP TLD and other web artifacts
 wiki                 downloads files from wiki for doco
Default target: package-web

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值