...and forgot to sync up the changes to CommandLineFunction with CloneFunction.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4492 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
kshakir 2010-10-13 22:40:02 +00:00
parent 7c9ef59d65
commit 5034ca18dc
2 changed files with 7 additions and 7 deletions

View File

@ -85,18 +85,18 @@ trait QFunction {
def failOutputs = statusPaths.map(path => new File(path + ".fail")) def failOutputs = statusPaths.map(path => new File(path + ".fail"))
/** The complete list of fields on this CommandLineFunction. */ /** The complete list of fields on this CommandLineFunction. */
def functionFields = QFunction.classFields(this.getClass).functionFields def functionFields = QFunction.classFields(this.functionFieldClass).functionFields
/** The @Input fields on this CommandLineFunction. */ /** The @Input fields on this CommandLineFunction. */
def inputFields = QFunction.classFields(this.getClass).inputFields def inputFields = QFunction.classFields(this.functionFieldClass).inputFields
/** The @Output fields on this CommandLineFunction. */ /** The @Output fields on this CommandLineFunction. */
def outputFields = QFunction.classFields(this.getClass).outputFields def outputFields = QFunction.classFields(this.functionFieldClass).outputFields
/** The @Argument fields on this CommandLineFunction. */ /** The @Argument fields on this CommandLineFunction. */
def argumentFields = QFunction.classFields(this.getClass).argumentFields def argumentFields = QFunction.classFields(this.functionFieldClass).argumentFields
/** /**
* Called at most once, returns the list of fields for this function. * Returns the class that should be used for looking up fields.
*/ */
protected def initFunctionFields = ParsingEngine.extractArgumentSources(this.getClass).toList protected def functionFieldClass = this.getClass
/** /**
* Returns the input files for this function. * Returns the input files for this function.

View File

@ -33,7 +33,7 @@ class CloneFunction extends CommandLineFunction {
override def dotString = originalFunction.dotString override def dotString = originalFunction.dotString
override def description = originalFunction.description override def description = originalFunction.description
override protected def initFunctionFields = originalFunction.functionFields override protected def functionFieldClass = originalFunction.getClass
override def useStatusOutput(file: File) = override def useStatusOutput(file: File) =
file != jobOutputFile && file != jobErrorFile && originalFunction.useStatusOutput(file) file != jobOutputFile && file != jobErrorFile && originalFunction.useStatusOutput(file)