stevel      2003/01/30 23:08:47

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/dotnet
                        Ilasm.java
  Log:
  little code cleanup and remove trace line.
  
  Revision  Changes    Path
  1.23      +1 -5      
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java
  
  Index: Ilasm.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- Ilasm.java        20 Dec 2002 14:34:32 -0000      1.22
  +++ Ilasm.java        31 Jan 2003 07:08:46 -0000      1.23
  @@ -225,9 +225,7 @@
       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 @@
                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());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to