| Home >> All >> org >> apache >> tools |
| | org.apache.tools.ant.* (860) | | org.apache.tools.bzip2.* (4) | | org.apache.tools.mail.* (4) |
| | org.apache.tools.tar.* (8) | | org.apache.tools.zip.* (15) |
Package Samples:
org.apache.tools.ant.taskdefs
org.apache.tools.ant
org.apache.tools.ant.filters.util
org.apache.tools.ant.filters
org.apache.tools.ant.helper
org.apache.tools.ant.input
org.apache.tools.ant.launch
org.apache.tools.ant.listener
org.apache.tools.ant.loader
org.apache.tools.ant.taskdefs.compilers
org.apache.tools.ant.taskdefs.condition
org.apache.tools.ant.taskdefs.cvslib
org.apache.tools.ant.taskdefs.email
org.apache.tools.ant.taskdefs.optional.ccm
org.apache.tools.ant.taskdefs.optional.clearcase
org.apache.tools.ant.taskdefs.optional.depend.constantpool
org.apache.tools.ant.taskdefs.optional.depend
org.apache.tools.ant.taskdefs.optional.dotnet
org.apache.tools.ant.taskdefs.optional.ejb
org.apache.tools.ant.taskdefs.optional.extension.resolvers
Classes:
IContract: Instruments Java classes with iContract DBC preprocessor. The task can generate a properties file for iControl , a graphical user interface that lets you turn on/off assertions. iControl generates a control file that you can refer to from this task using the controlfile attribute. iContract is at http://www.reliable-systems.com/tools/ Thanks to Rainer Schmitz for enhancements and comments. Attribute Description Required srcdir Location of the java files. Yes instrumentdir Indicates where the instrumented source files should go. Yes repositorydir Indicates where the repository source files should ...
ModifiedSelector: Selector class that uses Algorithm , Cache and Comparator for its work. The Algorithm is used for computing a hashvalue for a file. The Comparator decides whether to select or not. The Cache stores the other value for comparison by the Comparator in a persistent manner. The ModifiedSelector is implemented as a CoreSelector and uses default values for all its attributes therefore the simpliest example is The same example rewritten as CoreSelector with setting the all values (same as defaults are) would be And the same rewritten as CustomSelector would be All these three examples copy the files from ...
XmlProperty: Loads property values from a valid XML file, generating the property names from the file's element and attribute names. Example: <root-tag myattr="true"> <inner-tag someattr="val">Text</inner-tag> <a2><a3><a4>false</a4></a3></a2> <x>x1</x> <x>x2</x> </root-tag> this generates the following properties: root-tag(myattr)=true root-tag.inner-tag=Text root-tag.inner-tag(someattr)=val root-tag.a2.a3.a4=false root-tag.x=x1,x2 The collapseAttributes property of this task can be set to true (the default is false) which will ...
IPlanetDeploymentTool: This class is used to generate iPlanet Application Server (iAS) 6.0 stubs and skeletons and build an EJB Jar file. It is designed to be used with the Ant ejbjar task. If only stubs and skeletons need to be generated (in other words, if no JAR file needs to be created), refer to the iplanet-ejbc task and the IPlanetEjbcTask class. The following attributes may be specified by the user: destdir -- The base directory into which the generated JAR files will be written. Each JAR file is written in directories which correspond to their location within the "descriptordir" namespace. This is a required ...
IPlanetEjbcTask: Compiles EJB stubs and skeletons for the iPlanet Application Server. The EJBs to be processed are specified by the EJB 1.1 standard XML descriptor, and additional attributes are obtained from the iPlanet Application Server-specific XML descriptor. Since the XML descriptors can include multiple EJBs, this is a convenient way of specifying many EJBs in a single Ant task. The following attributes are allowed: ejbdescriptor -- Standard EJB 1.1 XML descriptor (typically titled "ejb-jar.xml"). This attribute is required. iasdescriptor -- EJB XML descriptor for iPlanet Application Server (typically titled ...
XMLCatalog: This data type provides a catalog of resource locations (such as DTDs and XML entities), based on the OASIS "Open Catalog" standard . The catalog entries are used both for Entity resolution and URI resolution, in accordance with the EntityResolver and URIResolver interfaces as defined in the Java API for XML Processing Specification . Resource locations can be specified either in-line or in external catalog file(s), or both. In order to use an external catalog file, the xml-commons resolver library ("resolver.jar") must be in your classpath. External catalog files may be either plain text format ...
ReplaceRegExp: Performs regular expression string replacements in a text file. The input file(s) must be able to be properly processed by a Reader instance. That is, they must be text only, no binary. The syntax of the regular expression depends on the implementation that you choose to use. The system property ant.regexp.regexpimpl will be the classname of the implementation that will be used (the default is org.apache.tools.ant.util.regexp.JakartaOroRegexp and requires the Jakarta Oro Package). For jdk <= 1.3, there are two available implementations: org.apache.tools.ant.util.regexp.JakartaOroRegexp (the ...
VAJExport: Export packages from the Visual Age for Java workspace. The packages are specified similar to all other MatchingTasks. Since the VA Workspace is not file based, this task is simulating a directory hierarchy for the workspace: The 'root' contains all project 'dir's, and the projects contain their respective package 'dir's. Example: <vajexport destdir="C:/builddir/source"> <include name="/MyVAProject/org/foo/subsystem1/**" /> <exclude name="/MyVAProject/org/foo/subsystem1/test/**"/> </vajexport> exports all packages in the project ...
VAJExportServlet: A Remote Access to Tools Servlet to extract package sets from the Workbench to the local file system. The following table describes the servlet parameters. Parameter Values Description dir Any valid directory name on the server. The directory to export the files to on the machine where the servlet is being run. If the directory doesn't exist, it will be created. Relative paths are relative to IBMVJava/ide/tools/com-ibm-ivj-toolserver, where IBMVJava is the VisualAge for Java installation directory. include See below. The pattern used to indicate which projects and packages to export. exclude See ...
JUnitTask: Runs JUnit tests. JUnit is a framework to create unit test. It has been initially created by Erich Gamma and Kent Beck. JUnit can be found at http://www.junit.org . JUnitTask can run a single specific JUnitTest using the test element. For example, the following target <target name="test-int-chars" depends="jar-test"> <echo message="testing international characters"/> <junit printsummary="no" haltonfailure="yes" fork="false"> <classpath refid="classpath"/> <formatter type="plain" usefile="false" /> <test name="org.apache.ecs.InternationalCharTest" /> </junit> ...
Symlink: Creates, Records and Restores Symlinks. This task performs several related operations. In the most trivial, and default usage, it creates a link specified in the link atribute to a resource specified in the resource atribute. The second usage of this task is to traverses a directory structure specified by a fileset, and write a properties file in each included directory describing the links found in that directory. The third usage is to traverse a directory structure specified by a fileset, looking for properties files (also specified as included in the fileset) and recreate the links that have ...
PropertyFile: Modifies settings in a property file. The following is an example of its usage: <target name="setState"> <property name="header" value="##Generated file - do not modify!"/> <propertyfile file="apropfile.properties" comment="${header}"> <entry key="product.version.major" type="int" value="5"/> <entry key="product.version.minor" type="int" value="0"/> <entry key="product.build.major" type="int" value="0" /> <entry key="product.build.minor" type="int" operation="+" /> <entry key="product.build.date" type="date" value="now" /> <entry key="intSet" type="int" ...
VAJImport: Import source, class files, and resources to the Visual Age for Java workspace. Example: <vajimport project="MyVAProject"> <fileset dir="src"> <include name="org/foo/subsystem1/**" /> <exclude name="/org/foo/subsystem1/test/**" /> </fileset> </vajexport> import all source and resource files from the "src" directory which start with 'org.foo.subsystem1', except of these starting with 'org.foo.subsystem1.test' into the project MyVAProject. If MyVAProject isn't loaded into the Workspace, a new edition is created in the repository and automatically loaded into the ...
Rmic: Runs the rmic compiler against classes. Rmic can be run on a single class (as specified with the classname attribute) or a number of classes at once (all classes below base that are neither _Stub nor _Skel classes). If you want to rmic a single class and this class is a class nested into another class, you have to specify the classname in the form Outer$$Inner instead of Outer.Inner . It is possible to refine the set of files that are being rmiced. This can be done with the includes , includesfile , excludes , excludesfile and defaultexcludes attributes. With the includes or includesfile attribute ...
CSharp: Compiles C# source into executables or modules. csc.exe on Windows or mcs on other platforms must be on the execute path, unless another executable or the full path to that executable is specified in the executable parameter All parameters are optional: <csc/> should suffice to produce a debug build of all *.cs files. However, naming an destFile stops the csc compiler from choosing an output name from random, and allows the dependency checker to determine if the file is out of date. The task is a directory based task, so attributes like includes="*.cs" and excludes="broken.cs" can be used ...
ChangeLogTask: Examines the output of cvs log and group related changes together. It produces an XML output representing the list of changes. <!-- Root element --> <!ELEMENT changelog (entry + ) > <!-- CVS Entry --> <!ELEMENT entry (date,author,file + ,msg) > <!-- Date of cvs entry --> <!ELEMENT date (#PCDATA) > <!-- Author of change --> <!ELEMENT author (#PCDATA) > <!-- List of files affected --> <!ELEMENT msg (#PCDATA) > <!-- File changed --> <!ELEMENT file (name,revision,prevrevision ? ) > <!-- Name of the file --> <!ELEMENT name ...
DependSet: Examines and removes out of date target files. If any of the target files are out of date with respect to any of the source files, all target files are removed. This is useful where dependencies cannot be computed (for example, dynamically interpreted parameters or files that need to stay in synch but are not directly linked) or where the ant task in question could compute them but does not (for example, the linked DTD for an XML file using the style task). nested arguments: srcfileset (fileset describing the source files to examine) srcfilelist (filelist describing the source files to examine) ...
AntStarTeamCheckOut: Checks out files from a specific StarTeam server, project, view, and folder. This program logs in to a StarTeam server and opens up the specified project and view. Then, it searches through that view for the given folder (or, if you prefer, it uses the root folder). Beginning with that folder and optionally continuing recursivesly, AntStarTeamCheckOut compares each file with your include and exclude filters and checks it out only if appropriate. Checked out files go to a directory you specify under the subfolder named for the default StarTeam path to the view. That is, if you entered /home/cpovirk/work ...
WLJspc: Precompiles JSP's using WebLogic's JSP compiler (weblogic.jspc). Tested only on Weblogic 4.5.1 - NT4.0 and Solaris 5.7 required attributes src : root of source tree for JSP, ie, the document root for your weblogic server dest : root of destination directory, what you have set as WorkingDir in the weblogic properties package : start package name under which your JSP's would be compiled other attributes classpath A classpath should be set which contains the weblogic classes as well as all application classes referenced by the JSP. The system classpath is also appended when the jspc is called, so ...
MailMessage: A class to help send SMTP email. This class is an improvement on the sun.net.smtp.SmtpClient class found in the JDK. This version has extra functionality, and can be used with JVMs that did not extend from the JDK. It's not as robust as the JavaMail Standard Extension classes, but it's easier to use and easier to install, and has an Open Source license. It can be used like this: String mailhost = "localhost"; // or another mail host String from = "Mail Message Servlet <MailMessage@server.com>"; String to = "to@you.com"; String cc1 = "cc1@you.com"; String cc2 = "cc2@you.com"; String bcc = ...
AnsiColorLogger: Uses ANSI Color Code Sequences to colorize messages sent to the console. If used with the -logfile option, the output file will contain all the necessary escape codes to display the text in colorized mode when displayed in the console using applications like cat, more, etc. This is designed to work on terminals that support ANSI color codes. It works on XTerm, ETerm, Mindterm, etc. It also works on Win9x (with ANSI.SYS loaded.) NOTE: It doesn't work on WinNT's COMMAND.COM even with ANSI.SYS loaded. The default colors used for differentiating the message levels can be changed by editing the /org/apache/tools/ant/listener/defaults.properties ...
CCMklbtype: Task to perform mklbtype command to ClearCase. The following attributes are interpreted: Attribute Values Required typename Name of the label type to create Yes vob Name of the VOB No replace Replace an existing label definition of the same type No global Either global or ordinary can be specified, not both. Creates a label type that is global to the VOB or to VOBs that use this VOB No ordinary Either global or ordinary can be specified, not both. Creates a label type that can be used only in the current VOB. Default No pbranch Allows the label type to be used once per branch in a given element's ...
CCRmtype: Task to perform rmtype command to ClearCase. The following attributes are interpreted: Attribute Values Required typekind The kind of type to create. Valid types are: attype attribute type brtype branch type eltype element type hltype hyperlink type lbtype label type trtype trigger type Yes typename The name of the type to remove Yes vob Name of the VOB No ignore Used with trigger types only. Forces removal of trigger type even if a pre-operation trigger would prevent its removal No rmall Removes all instances of a type and the type object itself No comment Specify a comment. Only one of comment ...
Ildasm: Task to take a .NET or Mono -generated managed executable and turn it into ILASM assembly code. Useful when converting imported typelibs into assembler before patching and recompiling, as one has to do when doing advanced typelib work. As well as generating the named output file, the ildasm program will also generate resource files Icons.resources Message.resources and a .res file whose filename stub is derived from the source in ways to obscure to determine. There is no way to control whether or not these files are created, or where they are created (they are created in the current directory; ...
CCCheckout: Performs ClearCase checkout. The following attributes are interpreted: Attribute Values Required viewpath Path to the ClearCase view file or directory that the command will operate on No reserved Specifies whether to check out the file as reserved or not Yes out Creates a writable file under a different filename No nodata Checks out the file but does not create an editable file containing its data No branch Specify a branch to check out the file to No version Allows checkout of a version other than main latest No nowarn Suppress warning messages No comment Specify a comment. Only one of comment ...
| Home | Contact Us | Privacy Policy | Terms of Service |