2012-04-23 8 views
2

sbt 0.7.x 빌드 스크립트를 sbt 0.11.2로 변환 중입니다. 서브 프로젝트에서 여러 JAR을 모으는 작업을 작성 중입니다.sbt 하위 프로젝트의 managedClass 경로에 액세스

deployedProjects.foreach { 
    p: BasicScalaProject => 
    p.managedClasspath(config("compile")) --- p.managedClasspath(config("provided")) 
    // etc 
} 

어떻게 SBT 0.11에서 해당 작업을 수행 할 수 있습니다 이전 빌드에서, 작업의 제품은 또한 다음과 같은합니까? 특히

을 :

  • 가 어떻게 설정/작업 목록에 따라 작업을 쓸 수

    추가하는 업데이트? 예를 들어, 하위 프로젝트 목록의 모든 managedClasspath에 종속 된 작업을 작성하는 방법 (모든 항목을 튜플로 묶지 않고)

  • "제공된"것으로 표시되었거나 표시되지 않은 관리 된 jar를 가져 오는 특정 범위가 있습니까? 당신은 당신이 범위는 다양한 구성, 예를 들어,이 작업 할 수있는 참조 대의원을 보면

    > inspect managed-classpath 
    [info] Task: scala.collection.Seq[sbt.Attributed[java.io.File]] 
    [info] Description: 
    [info] The classpath consisting of external, managed library dependencies. 
    [info] Provided by: 
    [info] {file:/Users/heiko/tmp/test/}default-f3fb6c/compile:managed-classpath 
    [info] Dependencies: 
    [info] compile:classpath-configuration 
    [info] compile:classpath-types 
    [info] compile:update 
    [info] Reverse dependencies: 
    [info] compile:external-dependency-classpath 
    [info] Delegates: 
    [info] compile:managed-classpath 
    [info] *:managed-classpath 
    [info] {.}/compile:managed-classpath 
    [info] {.}/*:managed-classpath 
    [info] */compile:managed-classpath 
    [info] */*:managed-classpath 
    [info] Related: 
    [info] test:managed-classpath 
    [info] runtime:managed-classpath 
    

    :

  • SBT에서

답변

0

는 0.11.x 작업 managedClasspath있다

> show compile:managed-classpath 
[info] Updating {file:/Users/heiko/tmp/test/}default-f3fb6c... 
[info] Resolving org.scala-lang#scala-library;2.9.1 ... 
[info] Done updating. 
[info] ArraySeq(Attributed(/Users/heiko/.sbt/boot/scala-2.9.1/lib/scala-library.jar)) 
+0

감사합니다,하지만, 난 여전히 후 내가 무엇 달성 정확히 어떻게 잘 모르겠어요 - 내가 더 정확하게하기 위해 질문을 업데이 트했습니다 : 컴파일합니다. –

관련 문제