Browse Source

Dont modify parameters

Remove unused local variable

Removing a Audit violation


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270876 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
bc848b4fe1
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      proposal/myrmidon/src/java/org/apache/myrmidon/components/embeddor/DefaultEmbeddor.java

+ 8
- 8
proposal/myrmidon/src/java/org/apache/myrmidon/components/embeddor/DefaultEmbeddor.java View File

@@ -82,16 +82,17 @@ public class DefaultEmbeddor
}

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,12 +500,11 @@ public class DefaultEmbeddor
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
{
final File file = files[ i ].getCanonicalFile();


Loading…
Cancel
Save