From 8e5f6ab8286b2d565aefb5ab2675d8f3b5e8c762 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Fri, 31 Jan 2003 07:08:46 +0000 Subject: [PATCH] little code cleanup and remove trace line. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273935 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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());