Class AntUnitSuite.MyProjectFactory

  • All Implemented Interfaces:
    ProjectFactory
    Enclosing class:
    AntUnitSuite

    private static class AntUnitSuite.MyProjectFactory
    extends java.lang.Object
    implements ProjectFactory
    The antscript project factory that creates projects in a junit context.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.PrintStream realStdErr  
      private java.io.PrintStream realStdOut  
      private java.io.File scriptFile  
    • Constructor Summary

      Constructors 
      Constructor Description
      MyProjectFactory​(java.io.File scriptFile)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.tools.ant.Project createProject()
      Creates a new project instance and configures it according to the execution context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • scriptFile

        private final java.io.File scriptFile
      • realStdErr

        private final java.io.PrintStream realStdErr
      • realStdOut

        private final java.io.PrintStream realStdOut
    • Constructor Detail

      • MyProjectFactory

        public MyProjectFactory​(java.io.File scriptFile)
    • Method Detail

      • createProject

        public org.apache.tools.ant.Project createProject()
        Description copied from interface: ProjectFactory
        Creates a new project instance and configures it according to the execution context.
        Specified by:
        createProject in interface ProjectFactory
        Returns:
        a new project