Describe the task.
| Attribute | Description | Required |
| classname | the Java class to execute. | Either jar or classname |
description
since Ant 1.6.
A code sample; don't forget to escape the < of the tags with <
What should that example do?
```
--------------------------------
### main
Source: https://github.com/dbflute/dbflute-core/blob/develop/dbflute-engine/etc/ant/manual/api/org/apache/tools/ant/Main.html
Command line entry point. This method kicks off the building of a project object and executes a build using either a given target or the default target.
```APIDOC
## main
### Description
Command line entry point. This method kicks off the building of a project object and executes a build using either a given target or the default target.
### Method
Static method
### Signature
`public static void main(java.lang.String[] args)`
### Parameters
- **args** (String[]) - Required - Command line arguments. Must not be null.
```
--------------------------------
### Create a startable JAR file
Source: https://github.com/dbflute/dbflute-core/blob/develop/dbflute-engine/etc/ant/manual/tutorial-HelloWorldWithAnt.html
Commands to create a startable JAR file: create a manifest containing the start class, create the target directory, and archive the classes. Ensure no blanks around the '>' sign in the echo command.
```bat
echo Main-Class: oata.HelloWorld>myManifest
md build\jar
jar cfm build\jar\HelloWorld.jar myManifest -C build\classes .
java -jar build\jar\HelloWorld.jar
```
--------------------------------
### VssCheckout example
Source: https://github.com/dbflute/dbflute-core/blob/develop/dbflute-engine/etc/ant/manual/Tasks/vss.html
Does a recursive checkout of the project $/test to the directory D:\build.
```xml
Searchs in a given path for a file and returns the absolute to it as property. If delimiter is set this task returns all found locations.
| Attribute | Description | Required |
| file | The name of the file to search. | yes |
| location | The name of the property where to store the location | yes |
| delimiter | A delimiter to use when returning the list | only if the list is required |
The path where to search the file.
Searches in Ants home directory for a file ant.jar and stores its location in
property loc (should be ANT_HOME/bin/ant.jar).
ant.jar found in: ${loc}
Searches in Windows C: drive for all ant.jar and stores their locations in
property loc delimited with ';'. (should need a long time :-)
After that it prints out the result (e.g. C:/ant-1.5.4/bin/ant.jar;C:/ant-1.6/bin/ant.jar).
```
--------------------------------
### start()
Source: https://github.com/dbflute/dbflute-core/blob/develop/dbflute-engine/etc/ant/manual/api/org/apache/tools/ant/taskdefs/JikesOutputParser.html
Deprecated. Invokes parseOutput to start processing the compiler output. This method is specified by the ExecuteStreamHandler interface.
```APIDOC
## start
### Description
Deprecated. Invokes parseOutput to start processing the compiler output. This method is specified by the ExecuteStreamHandler interface.
### Method
start
### Signature
public void start() throws java.io.IOException
### Parameters
None
### Throws
- **java.io.IOException** - on error
### Deprecated
Yes
```
--------------------------------
### protected Commandline setupKjcCommand()
Source: https://github.com/dbflute/dbflute-core/blob/develop/dbflute-engine/etc/ant/manual/api/org/apache/tools/ant/taskdefs/compilers/Kjc.html
Sets up the command line arguments for the KJC compiler.
```APIDOC
## protected Commandline setupKjcCommand()
### Description
Sets up the command line arguments for the KJC compiler.
### Method
setupKjcCommand
### Return Type
Commandline - the configured command line object.
### Parameters
None
### Example
```java
Kjc kjc = new Kjc();
Commandline cmd = kjc.setupKjcCommand();
```
```
--------------------------------
### TimestampedLogger success message example
Source: https://github.com/dbflute/dbflute-core/blob/develop/dbflute-engine/etc/ant/manual/listeners.html
Example output of the final success message including the build completion time.
```text
BUILD SUCCESSFUL - at 16/08/05 16:24
```
--------------------------------
### buildStarted(BuildEvent event)
Source: https://github.com/dbflute/dbflute-core/blob/develop/dbflute-engine/etc/ant/manual/api/org/apache/tools/ant/XmlLogger.html
Fired when the build starts, this builds the top-level element for the document and remembers the time of the start of the build.
```APIDOC
## Method: buildStarted(BuildEvent event)
### Description
Fired when the build starts, this builds the top-level element for the document and remembers the time of the start of the build.
### Signature
`public void buildStarted(BuildEvent event)`
### Parameters
- **event** (BuildEvent) - Ignored.
### Returns
void
```
--------------------------------
### Properties file with in-file expansion
Source: https://github.com/dbflute/dbflute-core/blob/develop/dbflute-engine/etc/ant/manual/Tasks/property.html
Example properties file demonstrating in-file property expansion. The deploy.url property references other properties defined in the same file.
```properties
build.compiler=jikes
deploy.server=lucky
deploy.port=8080
deploy.url=http://${deploy.server}:${deploy.port}/
```
--------------------------------
### addSetup(Sequential sequence)
Source: https://github.com/dbflute/dbflute-core/blob/develop/dbflute-engine/etc/ant/manual/api/org/apache/tools/ant/taskdefs/optional/testing/Funtest.html
Adds a setup sequence to the Funtest task.
```APIDOC
## addSetup(Sequential sequence)
### Description
Adds a setup sequence to the Funtest task.
### Method
void addSetup(org.apache.tools.ant.taskdefs.Sequential sequence)
### Parameters
- **sequence** (Sequential) - Required - The setup sequence to add.
```
--------------------------------
### buildStarted(BuildEvent event)
Source: https://github.com/dbflute/dbflute-core/blob/develop/dbflute-engine/etc/ant/manual/api/org/apache/tools/ant/BuildListener.html
Signals that a build has started. This event is fired before any targets have started, and before the project instance is fully configured.
```APIDOC
## buildStarted(BuildEvent event)
### Description
Signals that a build has started. This event is fired before any targets have started, and before the project instance is fully configured (no properties set, project may not know its name or default target).
### Method
void
### Signature
`void buildStarted(BuildEvent event)`
### Parameters
- **event** (BuildEvent) - Required - An event with any relevant extra information. Must not be `null`.
### Returns
void
```