diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java b/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java index b6618f39b..5e2d01155 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java @@ -225,9 +225,7 @@ public class Ilasm public void setTargetType(String targetType) throws BuildException { this.targetType = targetType.toLowerCase(); - if (targetType.equals("exe") || targetType.equals("library")) { - targetType = targetType; - } else { + if (!targetType.equals("exe") && !targetType.equals("library")) { throw new BuildException("targetType " + targetType + " is not a valid type"); } } @@ -519,8 +517,6 @@ public class Ilasm throws BuildException { NetCommand command = new NetCommand(this, exe_title, exe_name); command.setFailOnError(getFailFailOnError()); - //DEBUG helper - command.setTraceCommandLine(true); //fill in args command.addArgument(getDebugParameter()); command.addArgument(getTargetTypeParameter());