Skip to content

.classpath entries for project dependencies with configurations are never generated #77

Closed
jorgeortiz85 opened this Issue Jan 10, 2012 · 6 comments

2 participants

@jorgeortiz85

Eclipse.scala line 294:

  case dependency if dependency.configuration map (_ == configuration) getOrElse true =>

The == there is comparing a String with a Configuration and will never return true.

@jorgeortiz85 jorgeortiz85 added a commit to foursquare/sbteclipse that referenced this issue Jan 10, 2012
@jorgeortiz85 jorgeortiz85 Work around for configuration bug #77 ca28698
@hseeberger

Jorge,

Thanks for your help, but in this case you are wrong: dependency is of type ClasspathDep[ProjectRef]. The member configuration is an Option[String], hence I am comparing String with String

Cheers
Heiko

@hseeberger hseeberger closed this Jan 10, 2012
@jorgeortiz85
@hseeberger hseeberger reopened this Jan 10, 2012
@hseeberger

OMG! I forgot to access the name, which is equal to toString.
Why did you go for contains instead of ==?

@jorgeortiz85

My use of contains is a workaround, not a fix. Our default configuration is "compile;test->test;runtime->runtime", so == won't work for us.

@hseeberger

I see. Looks like I can learn something about configurations ...

@hseeberger hseeberger pushed a commit that closed this issue Feb 4, 2012
Heiko Seeberger closes #77: .classpath entries for project dependencies with configur…
…ations are never generated
2e3391c
@hseeberger hseeberger closed this in 2e3391c Feb 4, 2012
@hseeberger

Jorge,

This issue should be fixed in 2.0.0-SNAPSHOT. Could you please give it a try?

Thanks
Heiko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.