DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32582>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32582





------- Additional Comments From [EMAIL PROTECTED]  2005-01-31 12:31 -------
(In reply to comment #3)
> You could use a custom mapper, for example:
>     <ae:scripttypedef name="custom.mapper" language="beanshell">
>       import org.apache.tools.ant.types.DataType;
>       import org.apache.tools.ant.util.FileNameMapper;
>       import java.io.File;
>       public class CustomMapper extends DataType implements FileNameMapper {
>          public void setFrom(String from) {
>              // DoNothing
>          }
>          public void setTo(String to) {
>              // DoNothing
>          }
>          public String[] mapFileName(String sourceFileName) {
>             String[] ret = new String[1];
>             ret[0] = sourceFileName.toLowerCase() + ".java";
>             return ret;
>          }
>       }
>     </ae:scripttypedef>
>     <pathconvert targetos="unix" property="converted">
>       <path path="ABC:DEF:GHI"/>
>       <mapper>
>         <chainedmapper>
>           <flattenmapper/>
>           <custom.mapper/>
>         </chainedmapper>
>       </mapper>
>     </pathconvert>
>     <echo>${converted}</echo>
> 

If you just change from UPPER.JAVA to upper.java, when the class name is Upper,
then it will also fail.  Perhaps a better solution would be to look inside the
source file and extract the Classname from the source text - 
look for something like "^public class [A-Z][a-z] | ^class [A-Z][a-z]" not sure
 if this would deal with inner classes, but the first "class" should be the one
that the file is called.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to