• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rép : Re: Wonder 5.8.2 and 6.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rép : Re: Wonder 5.8.2 and 6.0


  • Subject: Re: Rép : Re: Wonder 5.8.2 and 6.0
  • From: Bastian Triller <email@hidden>
  • Date: Fri, 07 Dec 2012 23:10:23 +0100

it seems that versionStringForApplication and
versionStringForFrameworkNamed are broken. They should look in
Info.plist for CFBundleShortVersionString.
Use
valueFromPlistBundleWithKey(NSBundle.bundleForName("JavaWebObjects"),
"Info.plist", "CFBundleShortVersionString")

Am Freitag, den 07.12.2012, 12:18 -0600 schrieb John Huss:
> What is your problem??
>
>
> On Wed, Dec 5, 2012 at 8:05 AM, Raymond NANEON <email@hidden> wrote:
>         Hi Pascal,
>
>         It's normal to have empty String when we want to check WO
>         Version (JavaWebObjects) in the ERXProperties.class of the new
>         Wonder?
>         With Wonder 5.4 it works fine but with the new Wonder nothing
>         works.
>
>         When have Big diffrence between these methods :
>
>         WONDER 5.8.X
>
>         public static String versionStringForFrameworkNamed(String
>         frameworkName) {
>                 return
>         valueFromPlistBundleWithKey(NSBundle.bundleForName(frameworkName), "CustomInfo.plist", "CFBundleShortVersionString");
>             }
>
>         public static String valueFromPlistBundleWithKey(NSBundle
>         bundle, String plist, String key) {
>                 if (bundle == null)
>                     return "";
>
>                 String dictString = new
>         String(bundle.bytesForResourcePath(plist));
>                 NSDictionary versionDictionary =
>         NSPropertyListSerialization.dictionaryForString(dictString);
>
>                 String versionString = (String)
>         versionDictionary.objectForKey(key);
>                 return versionString == null  ?  ""  :
>         versionString.trim(); // trim() removes the line ending char
>             }
>
>         WONDER 5.4
>
>         public static String versionStringForFrameworkNamed(String
>         frameworkName) {
>                 NSBundle bundle =
>         NSBundle.bundleForName(frameworkName);
>                 if (bundle == null)  return "";
>
>                 String versionString = (String)
>         bundle.infoDictionary()
>                                                     .objectForKey("CFBundleShortVersionString");
>                 return versionString == null  ?  ""  :
>         versionString.trim(); // trim() removes the line ending char
>             }
>
>         Thanks for détails
>
>         Envoyé depuis iCloud
>
>         Le 02 déc 2012 à 15:38, Pascal Robert <email@hidden> a
>         écrit :
>
>         > New frameworks usually have examples with them.
>         >
>         > > Hi Pascal,
>         > >
>         > > Can we have example apps with the new Wonder's evolutions?
>         > >
>         > > Thanks
>         > > Envoyé depuis iCloud
>         > >
>         > > Le 02 déc 2012 à 13:01, Pascal Robert <email@hidden> a
>         > écrit :
>         > >
>         > >> Hello everyone,
>         > >>
>         > >> Wonder 5.8.2 have been released today. All changes
>         > between 5.8.1 and 5.8.2:
>         > >>
>         > >>
>         > https://github.com/projectwonder/wonder/compare/wonder-5.8.1…wonder-5.8.2
>         > >>
>         > >> Work on Wonder 6.0 have begun. The big changes have been
>         > added to the integration branch. Please check if the
>         > following changes affects you:
>         > >>
>         > >> https://github.com/projectwonder/wonder/pull/321
>         > >> https://github.com/projectwonder/wonder/pull/315
>         > >>
>         > https://github.com/pascalrobert/wonder/commit/1d7907152db2f44218e0fdf5c40096254550e0c2
>         > >> https://github.com/projectwonder/wonder/pull/309
>         > >> https://github.com/projectwonder/wonder/pull/298
>         > >> https://github.com/projectwonder/wonder/pull/336
>         > >>
>         > >> It have built fine with Jenkins on
>         > jenkins.wocommunity.org so it should build fine for
>         > everyone.
>         > >>
>         > >> Wonder 6.0 will be merged into the master branch in the
>         > week of January 7th.
>         > >> _______________________________________________
>         > >> Do not post admin requests to the list. They will be
>         > ignored.
>         > >> Webobjects-dev mailing list
>         > (email@hidden)
>         > >> Help/Unsubscribe/Update your Subscription:
>         > >>
>         > >>
>         > >> This email sent to email@hidden
>         >
>         >
>
>          _______________________________________________
>         Do not post admin requests to the list. They will be ignored.
>         Webobjects-dev mailing list
>          (email@hidden)
>         Help/Unsubscribe/Update your Subscription:
>
>         This email sent to email@hidden
>
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Wonder 5.8.2 and 6.0
      • From: Johann Werner <email@hidden>
References: 
 >Re: Wonder 5.8.2 and 6.0 (From: Pascal Robert <email@hidden>)
 >Rép : Re: Wonder 5.8.2 and 6.0 (From: Raymond NANEON <email@hidden>)
 >Re: Rép : Re: Wonder 5.8.2 and 6.0 (From: John Huss <email@hidden>)

  • Prev by Date: Re: Rép : Re: Wonder 5.8.2 and 6.0
  • Next by Date: Re: Wonder 5.8.2 and 6.0
  • Previous by thread: Re: Rép : Re: Wonder 5.8.2 and 6.0
  • Next by thread: Re: Wonder 5.8.2 and 6.0
  • Index(es):
    • Date
    • Thread