Re: How to lowercase all files with a mapper?
Deepak Lalchandani <[email protected]> Fri, 3 Feb 2023 18:21:20 +0530
| Newsgroups | gmane.comp.jakarta.ant.user |
|---|---|
| Message-ID | <CAHho1=8h0Kk8Awq1EmWtn+WvY_mZp041LJ8M7conBig7=krEVA@mail.gmail.com> |
--0000000000001f1e4f05f3cb242d Content-Type: text/plain; charset="UTF-8" Can you share the script mapper with me. I would like to understand its details On Fri, 3 Feb 2023, 6:17 pm BCT Roel de Wildt, <[email protected]> wrote: > Hello, > > I have a build script in Apache Ant that is using the following definition > to move all files from one directory to another directory while everything > must be lowercase. But the scriptmapper gives a warning in openjdk 11 > during the move of every file. > > Warning: > [move] Warning: Nashorn engine is planned to be removed from a future JDK > release > > Build.xml: > > <target name="compose.default.lower"> > <mkdir dir="output/rcode/${platform}/${project}" /> > > <move todir="output/rcode/${platform}/${project}"> > <fileset > dir="preproces/rcode/${platform}/${project}"> > <include name="**" /> > </fileset> > <scriptmapper language="javascript"> > self.clear(); > > self.addMappedName(source.toLowerCase()); > </scriptmapper> > </move> > </target> > > Is there a alternative mapper that does not give a warning and could lower > case everything in the string? > > Kind regards, > > Roel de Wildt > --0000000000001f1e4f05f3cb242d--