--- /home/topic/Projects/Java/Kaffe/projects/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java.old	Thu Jun 13 16:24:44 2002
+++ /home/topic/Projects/Java/Kaffe/projects/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java	Thu Jun 13 16:31:05 2002
@@ -739,10 +739,8 @@
     public void setTargetType(String ttype)
              throws BuildException {
         targetType = ttype.toLowerCase();
-        if (targetType.equals("exe") || targetType.equals("library") ||
-                targetType.equals("module") || targetType.equals("winexe")) {
-            targetType = targetType;
-        } else {
+        if (!(targetType.equals("exe") || targetType.equals("library") ||
+                targetType.equals("module") || targetType.equals("winexe"))) {
             throw new BuildException("targetType " + targetType 
                     + " is not one of 'exe', 'module', 'winexe' or 'library'" );
         }
