org.apache.ant.antunit
Interface ProjectFactory


public interface ProjectFactory

Provides project instances for AntUnit execution.
The approach to creates a project depends on the context. When invoked from an ant project, some elements might be intialized from the parent project. When executed in a junit runner, a brand new project must be initialized.
The AntScriptRunner will usually creates multiple project in order to provide test isolation.

Since:
1.2

Method Summary
 Project createProject()
          Creates a new project instance and configures it according to the execution context.
 

Method Detail

createProject

Project createProject()
                      throws BuildException
Creates a new project instance and configures it according to the execution context.

Throws:
BuildException - The project can not be created (probably parsed)