예제 #1
0
def main_filespecs():
    build_root, goals, args = pop_build_root_and_goals(
        '[build root path] [filespecs]*', sys.argv[1:])

    # Create PathGlobs for each arg relative to the buildroot.
    path_globs = [PathGlobs.create(Files, '', globs=[arg]) for arg in args]
    visualize_build_request(build_root, goals, path_globs)
예제 #2
0
def main_filespecs():
    build_root, goals, args = pop_build_root_and_goals(
        '[build root path] [filespecs]*', sys.argv[1:])

    # Create a PathGlobs object relative to the buildroot.
    path_globs = PathGlobs.create('', globs=args)
    visualize_build_request(build_root,
                            BuildRequest(goals=goals, subjects=[path_globs]))
예제 #3
0
    def path_globs(self):
        """Creates a `PathGlobs` object for the files held by these Sources.

    This field may be projected to request the content of the files for this Sources object.
    """
        return PathGlobs.create(self.spec_path,
                                files=self.files,
                                globs=self.globs,
                                rglobs=self.rglobs,
                                zglobs=self.zglobs)
예제 #4
0
  def path_globs(self):
    """Creates a `PathGlobs` object for the files held by these Sources.

    This field may be projected to request the content of the files for this Sources object.
    """
    return PathGlobs.create(self.spec_path,
                            files=self.files,
                            globs=self.globs,
                            rglobs=self.rglobs,
                            zglobs=self.zglobs)
예제 #5
0
def descendant_addresses_to_globs(descendant_addresses):
  """Given a DescendantAddresses object, return a PathGlobs object for matching directories."""
  return PathGlobs.create(Dirs, descendant_addresses.directory, globs=['.', '*', '**/*'])
예제 #6
0
def main_filespecs():
    build_root, goals, args = pop_build_root_and_goals("[build root path] [filespecs]*", sys.argv[1:])

    # Create a PathGlobs object relative to the buildroot.
    path_globs = PathGlobs.create("", globs=args)
    visualize_build_request(build_root, goals, [path_globs])
예제 #7
0
파일: visualizer.py 프로젝트: Gointer/pants
def main_filespecs():
  build_root, goals, args = pop_build_root_and_goals('[build root path] [filespecs]*', sys.argv[1:])

  # Create PathGlobs for each arg relative to the buildroot.
  path_globs = [PathGlobs.create('', globs=[arg]) for arg in args]
  visualize_build_request(build_root, goals, path_globs)
예제 #8
0
def main_filespecs():
  build_root, goals, args = pop_build_root_and_goals('[build root path] [filespecs]*', sys.argv[1:])

  # Create a PathGlobs object relative to the buildroot.
  path_globs = PathGlobs.create('', globs=args)
  visualize_build_request(build_root, BuildRequest(goals=goals, subjects=[path_globs]))
예제 #9
0
def descendant_addresses_to_globs(descendant_addresses):
    """Given a DescendantAddresses object, return a PathGlobs object for matching directories."""
    return PathGlobs.create(Dirs,
                            descendant_addresses.directory,
                            globs=['.', '*', '**/*'])