public interface ProjectFactory
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.
Modifier and Type | Method and Description |
---|---|
org.apache.tools.ant.Project |
createProject()
Creates a new project instance and configures it according to the execution context.
|
org.apache.tools.ant.Project createProject() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- The project can not be created (probably parsed)Copyright © 2022 The Apache Software Foundation. All rights reserved.