Skip to content

Commit 14d86e8

Browse files
committed
Add a comment.
1 parent 4eef52b commit 14d86e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

project/SparkBuild.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ object SparkBuild extends PomBuild {
102102
}
103103

104104
if (System.getProperty("scala-2.11") == "") {
105+
// To activate scala-2.11 profile, replace empty property value to non-empty value
106+
// in the same way as Maven which handles -Dname as -Dname=true before executes build process.
107+
// see: https://github.com/apache/maven/blob/maven-3.0.4/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java#L1082
105108
System.setProperty("scala-2.11", "true")
106109
}
107110
profiles

0 commit comments

Comments
 (0)