sbt / sbt/sbt-eclipse

Allow option to generate .classpath paths relative to user.home, rather than absolute

Open
#164 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
712
Forks
163
PR merge metrics
No merged PRs in 30d

Description

Currently, sbteclipse generates absolute pathnames into the ivy repository. This is the main reason why my .classpath files are not portable across machines. I would like a way to generate paths relative to my user.home location, since the default ivy2 repo is relative to that.

sbt-idea currently does this, eg:

root url="jar://$USER_HOME$/.ivy2/cache/junit/junit/jars/junit-4.7.jar!/"

Some evidence that this is an issue for other people also:
http://stackoverflow.com/questions/12983203/use-userprofile-in-eclipse-classpath-windows
http://stackoverflow.com/questions/14663211/change-name-and-or-path-of-classpath-file-in-eclipse?rq=1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing sbteclipse's .classpath generation and how it resolves paths in the ivy repository, then compare the user.home-relative handling shown for sbt-idea. Done means an option can generate portable .classpath entries relative to user.home while preserving the existing absolute-path behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.