ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: using mapper element to make a file name proper case
Date Tue, 02 Jan 2007 10:36:33 GMT
And what will be 
	helloworld.java ?
HelloWorld.java, Helloworld.java ....


I think that's difficult because of camelcase notation.


Jan
 

>-----Urspr√ľngliche Nachricht-----
>Von: Sunil [mailto:sunny_dil@yahoo.com] 
>Gesendet: Mittwoch, 27. Dezember 2006 23:29
>An: user@ant.apache.org
>Betreff: using mapper element to make a file name proper case
>
>I am trying to make a java file name Proper case without 
>inputting the file names
>
>ex: test.java to Test.java
>
>The below code takes all the .java files and converts the 
>entire filename to upper case.
>
>    <move todir="${BLD_TOP}/sample/">
>    <fileset dir="${BLD_TOP}/sample/">
>        <include name="**/*.java"/>
>    </fileset>
>    <scriptmapper language="javascript">
>    
>
> self.addMappedName(source.toUpperCase());
>  self.addMappedName(source.toLowerCase());
>    
>  
>
>    <classpath>
>    <pathelement location="c:/j2sdk1.4.2_12/bin/bsf.jar"/>
>    <pathelement path="${java.class.path}"/>
>    </classpath>
>      </scriptmapper>
>      
>    
>     </move>
>  
>
> __________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection 
>around http://mail.yahoo.com 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message