Skip to content

Commit

Permalink
set javac encoding for zos
Browse files Browse the repository at this point in the history
This is only needed for compile ant copied files. On zos, ant <copy>
does not keep file tag. Therefore, ant copied files cannot be read by
javac. Preset javac with encoding="ISO-8859-1" so that files without
proper tag can be read

[ci skip]

Signed-off-by: lanxia <[email protected]>
  • Loading branch information
llxia committed Nov 30, 2018
1 parent f4a00be commit 47aa68f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/functional/cmdLineTests/URLClassLoaderTests/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<property name="src" location="."/>
<property name="build.dir" location="./bin"/>

<!-- on zos, ant <copy> does not keep file tag. Therefore, ant copied files
cannot be read by javac. Preset javac with encoding="ISO-8859-1" so that files
without proper tagging can be read.
-->
<presetdef name="javac">
<javac encoding="ISO-8859-1" />
</presetdef>

<target name="init">
<mkdir dir="${DEST}" />
<mkdir dir="${build.dir}" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@

<property name="DEST" value="${BUILD_ROOT}/functional/cmdLineTests/shareClassTests/testClasses" />

<!-- on zos, ant <copy> does not keep file tag. Therefore, ant copied files
cannot be read by javac. Preset javac with encoding="ISO-8859-1" so that files
without proper tagging can be read.
-->
<presetdef name="javac">
<javac encoding="ISO-8859-1" />
</presetdef>

<target name="AddTestClassesToPackage">
<!-- create the folders -->
<mkdir dir="${build}/Alphabet" />
Expand Down

0 comments on commit 47aa68f

Please sign in to comment.