Permalink
Browse files

Add test for dependency project with separate project definition

(RootProject)
  • Loading branch information...
1 parent 9f17cc8 commit 4b4adf7530f48bf2458385b39671119fde700e29 Mikko Peltonen committed Jan 5, 2012
@@ -0,0 +1,9 @@
+<project version="4">
+ <component name="ProjectModuleManager">
+ <modules>
+ <module filepath="$PROJECT_DIR$/.idea_modules/project.iml" fileurl="file://$PROJECT_DIR$/.idea_modules/project.iml"></module>
+ <module filepath="$PROJECT_DIR$/.idea_modules/root-project.iml" fileurl="file://$PROJECT_DIR$/.idea_modules/root-project.iml"></module>
+ <module filepath="$PROJECT_DIR$/.idea_modules/dependency-root.iml" fileurl="file://$PROJECT_DIR$/.idea_modules/dependency-root.iml"></module>
+ </modules>
+ </component>
+</project>
@@ -0,0 +1,28 @@
+<module type="JAVA_MODULE" version="4">
+ <component name="FacetManager">
+ <facet type="scala" name="Scala">
+ <configuration>
+ <option value="Project" name="compilerLibraryLevel"></option>
+ <option value="scala-2.9.1" name="compilerLibraryName"></option>
+ <option value="true" name="fsc"></option>
+ </configuration>
+ </facet>
+ </component>
+ <component inherit-compiler-output="false" name="NewModuleRootManager">
+ <output url="file://$MODULE_DIR$/../dependency-project/target/scala-2.9.1/classes"></output>
+ <output-test url="file://$MODULE_DIR$/../dependency-project/target/scala-2.9.1/test-classes"></output-test>
+ <exclude-output></exclude-output>
+ <content url="file://$MODULE_DIR$/../dependency-project">
+ <sourceFolder isTestSource="false" url="file://$MODULE_DIR$/../dependency-project/src/main/scala"></sourceFolder>
+ <sourceFolder isTestSource="false" url="file://$MODULE_DIR$/../dependency-project/src/main/java"></sourceFolder>
+ <sourceFolder isTestSource="false" url="file://$MODULE_DIR$/../dependency-project/src/main/resources"></sourceFolder>
+ <sourceFolder isTestSource="true" url="file://$MODULE_DIR$/../dependency-project/src/test/scala"></sourceFolder>
+ <sourceFolder isTestSource="true" url="file://$MODULE_DIR$/../dependency-project/src/test/java"></sourceFolder>
+ <sourceFolder isTestSource="true" url="file://$MODULE_DIR$/../dependency-project/src/test/resources"></sourceFolder>
+ <excludeFolder url="file://$MODULE_DIR$/../dependency-project/target"></excludeFolder>
+ </content>
+ <orderEntry type="inheritedJdk"></orderEntry>
+ <orderEntry forTests="false" type="sourceFolder"></orderEntry>
+ <orderEntry type="library" name="org.scala-lang_scala-library_2.9.1" level="project"></orderEntry>
+ </component>
+</module>
@@ -0,0 +1,5 @@
+import sbt._
+
+object SubBuild extends Build {
+ lazy val root = Project("dependency-root", file("."))
+}
@@ -0,0 +1 @@
+addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "0.11.1-SNAPSHOT")
@@ -0,0 +1,8 @@
+import org.sbtidea.test.util.AbstractScriptedTestBuild
+import sbt._
+import Keys.libraryDependencies
+
+object ScriptedTestBuild extends AbstractScriptedTestBuild {
+ lazy val root = Project("root-project", file("."), settings = Defaults.defaultSettings ++ scriptedTestSettings) aggregate(dependencyProject) dependsOn(dependencyProject)
+ lazy val dependencyProject = RootProject(file("dependency-project"))
+}
@@ -0,0 +1 @@
+addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "0.11.1-SNAPSHOT")
@@ -0,0 +1,2 @@
+> gen-idea
+> assert-expected-xml-files

0 comments on commit 4b4adf7

Please sign in to comment.