Re: Adding a revision number to Info.plist

From: Chuck Hill (chil..lobal-village.net)
Date: Tue Dec 02 2008 - 22:55:08 EST

  • Next message: Simon McLean (JIRA): "[OS-JIRA] Created: (WOL-921) Component editor auto complete goes wonkey if there is a "/" in text"

    Hi Pierre,

    On Dec 2, 2008, at 7:17 PM, Pierre Frisch wrote:

    > Hi Chuck,
    >
    > I am not sure why it does not work for you but it does for me.
    >
    > [svn] <WcVersion> started ...
    > [svn] <WcVersion> finished.
    > [echo] -------------------------------------
    > [echo] version 2.1.14.1326 at Tue, Dec 2, 2008 07:15 PM PST
    > [echo] -------------------------------------
    >
    > svn --version
    > svn, version 1.5.3 (r33570)
    > compiled Oct 13 2008, 21:36:33

    Just my luck I guess. :-( It happens on two machines, both ones that
    I configured, so the answer in there somewhere...

    Chuck

    > On Dec 2, 2008, at 18:08, Chuck Hill wrote:
    >
    >>
    >> On Dec 2, 2008, at 4:58 PM, Pierre Frisch wrote:
    >>
    >>> <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" />
    >>> <svn>
    >>> <wcVersion path="${project.dir}" prefix="svn." />
    >>> </svn>
    >>> <property name="build.number" value="${svn.revision.max}" />
    >>> <echo message="-------------------------------------" />
    >>> <echo message=" version ${version.major}.${version.minor}.$
    >>> {version.patch}.${build.number} at ${build.date} " />
    >>> <echo message="-------------------------------------" />
    >>
    >>
    >> This stopped working for me as of Subversion 1.5. wcVersion gets
    >> and XML response and sets all of the svn. properties to zero. I
    >> poked at it a bit then used exec to call svnversion out of apathy.
    >> Has anyone else seen this or know of a fix?
    >>
    >> Chuck
    >>
    >>
    >>
    >>> On Dec 2, 2008, at 4:39, Mike Schrag wrote:
    >>>
    >>>> I'm not sure I wrote that part ... I think it's all done
    >>>> somewhere in the Wonder build scripts?
    >>>>
    >>>> ok, so it looks like I pass in the version as a param to the ant
    >>>> build script ... not sure what it does with it, but i set
    >>>> project.version=$FULL_VERSION and full version is:
    >>>>
    >>>> export MAJOR_VERSION=5.0.0
    >>>> NEW_VERSION=`/usr/local/bin/svn info $CHECKOUT_FOLDER | grep
    >>>> Revision: | sed 's#.* ##'`
    >>>> FULL_VERSION=$MAJOR_VERSION.$NEW_VERSION
    >>>>
    >>>> ms
    >>>>
    >>>> On Dec 2, 2008, at 4:51 AM, Alan Zebchuk wrote:
    >>>>
    >>>>> Hi Mike,
    >>>>>
    >>>>> I noticed you hadn't posted a response to this, but I was
    >>>>> wondering if you could share how you get the revision numbers in
    >>>>> the Info.plist files on the nightly build server? Is there
    >>>>> anything magical happening there?
    >>>>>
    >>>>> Thanks,
    >>>>>
    >>>>> Alan
    >>>>>
    >>>>> Begin forwarded message:
    >>>>>
    >>>>>> From: Alan Zebchuk <Alan.Zebchu..uegodigitalmedia.com>
    >>>>>> Date: November 30, 2008 7:33:16 AM GMT+03:00
    >>>>>> To: woproject-de..bjectstyle.org
    >>>>>> Subject: Adding a revision number to Info.plist
    >>>>>> Reply-To: woproject-de..bjectstyle.org
    >>>>>>
    >>>>>> Does anyone know how to ad the latest svn revision number of a
    >>>>>> project to the Info.plist file when building a framework or
    >>>>>> application?
    >>>>>>
    >>>>>> I notice that it's being done on the nightly build site for
    >>>>>> Wonder frameworks. Is there an easy way to do this?
    >>>>>>
    >>>>>> Thanks,
    >>>>>>
    >>>>>> Alan
    >>>>>
    >>>>
    >>>>
    >>>>
    >>>
    >>
    >> --
    >> Chuck Hill Senior Consultant / VP Development
    >>
    >> Practical WebObjects - for developers who want to increase their
    >> overall knowledge of WebObjects or who are trying to solve specific
    >> problems.
    >> http://www.global-village.net/products/practical_webobjects
    >>
    >>
    >>
    >>
    >>
    >>
    >>
    >

    -- 
    Chuck Hill             Senior Consultant / VP Development
    

    Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects



    This archive was generated by hypermail 2.0.0 : Tue Dec 02 2008 - 22:55:57 EST