ApplicationResources_zh_CN.properties looks fine on my system. I've
copied the first few lines of the file below so you can verify. Are
you on Windows?
You might try deleting ~/.m2/repository/org/appfuse to make sure you
have the latest archetype.
## Do NOT delete! Keep this line to avoid the native2ascii UTF-8 BOM
bug. See #APF-639
user.status=当前用户:
user.logout=退出
# -- validator errors --
errors.invalid={0} 无效。
errors.maxlength={0} 不能大于 {1} 个字符。
errors.minlength={0} 不能少于 {1} 个字符。
errors.range={0} 未在 {1} 与 {2} 范围内。
errors.required={0} 为必填项。
errors.byte={0} 必须为byte类型。
errors.date={0} 不是有效日期格式。
errors.double={0} 必须为double类型。
errors.float={0} 必须为float类型。
errors.integer={0} 必须为一数值。
errors.long={0} 必须为long类型。
errors.short={0} 必须为short类型。
errors.creditcard={0} 为无效信用卡号。
errors.email={0} 为无效邮件地址。
errors.phone={0} 为无效电话号码。
errors.zip={0} 为无效邮政编码。
Matt
On 9/17/07, nessus <[EMAIL PROTECTED]> wrote:
>
> Matt,
>
> After creating,
> If I run mvn jetty:run-war, zh_CN.properties is fine which I use at mose
> cases;
> If I run mvn appfuse:full-source (whether after creating or after
> jetty:run-war), this file is deleted first and then copied back, at this
> time the content become unreadable.
>
> So I think the problem resides where the files are copied from and the
> source are well encoded?
>
> Need help about this problem which might be slightly different from
> yesterday's.
> Nessus.
>
>
> mraible wrote:
> >
> > Which files become unreadable? I just tried this and opened up
> > ApplicationResources_ko.properties before and after in TextWrangler
> > and it looks fine.
> >
> > Matt
> >
> > On 9/17/07, nessus <[EMAIL PROTECTED]> wrote:
> >>
> >> Matt,
> >>
> >> according to http://issues.appfuse.org/browse/APF-891,
> >>
> >> after mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
> >> -DarchetypeArtifactId=appfuse-basic-struts
> >> -DremoteRepositories=http://static.appfuse.org/repository
> >> -DarchetypeVersion=2.0-SNAPSHOT -DgroupId=com.mycompany.app
> >> -DartifactId=myproject these files are well encoded, but when mvn
> >> appfuse:full-source BUILD SUCCESSFUL, all these files became unreadable.
> >>
> >> please check it.
> >>
> >>
> >> mraible wrote:
> >> >
> >> > The ApplicationResources_*.properties files should be fixed as well.
> >> > Have you seen different?
> >> >
> >> > Matt
> >> >
> >> > On 9/17/07, nessus <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> Matt,
> >> >>
> >> >> thank you, the full-source and jetty:run works fine now.
> >> >>
> >> >> But would you like recheck the original question of this thread? that
> >> is,
> >> >> the applicationresources_*.properties files again became human-unread.
> >> >>
> >> >> nessus.
> >> >>
> >> >>
> >> >> mraible wrote:
> >> >> >
> >> >> > On 9/16/07, nessus <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >> hi, matt,
> >> >> >>
> >> >> >> the question is as subject. And the reproducible scenario is: I
> >> tried
> >> >> to
> >> >> >> create a totally new test project by running the command
> >> >> >> D:\nessus\appfuse>mvn archetype:create
> >> >> >> -DarchetypeGroupId=org.appfuse.archetypes
> >> >> >> -DarchetypeArtifactId=appfuse-basic-struts
> >> >> >> -DremoteRepositories=http://static.a
> >> >> >> ppfuse.org/repository -DarchetypeVersion=2.0-SNAPSHOT
> >> >> >> -DgroupId=com.etpass.etpay
> >> >> >> -DartifactId=payet, then I found all the
> >> >> >> ApplicationResources_*.properties
> >> >> >> were not well internationalized, like the one I would use and
> >> attached
> >> >> >> with
> >> >> >> this post.
> >> >> >>
> >> >> >> This problem didnot occur before the weekend. So can you figure out
> >> >> what
> >> >> >> modification you made caused this problem?
> >> >> >
> >> >> > Thank you for testing 2.0. You are correct, this is a bug. I've
> >> fixed
> >> >> > it and redeployed the latest archetypes. If you rm -r
> >> >> > ~/.m2/repository/org/appfuse/archetypes, it should work now.
> >> >> >
> >> >> > The cause of the problem seems to be copy/pasting files in IDEA
> >> rather
> >> >> > than doing it using Finder (or Windows Explorer).
> >> >> >
> >> >> >>
> >> >> >> Another question is I need all the souce file to add some attribute
> >> to
> >> >> >> User,
> >> >> >> Role, and my own logic to authenticate User. But before the weekend
> >> I
> >> >> >> tried
> >> >> >> mvn appfuse:full-source and all the source codes were retrieved,
> >> while
> >> >> I
> >> >> >> could not successfully run mvn jetty:run again. I did not snapshot
> >> the
> >> >> >> venue, but I remembered the exception is it could not locate the
> >> >> >> org.appfuse.....StartupListener, whereas it should be my own
> >> >> >> com.etpass.....StartupListener. Am I right?
> >> >> >
> >> >> > Using full-source should work. It sounds like it might've failed to
> >> >> > rename your packages - especially if it's looking for org.appfuse.*.
> >> >> >
> >> >> >> Or if my solution is not the brightest way which needs all source
> >> >> code,
> >> >> >> would you recommend a better one?
> >> >> >
> >> >> > This is the best solution for now. Of course, if you just want to
> >> >> > modify User, you can just modify the model objects using the
> >> following
> >> >> > guide.
> >> >> >
> >> >> > http://appfuse.org/display/APF/AppFuse+Core+Classes
> >> >> >
> >> >> > This won't allow you to modify the StartupListener, but you can
> >> always
> >> >> > copy/paste the code into your own listener and replace the
> >> <listener>
> >> >> > in web.xml with yours.
> >> >> >
> >> >> > Hope this helps,
> >> >> >
> >> >> > Matt
> >> >> >
> >> >> >>
> >> >> >> thank you, matt, and others.
> >> >> >>
> >> >> >>
> >> >>
> >> http://www.nabble.com/file/p12728469/ApplicationResources_zh_CN.properties
> >> >> >> ApplicationResources_zh_CN.properties
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >> http://www.nabble.com/Is-AppFuse-well-versioned--tf4463967s2369.html#a12728469
> >> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >> > --
> >> >> > http://raibledesigns.com
> >> >> >
> >> >> >
> >> ---------------------------------------------------------------------
> >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/Is-AppFuse-well-versioned--tf4463967s2369.html#a12748393
> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > http://raibledesigns.com
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Is-AppFuse-well-versioned--tf4463967s2369.html#a12748832
> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > http://raibledesigns.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Is-AppFuse-well-versioned--tf4463967s2369.html#a12749542
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
http://raibledesigns.com