- 浏览: 3473825 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
wanglf1207:
EJB的确是个不错的产品,只是因为用起来有点门槛,招来太多人吐 ...
weblogic-ejb-jar.xml的元素解析 -
qwfys200:
总结的不错。
Spring Web Flow 2.0 入门 -
u011577913:
u011577913 写道也能给我发一份翻译文档? 邮件437 ...
Hazelcast 参考文档-4 -
u011577913:
也能给我发一份翻译文档?
Hazelcast 参考文档-4 -
songzj001:
DbUnit入门实战
Steve建议的顶级目标的名称及内容。
目标的名字 | 内容 |
Build | 构建应用系统 |
Test | 运行JUnit测试 |
Clean | 清空输出目录 |
Deploy | 将jar或war等文件装载到执行系统中 |
Publish | 输出源代码和二进制文件到发布站点 |
Fetch | 从CVS树得到最新源代码 |
docs/javadocs | 输出文档文件 |
All | 执行clean, fetch,build,test,dos/javadocs, deploy |
Main | 默认的构建过程 |
内建目标的名称 | 内容 |
Init | 初始化特性和执行其他初始化任务,读取个性化特性文件 |
Init-debug | 初始化调试特性 |
Init-release | 初始化发布特性 |
Compile | 执行实际编译 |
link/jar | 建立jar文件或等价文件 |
Staging | 在将应用程序转移到产品站点前执行预部署过程及测试 |
简单项目的开发目录结构
目录名 | 内容 |
bin | 存放普通的二进制文件和脚本文件 |
build | 用以存放构建结果的目录树,由ant创建且可以被"clean"目标清空 |
dist | 用以存放可发布的开发结果,由ant创建且可以被"clean"目标清空 |
doc | 手写文档 |
lib | 存放在构建应用系统时需要装入的java库 |
src | 存放java原码,目录的层次结构要符合包命名的要求。 |
ANT任务(ant tasks)一览
档案类任务
Audit/Coverage Tasks
编译类任务
部署类任务
文档类任务
EJB类任务
执行类任务
文件类任务
Java2扩展类任务
日志类任务
邮件类任务
其它杂类任务
.NET类任务
预编译类任务
属性类类任务
远程类任务
SCM(软件控制管理)类任务
测试类
Visual Age for Java类任务 Tasks
BUnzip2 |
解压缩用GZip 或 BZip2打包的文件. |
BZip2 |
用GZip 或 BZip2 算法将一些文件打包。这个任务不作依赖性检查,总会产生一个输出文件。 |
Cab |
生成 Microsoft CAB 格式的文件. 它同Jar or Zip 任务那样运行. 这个任务在windows平台上调用一个外部工具 cabarc (M$提供的), 因此这个工具必须在搜索路径上可以找到。 |
Ear |
An extension of the Jar task with special treatment for files that should end up in an Enterprise Application archive. |
GUnzip |
解压缩一个GZip文件. |
GZip |
将一些文件用GZip打包. |
Jar |
将一些文件用Jar打包. |
Jlink |
不赞成使用此任务.
请使用 Jar
或 Zip
任务的
|
Manifest |
生成一个清单文件. |
Rpm |
加载rpm 程序来构建一个linux安装文件. 这个任务目前只运行在linux以及支持rpm的unix平台上。 |
SignJar |
利用命令行工具javasign 来对一个zip或jar文件进行数字签名。 |
Tar |
生成一个tar文件. |
Unjar |
解压缩一个jar文件. |
Untar |
展开一个tar文件中包含的文件. |
Unwar |
解压缩一个war文件. |
Unzip |
解压缩一个zip文件. |
War |
An extension of the Jar
task with special
treatment for files that should end up in the |
Zip |
生成一个zip文件. |
JDepend |
Invokes the JDepend parser. This parser "traverses a set of Java source-file directories and generates design-quality metrics for each Java package". |
JProbe |
These tasks run the tools from the JProbe suite. This task was written using JProbe Suite Server Side 3.0. |
MMetrics |
Computes the metrics of a set of Java source files, using the Metamata Metrics/WebGain Quality Analyzer source-code analyzer, and writes the results to an XML file. |
Maudit |
Performs static analysis on a set of Java source-code and byte-code files, using the Metamata Metrics/WebGain Quality Analyzer source-code analyzer. |
Depend |
Determines which classfiles are out-of-date with respect to their source, removing the classfiles of any other classes that depend on the out-of-date classes, forcing the re-compile of the removed classfiles. Typically used in conjunction with the Javac task. |
Javac |
Compiles the specified source file(s) within the running (Ant) VM, or in
another VM if the |
JspC |
Runs the JSP compiler. It can be used to precompile JSP pages for fast initial invocation of JSP pages, deployment on a server without the full JDK installed, or simply to syntax-check the pages without deploying them. The Javac task can be used to compile the generated Java source. (For Weblogic JSP compiles, see the Wljspc task.) |
NetRexxC |
Compiles a NetRexx source tree within the running (Ant) VM. |
Rmic |
Runs the rmic compiler on the specified file(s). |
Wljspc |
Compiles JSP pages using Weblogic's JSP compiler, weblogic.jspc . (For non-Weblogic JSP compiles, see the JspC task. |
ServerDeploy |
Task to run a "hot" deployment tool for vendor-specific J2EE server. |
Javadoc/Javadoc2 |
Generates code documentation using the javadoc tool. The Javadoc2 task is deprecated; use the Javadoc task instead. |
Stylebook |
Executes the Apache Stylebook documentation generator. Unlike the command-line version of this tool, all three arguments are required to run the Stylebook task. |
EJB Tasks |
(See the documentation describing the EJB tasks.) |
Ant |
Runs Ant on a supplied buildfile, optionally passing properties (with possibly new values). This task can be used to build sub-projects. |
AntCall |
Runs another target within the same buildfile, optionally passing properties (with possibly new values). |
Apply/ExecOn |
Executes a system command. When the |
Dependset |
This task compares a set of source files with a set of target files. If any of the source files is newer than any of the target files, all the target files are removed. |
Exec |
Executes a system command. When the |
Java |
Executes a Java class within the running (Ant) VM, or in another VM if the
|
Parallel |
A container task that can contain other Ant tasks. Each nested task specified
within the |
Sequential |
A container task that can contain other Ant tasks. The nested tasks are
simply executed in sequence. Its primary use is to support the sequential
execution of a subset of tasks within the |
Sleep |
A task for suspending execution for a specified period of time. Useful when a build or deployment process requires an interval between tasks. |
Subant |
Calls a given target for all defined sub-builds. This is an extension of ant for bulk project execution. |
Waitfor |
Blocks execution until a set of specified conditions become true. This task is intended to be used with the Parallel task to synchronize a set of processes. |
Attrib |
Changes the permissions and/or attributes of a file or all files inside the specified directories. Currently, it has effect only under Windows. |
Checksum |
Generates a checksum for a file or set of files. This task can also be used to perform checksum verifications. |
Chgrp |
Changes the group ownership of a file or all files inside the specified directories. Currently, it has effect only under Unix. |
Chmod |
Changes the permissions of a file or all files inside the specified directories. Currently, it has effect only under Unix. The permissions are also UNIX style, like the arguments for the chmod command. |
Chown |
Changes the owner of a file or all files inside the specified directories. Currently, it has effect only under Unix. |
Concat |
Concatenates multiple files into a single one or to Ant's logging system. |
Copy |
Copies a file or Fileset to a new file or directory. |
Copydir |
Deprecated. Use the Copy task instead. |
Copyfile |
Deprecated. Use the Copy task instead. |
Delete |
Deletes either a single file, all files and sub-directories in a specified directory, or a set of files specified by one or more FileSet s. |
Deltree |
Deprecated. Use the Delete task instead. |
Filter |
Sets a token filter for this project, or reads multiple token filters from a specified file and sets these as filters. Token filters are used by all tasks that perform file-copying operations. |
FixCRLF |
Modifies a file to add or remove tabs, carriage returns, linefeeds, and EOF characters. |
Get |
Gets a file from a URL. |
Mkdir |
Creates a directory. Non-existent parent directories are created, when necessary. |
Move |
Moves a file to a new file or directory, or a set(s) of file(s) to a new directory. |
Patch |
Applies a "diff" file to originals. |
Rename |
Deprecated. Use the Move task instead. |
RenameExtensions |
Deprecated . Use the Move task with a glob mapper instead. |
Replace |
Replace is a directory-based task for replacing the occurrence of a given string with another string in selected file. |
ReplaceRegExp |
Directory-based task for replacing the occurrence of a given regular expression with a substitution pattern in a file or set of files. |
Sync |
Synchronize two directory trees. |
Tempfile |
Generates a name for a new temporary file and sets the specified property to that name. |
Touch |
Changes the modification time of a file and possibly creates it at the same time. |
Jarlib-available |
Check whether an extension is present in a FileSet or an ExtensionSet. If the extension is present, the specified property is set. |
Jarlib-display |
Display the "Optional Package" and "Package Specification" information contained within the specified jars. |
Jarlib-manifest |
Task to generate a manifest that declares all the dependencies in manifest. The dependencies are determined by looking in the specified path and searching for Extension/"Optional Package" specifications in the manifests of the jars. |
Jarlib-resolve |
Try to locate a jar to satisfy an extension, and place the location of the jar into the specified property. |
Record |
Runs a listener that records the logging output of the build-process events to a file. Several recorders can exist at the same time. Each recorder is associated with a file. |
A task to send SMTP email. |
|
MimeMail |
Deprecated . Use the Mail task instead. |
Defaultexcludes |
Modify the list of default exclude patterns from within your build file. |
Echo |
Echoes text to |
Fail |
Exits the current build by throwing a BuildException, optionally printing additional information. |
GenKey |
Generates a key in keystore. |
Input |
Allows user interaction during the build process by displaying a message and reading a line of input from the console. |
Script |
Executes a script in a Apache BSF -supported language. |
Sound |
Plays a sound file at the end of the build, according to whether the build failed or succeeded. |
Splash |
Displays a splash screen. |
Sql |
Executes a series of SQL statements via JDBC to a database. Statements can
either be read in from a text file using the |
Taskdef |
Adds a task definition to the current project, such that this new task can be used in the current project. |
TStamp |
Sets the |
Typedef |
Adds a data-type definition to the current project, such that this new type can be used in the current project. |
XmlValidate |
Checks that XML files are valid (or only well-formed). This task uses the XML parser that is currently used by Ant by default, but any SAX1/2 parser can be specified, if needed. |
.NET Tasks |
(See the documentation describing the .NET tasks.) |
ANTLR |
Invokes the ANTLR Translator generator on a grammar file. |
AntStructure |
Generates a DTD for Ant buildfiles that contains information about all tasks currently known to Ant. |
IContract |
Instruments Java classes using the iContract DBC preprocessor. This task can generate a properties file for iControl , a graphical user interface that lets you turn on/off assertions. |
Import |
Import another build file and potentially override targets in it with targets of your own. |
JavaCC |
Invokes the JavaCC compiler-compiler on a grammar file. |
Javah |
Generates JNI headers from a Java class. |
JJDoc |
Invokes the JJDoc documentation generator for the JavaCC compiler-compiler. JJDoc takes a JavaCC parser specification and produces documentation for the BNF grammar. It can operate in three modes, determined by command line options. This task only invokes JJDoc if the grammar file is newer than the generated BNF grammar documentation. |
JJTree |
Invokes the JJTree preprocessor for the JavaCC compiler-compiler. It inserts parse-tree building actions at various places in the JavaCC source that it generates. The output of JJTree is run through JavaCC to create the parser. This task only invokes JJTree if the grammar file is newer than the generated JavaCC file. |
Macrodef |
Define a new task as a macro built-up upon other tasks. |
MParse |
Invokes the Metamata MParse compiler-compiler on a grammar file. |
Native2Ascii |
Converts files from native encodings to ASCII with escaped Unicode. A common usage is to convert source files maintained in a native operating system encoding to ASCII, prior to compilation. |
Presetdef |
Define a new task by instrumenting an existing task with default values for attributes or child elements. |
Translate |
Identifies keys in files, delimited by special tokens, and translates them with values read from resource bundles. |
Xslt/Style |
Processes a set of documents via XSLT. |
Available |
Sets a property if a specified file, directory, class in the classpath, or JVM system resource is available at runtime. |
Basename |
Sets a property to the last element of a specified path. |
BuildNumber |
Task that can be used to track build numbers. |
Condition |
Sets a property if a certain condition holds true - this is a generalization of Available and Uptodate . |
Dirname |
Sets a property to the value of the specified file up to, but not including, the last path element. |
Echoproperties
|
Lists the current properties. |
LoadFile |
Loads a file into a property. |
LoadProperties |
Load a file's contents as Ant properties. This task is equivalent to using
|
PathConvert |
Converts a nested path, path reference, filelist reference, or fileset reference to the form usable on a specified platform and/or to a list of items separated by the specified separator and stores the result in the specified property. |
Property |
Sets a property (by name and value), or set of properties (from a file or resource) in the project. |
PropertyFile |
Creates or modifies property files. Useful when wanting to make unattended modifications to configuration files for application servers and applications. Typically used for things such as automatically generating a build number and saving it to a build properties file, or doing date manipulation. |
Uptodate |
Sets a property if a given target file is newer than a set of source files. |
Whichresource |
Find a class or resource. |
XmlProperty |
Loads property values from a well-formed XML file. |
FTP |
Implements a basic FTP client that can send, receive, list, and delete files, and create directories. |
Rexec |
Task to automate a remote rexec session. |
Scp |
Copy files to or from a remote server using SSH. |
setproxy |
Sets Java's web proxy properties, so that tasks and code run in the same JVM can have through-the-firewall access to remote web sites. |
Sshexec |
Execute a command on a remote server using SSH. |
Telnet |
Task to automate a remote telnet
session. This task uses nested
|
Cvs |
处理从某个 CVS 仓库中取得的那些包/模块. |
CvsChangeLog |
将某个 CVS 仓库中记录的变化情况生成一个xml格式的报告. |
CVSPass |
Adds entries to a .cvspass file. Adding entries to this file has the same affect as a cvs login command. |
CvsTagDiff |
Generates an XML-formatted report file of the changes between two tags or dates recorded in a CVS repository. |
ClearCase |
Tasks to perform the ClearCase cleartool checkin , checkout , uncheckout , update , lock , unlock , mklbtype , rmtype , mklabel , and mkbl commands. |
Continuus/Synergy |
Tasks to perform the Continuus ccmcheckin , ccmcheckout , ccmcheckintask , ccmreconfigure , and ccmcreateTask commands. |
Microsoft Visual SourceSafe |
Tasks to perform the Visual SourceSafe vssget , vsslabel , vsshistory , vsscheckin , vsscheckout , vssadd , vsscp , and vsscreate commands. |
Perforce |
Tasks to perform the Perforce p4sync , p4change , p4edit , p4submit , p4have , p4label , p4counter , p4reopen , p4revert , and p4add commands. |
Pvcs |
Allows the user extract the latest edition of the source code from a PVCS repository. |
SourceOffSite |
Tasks to perform the SourceOffSite sosget , soslabel , soscheckin , and soscheckout commands. |
StarTeam |
Tasks to perform the StarTeam stcheckout , stcheckin , stlabel , and stlist commands. The Starteam task is deprecated; use STCheckout instead. |
Junit |
运行遵循Junit 测试框架的测试. 这个任务已经在JUnit 3.0 至 JUnit 3.7上测试通过; 它不能在低于 JUnit 3.0的版本上工作. |
JunitReport |
将Junit 任务产生的一个个xml文件合并起来, 然后对合并生成的文件使用一个样式单(stylesheet)来提供一个可读的测试结果报告. |
Test |
运行遵循 |
Visual Age for Java Tasks |
(参见Visual Age for Java任务的文档.) |
发表评论
-
字符串分割--java中String.split()用法
2013-03-06 14:25 74097在java.lang包中有String.sp ... -
用 HttpServletResponseWrapper 实现 Etag 过滤器
2012-07-09 16:58 3710原文出处:http://blog.chenlb.com/200 ... -
Fitnesse使用
2012-05-05 13:27 23425Fitnesse 的使用 一,介绍 Fitnesse是一种 ... -
Customizing the new FitNesse parser
2012-05-05 13:13 2093FitNesse began its life using ... -
java application中内嵌ActiveX控件
2011-11-14 15:57 5469我这里用的是SWT/JFace开发application,SW ... -
Google Java Developer Tools Downloads
2011-08-09 00:04 2310WindowBuilder Pro原来叫WindowB ... -
Jalita
2011-08-06 00:49 1526Jalita (Java light terminal ada ... -
【转】用Java写字符终端界面
2011-07-29 13:13 2083终端界面GUI开源项目charva。 这个框架让你可以用开发 ... -
[转]mybatis下的分页,支持所有的数据库
2011-07-21 13:21 14790大 家都知道,mybatis的自带分页方法只是逻 ... -
Java framework for text- & console-based forms?
2011-07-21 01:06 1678charva jcurses JNA , ... -
JNA(Java Native Access)学习入门
2011-07-21 01:04 22527Java Native Access 项目 在 ... -
JAVA上加密算法的实现用例
2011-06-25 12:38 4839来源:www.ibm.com ... -
如何将GlassFish作为Windows服务运行
2011-05-18 23:21 2317本文档来自GlassFish官方网站,详细介绍了将 G ... -
JAVA UDP打洞必备知识点---NAT
2011-05-05 12:56 8611一、引言 RFCl631 ... -
Keystore概念,Keytool工具使用
2011-04-28 16:20 2868近来由于项目需要做Single Sign On, 研究了一 ... -
利用Eclipse Profile Plugin监控分析Tomcat性能
2011-04-18 16:14 3672目前新版本的Eclipse在启动应用服务器的时候有一个新的选 ... -
m2eclipse: Eclipse is running in a JRE, but a JDK is required
2011-02-04 23:43 2512Eclipse 安装了Maven插件,启动Eclipse ... -
利用JNative实现Java调用动态库
2010-10-18 00:43 2061由于项目要求,需要用J ... -
RHEL5支持大内存
2010-10-08 16:19 2956安装 RHEL 5 ,硬件为 4G 内存,安装完成 ... -
Windows Server 2003 和 Windows 2000 提供大内存支持
2010-10-08 16:19 1820本文介绍物理地址扩展 ...
相关推荐
mymps 蚂蚁cms 蚂蚁破解版 域名授权方法
蚂蚁压缩工具.rar蚂蚁压缩工具.rar蚂蚁压缩工具.rar蚂蚁压缩工具.rar蚂蚁压缩工具.rar蚂蚁压缩工具.rar蚂蚁压缩工具.rar蚂蚁压缩工具.rar蚂蚁压缩工具.rar蚂蚁压缩工具.rar
长100厘米的细长直杆子上有n只蚂蚁。它们的头有的朝左,有的朝右。 每只蚂蚁都只能沿着杆子向前爬,速度是1厘米/秒。 当两只蚂蚁碰面时,它们会同时掉头往相反的方向爬行。 这些蚂蚁中,有1只蚂蚁感冒了。...
奇瑞小蚂蚁 中控大屏 导航 低配升级高配程序 低配升级高配 奇瑞小蚂蚁 中控 低配升级高配程序 警告:本升级程序仅适用于EQ1小蚂蚁151、251系列中控大屏升级,400不可用! 1、把压缩包下载后解压; 2、准备一个U盘...
蚂蚁算法蚂蚁算法蚂蚁算法蚂蚁算法蚂蚁算法
蚂蚁课堂一期,分布式微服务系列课程,整套视频加文档。
蚂蚁压缩工具蚂蚁压缩工具蚂蚁压缩工具蚂蚁压缩工具蚂蚁压缩工具蚂蚁压缩工具蚂蚁压缩工具蚂蚁压缩工具蚂蚁压缩工具蚂蚁压缩工具
蚂蚁BMS保护板第一至第三版固件及更新工具
蚂蚁云客服机器人面试答案全文共6页,当前为第1页。蚂蚁云客服机器人面试答案全文共6页,当前为第1页。蚂蚁云客服机器人面试答案 蚂蚁云客服机器人面试答案全文共6页,当前为第1页。 蚂蚁云客服机器人面试答案全文共...
蚂蚁
用python实现的兰顿蚂蚁,蚂蚁在走过10000步以后,会以高速公路的方向延伸。
蚂蚁云客服机器人面试自我介绍全文共2页,当前为第1页。蚂蚁云客服机器人面试自我介绍全文共2页,当前为第1页。面试自我介绍 蚂蚁云客服机器人面试自我介绍全文共2页,当前为第1页。 蚂蚁云客服机器人面试自我介绍...
一只蚂蚁,或多只蚂蚁在一条线上爬行的时候,会相遇,发生反向的情况。
百度蚂蚁/C++ 百度蚂蚁/C++ 百度蚂蚁/C++ 百度蚂蚁/C++ 百度蚂蚁/C++ 百度蚂蚁/C++
蚂蚁区块链溯源解决方案、蚂蚁区块链溯源平台建设介绍,蚂蚁区块链溯源案例介绍,商品产地溯源管理系统 农产品溯源系统平台建设
小蚂蚁称重软件1049小蚂蚁称重软件1049小蚂蚁称重软件1049小蚂蚁称重软件1049
蚂蚁3期java架构
原型工具可以直接解压使用。是蚂蚁金服、美团、阿里巴巴等都在使用的
蚂蚁s9控制板原理图,v1.0,适用v1.2 v1.3。共15页全。