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
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 protected]> 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 protected]> 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%E2%80%A6wonder-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 protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/rnaneon%40me.com
>>
>> This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]
