I've met this problem when I tried to run ant script in federated build on top on Harmony JDK from the latest HDK snapshot available on download page (r505120). Running ant without any options resulted in this error. I tried also to specify internal target "show_props" and got the same picture:
show_props: [echo] [echo] Apache Harmony Federated Build [echo] ========================================== [echo] svn rev : r [echo] operating system : windows [echo] architecture : x86-32 [echo] ant os name/arch : Windows Server 2003/x86 [echo] output location : target [echo] DRLVM classlib : ../../../working_classlib [echo] I looked at the build.xml script where property svn.revision is set according to redirected output of 'svn info' command. It seemed to me that the problem was in redirection of process output running on Harmony, because it worked well on RI JDK. Today I created local HDK snapshot with fresh Harmony sources (r507861) and ran 'ant show_props' on top on the fresh Harmony JDK. Now, this appeared working well and showed me correct SVN revision number: show_props: [echo] [echo] Apache Harmony Federated Build [echo] ========================================== [echo] svn rev : r507916 [echo] operating system : windows [echo] architecture : x86-32 [echo] ant os name/arch : Windows Server 2003/x86 [echo] output location : target [echo] DRLVM classlib : ../../../working_classlib So, this problem looks fixed in the latest sources. Thanks. Ivan On 2/14/07, Ivan Popov <[EMAIL PROTECTED]> wrote:
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 <[EMAIL PROTECTED]> 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 >