ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/embeddor DefaultEmbeddor.java
Date Sat, 26 Jan 2002 12:01:13 GMT
donaldp     02/01/26 04:01:13

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/components/embeddor
                        DefaultEmbeddor.java
  Log:
  Dont modify parameters
  Remove unused local variable
  
  Removing a Audit violation
  
  Revision  Changes    Path
  1.19      +8 -8      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/embeddor/DefaultEmbeddor.java
  
  Index: DefaultEmbeddor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/embeddor/DefaultEmbeddor.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- DefaultEmbeddor.java	20 Jan 2002 17:32:57 -0000	1.18
  +++ DefaultEmbeddor.java	26 Jan 2002 12:01:13 -0000	1.19
  @@ -82,16 +82,17 @@
       }
   
       public Project createProject( final String location,
  -                                  String type,
  +                                  final String type,
                                     final Parameters parameters )
           throws Exception
       {
  -        if( null == type )
  +        String projectType = type;
  +        if( null == projectType )
           {
  -            type = guessTypeFor( location );
  +            projectType = guessTypeFor( location );
           }
   
  -        final ProjectBuilder builder = getProjectBuilder( type, parameters );
  +        final ProjectBuilder builder = getProjectBuilder( projectType, parameters );
           return builder.build( location );
       }
   
  @@ -499,11 +500,10 @@
               final String filename = files[ i ].getName();
   
               int index = filename.lastIndexOf( '.' );
  -            if( -1 == index ) {
  -              index = filename.length();
  +            if( -1 == index )
  +            {
  +                index = filename.length();
               }
  -
  -            final String name = filename.substring( 0, index );
   
               try
               {
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message