I have tried it.
when I pass -Duser.language=en, it report the error below:
\web\src\test\resources\web-tests.xml:175: Wrong document title found!.
Expected value ".*Main Menu.*" but got "Doh! | AppFuse"
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
I think it's the problem of webtest, I change two lines
"
<property
file="\${basedir}/target/${webapp.name}/WEB-INF/classes/ApplicationResources_${user.language}.properties"/>
<property
file="\${basedir}/target/${webapp.name}/WEB-INF/classes/ApplicationResources.properties"/>
"
to
"
<property
file="\${basedir}/target/${webapp.name}/WEB-INF/classes/ApplicationResources_${user.language}.properties"/>
<property
file="\${basedir}/target/${webapp.name}/WEB-INF/classes/ApplicationResources_${user.language}.properties"/>]
"
in the file \web\src\test\resources\web-tests.xml, now it report another
error:
\web\src\test\resources\web-tests.xml:23: Canoo Webtest: R_1600.
Test failed.
Exception raised: java.util.regex.PatternSyntaxException: Illegal repetition
near index 2
.*${login.title}.*
^java.util.regex.PatternSyntaxException: Illegal repetition near index 2
.*${login.title}.*
^
at java.util.regex.Pattern.error(Pattern.java:1650)
at java.util.regex.Pattern.closure(Pattern.java:2706)
If I deploy the war to tomcat or resin manually, It can work. But It want to
use the locale zh_CN, the page show some English word ,some Chinese word
:-(
mraible wrote:
>
> If you pass in -Duser.language=en, does it work?
>
> On Fri, Apr 11, 2008 at 1:58 AM, luxas <[EMAIL PROTECTED]> wrote:
>>
>> I have the same problem in Appfuse2.01(use Spring, ibatis and tapestry)
>> now.
>>
>> When I enter my project's folder and run
>> mvn integration-test -Ppostgresql
>>
>> It reports the follow error:
>>
>> "Embedded error: The following error occurred while executing this line:
>> login.xml:6: Wrong document title found!. Expected value ".*主菜单.*" but
>> got
>> "Main Menu | AppFuse"
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> "
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Appfuse2.0M3-locale-%27zh%27-unsupported-tp8840662s2369p16627273.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Appfuse2.0M3-locale-%27zh%27-unsupported-tp8840662s2369p16670394.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]