ProjectFactory (ant-antunit API)
Description: declaration: package: org.apache.ant.antunit, interface: ProjectFactory

# Schnittstelle 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 create multiple project in order to provide test isolation.

Seit:
  1.2

- ## Methodenübersicht

  Modifikator und Typ
  Methode
  Beschreibung
  `org.apache.tools.ant.Project`
  `createProject()`
  Creates a new project instance and configures it according to the execution context.

- ## Methodendetails

  - ### createProject

    org.apache.tools.ant.Project createProject() throws org.apache.tools.ant.BuildException
    Creates a new project instance and configures it according to the execution context.
    Gibt zurück:
      a new project
    Löst aus:
      `org.apache.tools.ant.BuildException` - The project can not be created (probably parsed)