How to lowercase all files with a mapper?

BCT Roel de Wildt <[email protected]> Fri, 3 Feb 2023 12:47:16 +0000
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <VI1PR0802MB24956873C519B456E4FD98A3B8D79@VI1PR0802MB2495.eurprd08.prod.outlook.com>
--_000_VI1PR0802MB24956873C519B456E4FD98A3B8D79VI1PR0802MB2495_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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 durin=
g the move of every file.

Warning:
[move] Warning: Nashorn engine is planned to be removed from a future JDK r=
elease

Build.xml:

            <target name=3D"compose.default.lower">
                        <mkdir dir=3D"output/rcode/${platform}/${project}" =
/>

                        <move todir=3D"output/rcode/${platform}/${project}"=
>
                                    <fileset dir=3D"preproces/rcode/${platf=
orm}/${project}">
                                               <include name=3D"**" />
                                    </fileset>
                                    <scriptmapper language=3D"javascript">
                                               self.clear();
                                               self.addMappedName(source.to=
LowerCase());
                                    </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

--_000_VI1PR0802MB24956873C519B456E4FD98A3B8D79VI1PR0802MB2495_--