0

I followed this example and when I start the command (the instruction of the tutorial) I get the following error:

PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory> ant
Buildfile: C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml
     [echo] Generating for SDK version =6.2.0

generate-portlet:
     [java] May 19, 2014 4:37:31 PM org.xmlportletfactory.utils.XMLUtils validateAgainstSchema
     [java] SEVERE: null
     [java] com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
 ...

BUILD FAILED
C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml:19: Java returned: 1

Total time: 0 seconds
PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory>

How to say ant that it use utf-8 encoding? If I change the encoding in the xml I get the following error:

PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory> ant
Buildfile: C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml

BUILD FAILED
Encoding of project file C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory\build.xml is invalid.

Total time: 0 seconds
PS C:\repository\liferay-plugins-sdk-6.2.0\XMLPortletFactory\example-xmlportletfactory>
Steve Swinsburg
  • 592
  • 2
  • 14
user3206010
  • 141
  • 2
  • 16
  • 1
    possible duplicate of [How do I set -Dfile.encoding within ant's build.xml?](http://stackoverflow.com/questions/1339352/how-do-i-set-dfile-encoding-within-ants-build-xml) – Pavel Horal May 19 '14 at 15:00
  • Yes but it doesnt work, I try to change encoding of the file via notepad++ , pass the the encoding style to ant via option '-Dfile.encoding=' and set the encoding attribute in the xml but it doesnt helps. – user3206010 May 20 '14 at 07:11
  • I see my problem I dont realy convert the encoding to certain format. After convertation it works. – user3206010 May 20 '14 at 07:17

0 Answers0