You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2017/02/20 16:58:55 UTC
[05/12] ant git commit: Cosmetic changes
Cosmetic changes
Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/5710193e
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/5710193e
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/5710193e
Branch: refs/heads/master
Commit: 5710193e1464397b3093207c22f2cb8b28275c71
Parents: 49896d3
Author: pyxide <op...@gmail.com>
Authored: Tue Jan 17 01:08:54 2017 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Mon Feb 20 17:41:37 2017 +0100
----------------------------------------------------------------------
.../org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java | 4 ++--
src/main/org/apache/tools/ant/util/ScriptRunnerBase.java | 4 ++--
src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant/blob/5710193e/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java b/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java
index e45668c..9f3854f 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java
@@ -194,7 +194,7 @@ public class ScriptDef extends DefBase {
if (helper.getSrc() == null && helper.getEncoding() != null) {
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
@@ -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.
*/
http://git-wip-us.apache.org/repos/asf/ant/blob/5710193e/src/main/org/apache/tools/ant/util/ScriptRunnerBase.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/ScriptRunnerBase.java b/src/main/org/apache/tools/ant/util/ScriptRunnerBase.java
index ae0af33..c738999 100644
--- a/src/main/org/apache/tools/ant/util/ScriptRunnerBase.java
+++ b/src/main/org/apache/tools/ant/util/ScriptRunnerBase.java
@@ -283,11 +283,11 @@ public abstract class ScriptRunnerBase {
* @throws BuildException if the resource cannot be read
*/
public void loadResource(Resource sourceResource) {
- if(sourceResource instanceof StringResource) {
+ if (sourceResource instanceof StringResource) {
script += ((StringResource) sourceResource).getValue();
return;
}
- if(sourceResource instanceof PropertyResource) {
+ if (sourceResource instanceof PropertyResource) {
script += ((PropertyResource) sourceResource).getValue();
return;
}
http://git-wip-us.apache.org/repos/asf/ant/blob/5710193e/src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java b/src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java
index 528a565..eda0421 100644
--- a/src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java
+++ b/src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java
@@ -183,7 +183,7 @@ public class ScriptRunnerHelper {
* If this is true and the compilation feature is available in
* the script engine, the script is compiled before the first
* 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.
*
* @param compiled the value to set.