diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-08 18:46:35 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-08 18:46:35 +0000 |
commit | fa34ce4700548a8d913d8aef71e8c86f668e498f (patch) | |
tree | a55cce5f90f35d6eda60498e3f0a9f28cadeb14f /src/compiler | |
parent | 5f7ddb20ab2e3729f30f6b1ee432a078a1a09899 (diff) | |
download | scala-fa34ce4700548a8d913d8aef71e8c86f668e498f.tar.gz scala-fa34ce4700548a8d913d8aef71e8c86f668e498f.tar.bz2 scala-fa34ce4700548a8d913d8aef71e8c86f668e498f.zip |
Changed partest ant task not to use reflection,...
Changed partest ant task not to use reflection, instead using the path
with which scala was invoked. No review.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/ant/sabbus/TaskArgs.scala | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/src/compiler/scala/tools/ant/sabbus/TaskArgs.scala b/src/compiler/scala/tools/ant/sabbus/TaskArgs.scala index 6526f67254..20a6791648 100644 --- a/src/compiler/scala/tools/ant/sabbus/TaskArgs.scala +++ b/src/compiler/scala/tools/ant/sabbus/TaskArgs.scala @@ -14,22 +14,10 @@ import java.io.File import org.apache.tools.ant.Task import org.apache.tools.ant.types.{Path, Reference} -trait TaskArgs { this: Task => +trait CompilationPathProperty { + this: Task => - def setId(input: String) { - id = Some(input) - } - - def setParams(input: String) { - params = params match { - case None => Some(input) - case Some(ps) => Some(ps + " " + input) - } - } - - def setTarget(input: String) { - compTarget = Some(input) - } + protected var compilationPath: Option[Path] = None def setCompilationPath(input: Path) { if (compilationPath.isEmpty) compilationPath = Some(input) @@ -44,6 +32,25 @@ trait TaskArgs { this: Task => def setCompilationPathRef(input: Reference) { createCompilationPath.setRefid(input) } +} + +trait TaskArgs extends CompilationPathProperty { + this: Task => + + def setId(input: String) { + id = Some(input) + } + + def setParams(input: String) { + params = params match { + case None => Some(input) + case Some(ps) => Some(ps + " " + input) + } + } + + def setTarget(input: String) { + compTarget = Some(input) + } def setSrcPath(input: Path) { if (sourcePath.isEmpty) sourcePath = Some(input) @@ -80,7 +87,6 @@ trait TaskArgs { this: Task => protected var id: Option[String] = None protected var params: Option[String] = None protected var compTarget: Option[String] = None - protected var compilationPath: Option[Path] = None protected var sourcePath: Option[Path] = None protected var compilerPath: Option[Path] = None protected var destinationDir: Option[File] = None |