Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Issues
  • #734
Closed
Open
Issue created May 06, 2016 by Administrator@rootContributor

Java tests do not run if the project's path contains "@"

Created by: bocon13

When the project's path contains a directory that contains an "@", Buck fails to run Java tests.

Error: Unable to locate junit on the classpath. Please add as a test dependency.

The root cause is that FileClassPathRunner splits the classfile path prematurely -- on the "@" in the project path rather than on the "@" used as a sentinel -- so the classfile cannot be found and is ignored.

For example: file:/tmp/buck@2/@/tmp/buck@2/buck-out/gen/test/classpath-file becomes 2/@/tmp/buck@2/buck-out/gen/test/classpath-file

One example where this issue comes up in practice is that Jenkins will create workspace directories with "@" for concurrent builds on the same machine (e.g. workspace@2).

Assignee
Assign to
Time tracking