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>