def _validate_classpath_tuples(self, classpath, target):
    for classpath_tuple in classpath:
      conf, classpath_entry = classpath_tuple
      path = classpath_entry.path
      if os.path.relpath(path, self._pants_workdir).startswith(os.pardir):
        raise TaskError(
          'Classpath entry {} for target {} is located outside the working directory "{}".'
          .format(path, target.address.spec, self._pants_workdir))
Validates that all files are located within the working directory, to simplify relativization.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/jvm/tasks/classpath_products.py/ClasspathProducts._validate_classpath_tuples