-
Type:
Bug
-
Status: Closed
-
Resolution: No Longer Reproducible
-
Affects Version/s: None
-
Fix Version/s: --Sprint 11/12, 6.2.0 CE M2
-
Component/s: ~[Archived] WCM
-
Labels:
I was unable to compile liferay on a linux system that has its platform encoding set to utf 8
jteam@liferay:~/liferay/portal-5.2.3-src$ echo $LANG
en_US.UTF-8
to fix it i modified the compile target in build-common-java.xml to look like this
<target name="compile">
<mkdir dir="classes" />
<copy todir="classes">
<fileset dir="src" excludes="*/.java" />
</copy>
<if>
<equals arg1="${javac.compiler}" arg2="modern" />
<then>
<javac
classpathref="project.classpath"
compiler="${javac.compiler}"
debug="${javac.debug}"
deprecation="${javac.deprecation}"
destdir="classes"
fork="${javac.fork}"
memoryMaximumSize="${javac.memoryMaximumSize}"
nowarn="${javac.nowarn}"
srcdir="src"
encoding="windows-1252"
/>
</then>
<else>
<javac
classpathref="project.classpath"
compiler="${javac.compiler}"
debug="${javac.debug}"
deprecation="${javac.deprecation}"
destdir="classes"
nowarn="${javac.nowarn}"
srcdir="src"
encoding="windows-1252"
/>
</else>
</if>
</target>
eg with the encoding attribute set on the javac task