Home > java, weblogic > Compile Code in a different encoding with wlcompile

Compile Code in a different encoding with wlcompile

If you wish to compile code encoded differently you can just add the following javac option to your wlcompile call:

<javac encoding=”UTF-8″ />

just replace UTF-8 with whatever encoding you want to treat your code has.

you can add this option like you add any other javac option, example taken from here :

<wlcompile srcdir=”${mysrcdir}” destdir=”${mybuilddir}”>

<javac deprecation=”false” debug=”true”   debuglevel=”lines,vars,source”/>

</wlcompile>

Some info here and here

this answer in StackOverflow may also interest you.

Advertisements
Categories: java, weblogic
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: