@@ -194,7 +194,7 @@ public class ScriptDef extends DefBase { | |||||
if (helper.getSrc() == null && helper.getEncoding() != null) { | if (helper.getSrc() == null && helper.getEncoding() != null) { | ||||
throw new BuildException("scriptdef requires a src attribute " | throw new BuildException("scriptdef requires a src attribute " | ||||
+ "if the encoding is set"); | |||||
+ "if the encoding is set"); | |||||
} | } | ||||
// Check if need to set the loader | // Check if need to set the loader | ||||
@@ -372,7 +372,7 @@ public class ScriptDef extends DefBase { | |||||
} | } | ||||
/** | /** | ||||
* Defines the compilation feature (optional). | |||||
* Defines the compilation feature ; optional. | |||||
* | * | ||||
* @param compiled enables the script compilation if available. | * @param compiled enables the script compilation if available. | ||||
*/ | */ | ||||
@@ -283,11 +283,11 @@ public abstract class ScriptRunnerBase { | |||||
* @throws BuildException if the resource cannot be read | * @throws BuildException if the resource cannot be read | ||||
*/ | */ | ||||
public void loadResource(Resource sourceResource) { | public void loadResource(Resource sourceResource) { | ||||
if(sourceResource instanceof StringResource) { | |||||
if (sourceResource instanceof StringResource) { | |||||
script += ((StringResource) sourceResource).getValue(); | script += ((StringResource) sourceResource).getValue(); | ||||
return; | return; | ||||
} | } | ||||
if(sourceResource instanceof PropertyResource) { | |||||
if (sourceResource instanceof PropertyResource) { | |||||
script += ((PropertyResource) sourceResource).getValue(); | script += ((PropertyResource) sourceResource).getValue(); | ||||
return; | return; | ||||
} | } | ||||
@@ -183,7 +183,7 @@ public class ScriptRunnerHelper { | |||||
* If this is true and the compilation feature is available in | * If this is true and the compilation feature is available in | ||||
* the script engine, the script is compiled before the first | * the script engine, the script is compiled before the first | ||||
* evaluation, and should be cached for future evaluations. | * evaluation, and should be cached for future evaluations. | ||||
* Otherwise, a script is evaluated is used. | |||||
* Otherwise, the script is evaluated each time. | |||||
* The default is false. | * The default is false. | ||||
* | * | ||||
* @param compiled the value to set. | * @param compiled the value to set. | ||||