Ejemplo n.º 1
0
 def setUp(self):
   super(JvmPrepCommandTest, self).setUp()
   # This is normally taken care of in RunJvmPrepCommandBase.register_options() when running pants,
   # but these don't get called in testing unless you call `self.create_task()`.
   # Some of these unit tests need to create targets before creating the task.
   JvmPrepCommand.add_goal('test')
   JvmPrepCommand.add_goal('binary')
Ejemplo n.º 2
0
 def setUp(self):
     super(JvmPrepCommandTest, self).setUp()
     # This is normally taken care of in RunJvmPrepCommandBase.register_options() when running pants,
     # but these don't get called in testing unless you call `self.create_task()`.
     # Some of these unit tests need to create targets before creating the task.
     JvmPrepCommand.add_goal('test')
     JvmPrepCommand.add_goal('binary')
Ejemplo n.º 3
0
    def register_options(cls, register):
        """Register options for this optionable.

    In this case, there are no special options, but we want to use this opportunity to setup
    goal validation in JvmPrepCommand before the build graph is parsed.
    """
        super(RunJvmPrepCommandBase, cls).register_options(register)
        JvmPrepCommand.add_goal(cls.goal)
Ejemplo n.º 4
0
  def register_options(cls, register):
    """Register options for this optionable.

    In this case, there are no special options, but we want to use this opportunity to setup
    goal validation in JvmPrepCommand before the build graph is parsed.
    """
    super(RunJvmPrepCommandBase, cls).register_options(register)
    JvmPrepCommand.add_goal(cls.goal)
Ejemplo n.º 5
0
def register_goals():
   JvmPrepCommand.add_goal('jooq')
   task(name='jooq-jvm-prep-command', action=RunJooqJvmPrepCommand).install('jooq', first=True)
Ejemplo n.º 6
0
 def __init__(self, context, workdir):
     super(RunJvmPrepCommandBase, self).__init__(context, workdir)
     JvmPrepCommand.add_goal(self.goal)
Ejemplo n.º 7
0
 def __init__(self, context, workdir):
   super(RunJvmPrepCommandBase, self).__init__(context, workdir)
   JvmPrepCommand.add_goal(self.goal)
Ejemplo n.º 8
0
 def setUp(self):
   super (JvmPrepCommandTest, self).setUp()
   # This is normally taken care of in RunJvmPrepCommandBase.register_options() when running pants,
   # but needs to be manually added for unit testing
   JvmPrepCommand.add_goal('test')
   JvmPrepCommand.add_goal('binary')
Ejemplo n.º 9
0
def register_goals():
    JvmPrepCommand.add_goal('jooq')
    task(name='jooq-jvm-prep-command',
         action=RunJooqJvmPrepCommand).install('jooq', first=True)