Re: Maven build and CFBundleShortVersionString
Re: Maven build and CFBundleShortVersionString
- Subject: Re: Maven build and CFBundleShortVersionString
- From: Alexis Tual <email@hidden>
- Date: Sat, 12 Jun 2010 18:33:15 +0200
Le 12 juin 2010 à 12:06, Lachlan Deck a écrit :
> On 12/06/2010, at 8:18 AM, Alexis Tual wrote:
>
>> Le 11 juin 2010 à 22:17, Henrique Prange a écrit :
>>
>>> On 11/06/10 13:24, Alexis Tual wrote:
>>>> Hi list and maven guys,
>>>>
>>>> i'd like to add the CFBundleShortVersionString param in Info.plist 's
>>>> maven built frameworks (mine and in wonder frameworks)
>>>> Has anyone already done that ?
>>>
>>> You can create an Info.plist file in your resources folder and set the right values using Maven filters. But this is not an option for Wonder frameworks.
>>
>> Yes and I think that the CFBundleShortVersionString should be set by default with the actual pom version.
>
> +1.
>
>> So when reading the sourcecode I thought i could put this in build.properties file (the maven goal uses the woapplication and woframework tasks) but it doesn't work with either ${version} or a constant (1.0.0)...
>> But there's a wolifecycle.build.xml (in the maven-wolifecycle-plugin jar) that calls the ant tasks, i completed it :
>> <woapplication name="${finalName}"
>> frameworksBaseURL="/WebObjects/${finalName}.woa/Contents/Frameworks"
>> startupScriptName="${artifactId}"
>> stdFrameworks="false" destDir="target"
>> customInfoPListContent="${customInfoPListContent}"
>> principalClass="${principalClass}"
>> cfBundleShortVersion="${version}">
>> And it works ok now : the cfBundleShortVersion is set with the actual pom version.
>> Do you think that change can be commited ?
>
> Sounds like a good idea. Create a jira and attach your patch for wolips/woproject (Components: WOLips Maven) and it shall be done :)
> http://issues.objectstyle.org/
Done.
Cheers,
Alex
>
> with regards,
> --
>
> Lachlan Deck
>
_______________________________________________
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