Apache Ant 1.5.4 Manual

Add to my manuals
305 Pages

advertisement

Apache Ant 1.5.4 Manual | Manualzz

Ant Manual 1.5.4 12/9/2003 7:47 PM

reverse encoding src dest ext

Reverse the sense of the conversion, i.e. convert from ASCII to native

The native encoding the files are in (default is the default encoding for the

JVM)

The directory to find files in (default is basedir)

The directory to output file to

File extension to use in renaming output files

No

No

No

Yes

No

No includes includesfile excludes comma- or space-separated list of patterns of files that must be included.

All files are included when omitted. the name of a file. Each line of this file is taken to be an include pattern comma- or space-separated list of patterns of files that must be excluded.

No files (except default excludes) are excluded when omitted.

No

No

No excludesfile

Examples

the name of a file. Each line of this file is taken to be an exclude pattern

<native2ascii encoding="EUCJIS" src="srcdir" dest="srcdir"

No

includes="**/*.eucjis" ext=".java"/>

Converts all files in the directory srcdir ending in .eucjis from the EUCJIS encoding to ASCII and renames them to end in .java.

<native2ascii encoding="EUCJIS" src="native/japanese" dest="src"

includes="**/*.java"/>

Converts all the files ending in .java in the directory native/japanese to ASCII, placing the results in the directory src. The names of the files remain the same.

10.29 NetRexxC

Description

Compiles a NetRexx source tree within the running (Ant) VM.

The source and destination directory will be recursively scanned for NetRexx source files to compile. Only NetRexx files that have no corresponding class file or where the class file is older than the java file will be compiled.

Files in the source tree are copied to the destination directory, allowing support files to be located properly in the classpath. The source files are copied because the NetRexx compiler cannot produce class files in a specific directory via parameters

The directory structure of the source tree should follow the package hierarchy.

It is possible to refine the set of files that are being compiled/copied. This can be done with the includes, includesfile, excludes, excludesfile and defaultexcludes attributes. With the includes or includesfile attribute you specify the files you want to have included by using patterns. The exclude or excludesfile attribute is used to specify the files you want to have excluded. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks , on how the inclusion/exclusion of files works, and how to write patterns.

This task forms an implicit FileSet and supports all attributes of <fileset> (dir becomes srcdir) as well as the nested <include>, <exclude> and <patternset> elements.

244/305

Ant Manual 1.5.4 12/9/2003 7:47 PM

All properties except classpath, srcdir and destDir are also available as properties in the form ant.netrexxc.attributename, eg.

<property name="ant.netrexxc.verbose" value="noverbose"/> or from the command line as ant -Dant.netrexxc.verbose=noverbose ...

Parameters

Attribute

binary classpath comments compact compile console crossref decimal defaultexcludes destDir diag excludes excludesfile explicit format includes includesfile java keep logo replace savelog

Description

Whether literals are treated as the java binary type rather than the NetRexx types

The classpath to use during compilation

Required

No

No

Whether comments are passed through to the generated java source

No

Whether error messages come out in compact or verbose format. Default is the compact format.

Whether the NetRexx compiler should compile the generated java code

Whether or not messages should be displayed on the

'console'

No

No

No

Whether variable cross references are generated

Whether decimal arithmetic should be used for the

NetRexx code

No

No indicates whether default excludes should be used or not No

("yes"/"no"). Default excludes are used when omitted. the destination directory into which the NetRexx source files should be copied and then compiled

Yes

Whether diagnostic information about the compile is generated

No comma- or space-separated list of patterns of files that must be excluded. No files (except d efault excludes) are excluded when omitted.

No the name of a file. Each line of this file is taken to be an exclude pattern

No

Whether variables must be declared explicitly before use No

Whether the generated java code is formatted nicely or left to match NetRexx line numbers for call stack debugging

No

No comma- or space-separated list of patterns of files that must be included. All files are included when omitted. the name of a file. Each line of this file is taken to be an include pattern

No

Whether the generated java code is produced

Sets whether the generated java source file should be kept after compilation. The generated files will have an extension of .java.keep, not .java

Whether the compiler text logo is displayed when compiling

No

No

No

Whether the generated .java file should be replaced when compiling

Whether the compiler messages will be written to

No

No

245/305

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

Download PDF

advertisement

Table of contents