def __init__(self, name, subdir, subproject, is_cross, sources, objects, environment, kwargs):
    self.typename = 'jar'
    super().__init__(name, subdir, subproject, is_cross, sources, objects, environment, kwargs)
    for s in self.sources:
        if (not s.endswith('.java')):
            raise InvalidArguments(('Jar source %s is not a java file.' % s))
    for t in self.link_targets:
        if (not isinstance(t, Jar)):
            raise InvalidArguments(('Link target %s is not a jar target.' % t))
    self.filename = (self.name + '.jar')
    self.outputs = [self.filename]
    self.java_args = kwargs.get('java_args', [])
def __init__(self, name, subdir, subproject, is_cross, sources, objects, environment, kwargs):
    self.typename = 'jar'
    super().__init__(name, subdir, subproject, is_cross, sources, objects, environment, kwargs)
    for s in self.sources:
        if (not s.endswith('.java')):
            raise InvalidArguments(('Jar source %s is not a java file.' % s))
    for t in self.link_targets:
        if (not isinstance(t, Jar)):
            raise InvalidArguments(('Link target %s is not a jar target.' % t))
    self.filename = (self.name + '.jar')
    self.outputs = [self.filename]
    self.java_args = kwargs.get('java_args', [])