harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Popov" <ivan.g.po...@gmail.com>
Subject Re: [build] error on switch_svn_vm
Date Wed, 14 Feb 2007 17:50:02 GMT
Do you use Harmony for running ant script in federated build?

I met the same problem when I tried that. It looks like Harmony has
problem with redirecting output from svn command in the ant task:

            <redirector outputproperty="svn.revision.tmp">
                <outputfilterchain>
                    <linecontains>
                        <contains value="Revision: " />
                    </linecontains>
                    <tokenfilter>
                        <replacestring from="Revision: " to=""/>
                    </tokenfilter>
                </outputfilterchain>
            </redirector>

Specifying particular revision number with option
-Dsvn.revision=rXXXXXX in ant command line works around this problem.

Thanks.
Ivan

On 2/14/07, Kalpak Gadre <kalpakrg@gmail.com> wrote:
> hi,
>
> switch_svn_vm target fails with output:
>
> switch_svn_vm:
>      [exec] svn: Syntax error in revision argument 'switch'
>
> Reason being,
>
> show_props:
>      [echo]
>      [echo]                    Apache Harmony Federated Build
>      [echo]             ==========================================
>      [echo]             svn rev          :  r
>      [echo]             operating system :  linux
>      [echo]             architecture     :  x86-32
>      [echo]             ant os name/arch :  Linux/x86
>      [echo]             output location  :  target
>      [echo]             DRLVM classlib   :  ../../../working_classlib
>      [echo]
>
> svn revision is not populated for some reason.
>
> svn info build.xml produces:
>
> Path: build.xml
> Name: build.xml
> URL: https://svn.apache.org/repos/asf/harmony/enhanced/trunk/build.xml
> Repository Root: https://svn.apache.org/repos/asf
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 507493
> Node Kind: file
> Schedule: normal
> Last Changed Author: geirm
> Last Changed Rev: 486417
> Last Changed Date: 2006-12-13 05:18:39 +0530 (Wed, 13 Dec 2006)
> Text Last Updated: 2007-02-14 22:18:19 +0530 (Wed, 14 Feb 2007)
> Checksum: 7b2cdce3cea7df2b770469a2692c05ff
>
> For some reason, svn.revision.tmp is not getting populated for me. I am
> using ant 1.7.0
>
> Any idea why is this failing?
>
> Thanks,
>
> Kalpak
>

Mime
View raw message