git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270733 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -14,7 +14,7 @@ import org.apache.myrmidon.api.TaskException; | |||||
| import org.apache.tools.ant.types.DirectoryScanner; | import org.apache.tools.ant.types.DirectoryScanner; | ||||
| import org.apache.tools.ant.taskdefs.condition.Condition; | import org.apache.tools.ant.taskdefs.condition.Condition; | ||||
| import org.apache.tools.ant.types.FileSet; | import org.apache.tools.ant.types.FileSet; | ||||
| import org.apache.tools.ant.types.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.FileNameMapper; | import org.apache.tools.ant.util.mappers.FileNameMapper; | ||||
| import org.apache.tools.ant.util.mappers.MergingMapper; | import org.apache.tools.ant.util.mappers.MergingMapper; | ||||
| import org.apache.tools.ant.types.SourceFileScanner; | import org.apache.tools.ant.types.SourceFileScanner; | ||||
| @@ -16,7 +16,7 @@ import org.apache.tools.ant.types.DirectoryScanner; | |||||
| import org.apache.tools.ant.types.Commandline; | import org.apache.tools.ant.types.Commandline; | ||||
| import org.apache.tools.ant.types.EnumeratedAttribute; | import org.apache.tools.ant.types.EnumeratedAttribute; | ||||
| import org.apache.tools.ant.types.FileSet; | import org.apache.tools.ant.types.FileSet; | ||||
| import org.apache.tools.ant.types.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.Mapper; | |||||
| import org.apache.tools.ant.types.Marker; | import org.apache.tools.ant.types.Marker; | ||||
| import org.apache.tools.ant.util.mappers.FileNameMapper; | import org.apache.tools.ant.util.mappers.FileNameMapper; | ||||
| import org.apache.tools.ant.types.SourceFileScanner; | import org.apache.tools.ant.types.SourceFileScanner; | ||||
| @@ -20,7 +20,7 @@ import org.apache.tools.ant.Task; | |||||
| import org.apache.tools.ant.types.FileSet; | import org.apache.tools.ant.types.FileSet; | ||||
| import org.apache.tools.ant.types.FilterSet; | import org.apache.tools.ant.types.FilterSet; | ||||
| import org.apache.tools.ant.types.FilterSetCollection; | import org.apache.tools.ant.types.FilterSetCollection; | ||||
| import org.apache.tools.ant.types.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.FileNameMapper; | import org.apache.tools.ant.util.mappers.FileNameMapper; | ||||
| import org.apache.tools.ant.util.FileUtils; | import org.apache.tools.ant.util.FileUtils; | ||||
| import org.apache.tools.ant.util.mappers.FlatFileNameMapper; | import org.apache.tools.ant.util.mappers.FlatFileNameMapper; | ||||
| @@ -12,7 +12,7 @@ import org.apache.myrmidon.api.TaskException; | |||||
| import org.apache.tools.ant.taskdefs.MatchingTask; | import org.apache.tools.ant.taskdefs.MatchingTask; | ||||
| import org.apache.tools.ant.types.Commandline; | import org.apache.tools.ant.types.Commandline; | ||||
| import org.apache.tools.ant.types.DirectoryScanner; | import org.apache.tools.ant.types.DirectoryScanner; | ||||
| import org.apache.tools.ant.types.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.Mapper; | |||||
| import org.apache.tools.ant.types.SourceFileScanner; | import org.apache.tools.ant.types.SourceFileScanner; | ||||
| import org.apache.tools.ant.util.mappers.FileNameMapper; | import org.apache.tools.ant.util.mappers.FileNameMapper; | ||||
| import org.apache.tools.ant.util.mappers.IdentityMapper; | import org.apache.tools.ant.util.mappers.IdentityMapper; | ||||
| @@ -5,13 +5,13 @@ | |||||
| * version 1.1, a copy of which has been included with this distribution in | * version 1.1, a copy of which has been included with this distribution in | ||||
| * the LICENSE.txt file. | * the LICENSE.txt file. | ||||
| */ | */ | ||||
| package org.apache.tools.ant.types; | |||||
| package org.apache.tools.ant.util.mappers; | |||||
| import java.net.URL; | import java.net.URL; | ||||
| import java.net.URLClassLoader; | import java.net.URLClassLoader; | ||||
| import org.apache.myrmidon.api.TaskException; | import org.apache.myrmidon.api.TaskException; | ||||
| import org.apache.tools.ant.ProjectComponent; | import org.apache.tools.ant.ProjectComponent; | ||||
| import org.apache.tools.ant.util.mappers.FileNameMapper; | |||||
| import org.apache.tools.ant.types.Path; | |||||
| /** | /** | ||||
| * Element to define a FileNameMapper. | * Element to define a FileNameMapper. | ||||
| @@ -5,9 +5,10 @@ | |||||
| * version 1.1, a copy of which has been included with this distribution in | * version 1.1, a copy of which has been included with this distribution in | ||||
| * the LICENSE.txt file. | * the LICENSE.txt file. | ||||
| */ | */ | ||||
| package org.apache.tools.ant.types; | |||||
| package org.apache.tools.ant.util.mappers; | |||||
| import java.util.Properties; | import java.util.Properties; | ||||
| import org.apache.tools.ant.types.EnumeratedAttribute; | |||||
| /** | /** | ||||
| * Class as Argument to FileNameMapper.setType. | * Class as Argument to FileNameMapper.setType. | ||||
| @@ -15,26 +16,26 @@ import java.util.Properties; | |||||
| public class MapperType | public class MapperType | ||||
| extends EnumeratedAttribute | extends EnumeratedAttribute | ||||
| { | { | ||||
| private final Properties m_implementations; | |||||
| private final Properties c_implementations; | |||||
| public MapperType() | public MapperType() | ||||
| { | { | ||||
| m_implementations = new Properties(); | |||||
| m_implementations.put( "identity", | |||||
| c_implementations = new Properties(); | |||||
| c_implementations.put( "identity", | |||||
| "org.apache.tools.ant.util.IdentityMapper" ); | "org.apache.tools.ant.util.IdentityMapper" ); | ||||
| m_implementations.put( "flatten", | |||||
| c_implementations.put( "flatten", | |||||
| "org.apache.tools.ant.util.FlatFileNameMapper" ); | "org.apache.tools.ant.util.FlatFileNameMapper" ); | ||||
| m_implementations.put( "glob", | |||||
| c_implementations.put( "glob", | |||||
| "org.apache.tools.ant.util.GlobPatternMapper" ); | "org.apache.tools.ant.util.GlobPatternMapper" ); | ||||
| m_implementations.put( "merge", | |||||
| c_implementations.put( "merge", | |||||
| "org.apache.tools.ant.util.MergingMapper" ); | "org.apache.tools.ant.util.MergingMapper" ); | ||||
| m_implementations.put( "regexp", | |||||
| c_implementations.put( "regexp", | |||||
| "org.apache.tools.ant.util.RegexpPatternMapper" ); | "org.apache.tools.ant.util.RegexpPatternMapper" ); | ||||
| } | } | ||||
| public String getImplementation() | public String getImplementation() | ||||
| { | { | ||||
| return m_implementations.getProperty( getValue() ); | |||||
| return c_implementations.getProperty( getValue() ); | |||||
| } | } | ||||
| public String[] getValues() | public String[] getValues() | ||||
| @@ -14,7 +14,7 @@ import org.apache.myrmidon.api.TaskException; | |||||
| import org.apache.tools.ant.types.DirectoryScanner; | import org.apache.tools.ant.types.DirectoryScanner; | ||||
| import org.apache.tools.ant.taskdefs.condition.Condition; | import org.apache.tools.ant.taskdefs.condition.Condition; | ||||
| import org.apache.tools.ant.types.FileSet; | import org.apache.tools.ant.types.FileSet; | ||||
| import org.apache.tools.ant.types.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.FileNameMapper; | import org.apache.tools.ant.util.mappers.FileNameMapper; | ||||
| import org.apache.tools.ant.util.mappers.MergingMapper; | import org.apache.tools.ant.util.mappers.MergingMapper; | ||||
| import org.apache.tools.ant.types.SourceFileScanner; | import org.apache.tools.ant.types.SourceFileScanner; | ||||
| @@ -16,7 +16,7 @@ import org.apache.tools.ant.types.DirectoryScanner; | |||||
| import org.apache.tools.ant.types.Commandline; | import org.apache.tools.ant.types.Commandline; | ||||
| import org.apache.tools.ant.types.EnumeratedAttribute; | import org.apache.tools.ant.types.EnumeratedAttribute; | ||||
| import org.apache.tools.ant.types.FileSet; | import org.apache.tools.ant.types.FileSet; | ||||
| import org.apache.tools.ant.types.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.Mapper; | |||||
| import org.apache.tools.ant.types.Marker; | import org.apache.tools.ant.types.Marker; | ||||
| import org.apache.tools.ant.util.mappers.FileNameMapper; | import org.apache.tools.ant.util.mappers.FileNameMapper; | ||||
| import org.apache.tools.ant.types.SourceFileScanner; | import org.apache.tools.ant.types.SourceFileScanner; | ||||
| @@ -20,7 +20,7 @@ import org.apache.tools.ant.Task; | |||||
| import org.apache.tools.ant.types.FileSet; | import org.apache.tools.ant.types.FileSet; | ||||
| import org.apache.tools.ant.types.FilterSet; | import org.apache.tools.ant.types.FilterSet; | ||||
| import org.apache.tools.ant.types.FilterSetCollection; | import org.apache.tools.ant.types.FilterSetCollection; | ||||
| import org.apache.tools.ant.types.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.FileNameMapper; | import org.apache.tools.ant.util.mappers.FileNameMapper; | ||||
| import org.apache.tools.ant.util.FileUtils; | import org.apache.tools.ant.util.FileUtils; | ||||
| import org.apache.tools.ant.util.mappers.FlatFileNameMapper; | import org.apache.tools.ant.util.mappers.FlatFileNameMapper; | ||||
| @@ -12,7 +12,7 @@ import org.apache.myrmidon.api.TaskException; | |||||
| import org.apache.tools.ant.taskdefs.MatchingTask; | import org.apache.tools.ant.taskdefs.MatchingTask; | ||||
| import org.apache.tools.ant.types.Commandline; | import org.apache.tools.ant.types.Commandline; | ||||
| import org.apache.tools.ant.types.DirectoryScanner; | import org.apache.tools.ant.types.DirectoryScanner; | ||||
| import org.apache.tools.ant.types.Mapper; | |||||
| import org.apache.tools.ant.util.mappers.Mapper; | |||||
| import org.apache.tools.ant.types.SourceFileScanner; | import org.apache.tools.ant.types.SourceFileScanner; | ||||
| import org.apache.tools.ant.util.mappers.FileNameMapper; | import org.apache.tools.ant.util.mappers.FileNameMapper; | ||||
| import org.apache.tools.ant.util.mappers.IdentityMapper; | import org.apache.tools.ant.util.mappers.IdentityMapper; | ||||
| @@ -5,13 +5,13 @@ | |||||
| * version 1.1, a copy of which has been included with this distribution in | * version 1.1, a copy of which has been included with this distribution in | ||||
| * the LICENSE.txt file. | * the LICENSE.txt file. | ||||
| */ | */ | ||||
| package org.apache.tools.ant.types; | |||||
| package org.apache.tools.ant.util.mappers; | |||||
| import java.net.URL; | import java.net.URL; | ||||
| import java.net.URLClassLoader; | import java.net.URLClassLoader; | ||||
| import org.apache.myrmidon.api.TaskException; | import org.apache.myrmidon.api.TaskException; | ||||
| import org.apache.tools.ant.ProjectComponent; | import org.apache.tools.ant.ProjectComponent; | ||||
| import org.apache.tools.ant.util.mappers.FileNameMapper; | |||||
| import org.apache.tools.ant.types.Path; | |||||
| /** | /** | ||||
| * Element to define a FileNameMapper. | * Element to define a FileNameMapper. | ||||
| @@ -5,9 +5,10 @@ | |||||
| * version 1.1, a copy of which has been included with this distribution in | * version 1.1, a copy of which has been included with this distribution in | ||||
| * the LICENSE.txt file. | * the LICENSE.txt file. | ||||
| */ | */ | ||||
| package org.apache.tools.ant.types; | |||||
| package org.apache.tools.ant.util.mappers; | |||||
| import java.util.Properties; | import java.util.Properties; | ||||
| import org.apache.tools.ant.types.EnumeratedAttribute; | |||||
| /** | /** | ||||
| * Class as Argument to FileNameMapper.setType. | * Class as Argument to FileNameMapper.setType. | ||||
| @@ -15,26 +16,26 @@ import java.util.Properties; | |||||
| public class MapperType | public class MapperType | ||||
| extends EnumeratedAttribute | extends EnumeratedAttribute | ||||
| { | { | ||||
| private final Properties m_implementations; | |||||
| private final Properties c_implementations; | |||||
| public MapperType() | public MapperType() | ||||
| { | { | ||||
| m_implementations = new Properties(); | |||||
| m_implementations.put( "identity", | |||||
| c_implementations = new Properties(); | |||||
| c_implementations.put( "identity", | |||||
| "org.apache.tools.ant.util.IdentityMapper" ); | "org.apache.tools.ant.util.IdentityMapper" ); | ||||
| m_implementations.put( "flatten", | |||||
| c_implementations.put( "flatten", | |||||
| "org.apache.tools.ant.util.FlatFileNameMapper" ); | "org.apache.tools.ant.util.FlatFileNameMapper" ); | ||||
| m_implementations.put( "glob", | |||||
| c_implementations.put( "glob", | |||||
| "org.apache.tools.ant.util.GlobPatternMapper" ); | "org.apache.tools.ant.util.GlobPatternMapper" ); | ||||
| m_implementations.put( "merge", | |||||
| c_implementations.put( "merge", | |||||
| "org.apache.tools.ant.util.MergingMapper" ); | "org.apache.tools.ant.util.MergingMapper" ); | ||||
| m_implementations.put( "regexp", | |||||
| c_implementations.put( "regexp", | |||||
| "org.apache.tools.ant.util.RegexpPatternMapper" ); | "org.apache.tools.ant.util.RegexpPatternMapper" ); | ||||
| } | } | ||||
| public String getImplementation() | public String getImplementation() | ||||
| { | { | ||||
| return m_implementations.getProperty( getValue() ); | |||||
| return c_implementations.getProperty( getValue() ); | |||||
| } | } | ||||
| public String[] getValues() | public String[] getValues() | ||||