Apache ant run java
![apache ant run java apache ant run java](https://ant.apache.org/images/project-logo.gif)
This attribute is mutually exclusive with the input string attribute.Ī string which serves as the input stream for the executed command. The name of a property in which the standard error of the command should be stored.Ī file from which the executed command's standard input is taken. Unless the error stream is redirected to a separate file or stream, this property will include the error output. The name of a property in which the output of the command should be stored. Whether output and error files should be appended to or overwritten. If you redirect error with the error or errorProperty attributes, this will have no effect. The error output will not be included in the output file/property. This attribute is used when you wish to see error output in Ant's log and you are redirecting output to a file/property. The file to which the standard error of the command should be redirected. If the error stream is not also redirected to a file or property, it will appear in this output. Name of a file to which to write the output. The directory to invoke the JVM in, ignored if fork is false. Only of interest if failonerror is false and if fork is true.
#APACHE ANT RUN JAVA CODE#
The name of a property in which the return code of the command should be stored. Stop the build process if the command exits with a return code other than 0. Max amount of memory to allocate to the forked JVM, ignored if fork is false. Requires that fork is true, and not compatible with timeout, input, output, error, result attributes If enabled allows to start a process which will outlive Ant.
![apache ant run java apache ant run java](http://3.bp.blogspot.com/-7wVgn1vl5ZU/UebGDRmZJrI/AAAAAAAAmF4/M5WkYXLNLe0/s1600/ant01.png)
If enabled triggers the class execution in another JVM. The modulepath to use, given as reference to a Path defined elsewhere. A list of directories of modules, module files or exploded modules. Specify where to find application modules. The classpath to use, given as reference to a Path defined elsewhere. fork must be set to true if this option is selected. Set this attribute to run Java single file source programs, a feature introduced in Java 11. The location of a ".java" file or a file containing shebang with Java source code. The initial or main module to resolve (must have a Main-Class entry in the manifest). Java task executes a Java class within the running JVM or forks another JVM if specified using fork=true Properties Sr.No