You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Francis ANDRE <fr...@easynet.fr> on 2008/03/01 10:26:07 UTC

general: error in build: missing release.properties

Hi Listeners

It seems that build.xml failed because the file release.properties cannot be 
found. Where is this file??


Thanks for your help

FA


Z:\DEV\Harmony>ant -Dauto.fetch=true -v
Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: build.xml
Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0_09\jre
Detected OS: Windows XP
parsing buildfile Z:\DEV\Harmony\build.xml with URI = file:/Z:/DEV/Harmony/build.xml
Project base dir set to: Z:\DEV\Harmony
[antlib:org.apache.tools.ant] Could not load definitions from resource 
org/apache/tools/ant/antlib.x
ml. It could not be found.
  [property] Loading Z:\DEV\Harmony\release.properties
  [property] Unable to find property file: Z:\DEV\Harmony\release.properties
  [macrodef] creating macro  chksum
Build sequence for target(s) `default' is [svn-prop, init, show-props, setup, 
switch-svn-vm, switch-
svn-classlib, switch-svn-jdktools, switch-svn-commonresources, populate-src, 
auto-fetch-classlib-lib
s, build-classlib, auto-fetch-vm-libs, build-vm, build-commonresources, 
auto-fetch-jdktools-libs, bu
ild-jdktools, build-all, assemble-stuff, chmod-stuff, assemble-artifacts, 
assemble-hdk-doc, bundle-h
dk-tgz, bundle-hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz, 
bundle-jdk-zip, bundle-jdk, as
semble-jre-doc, bundle-jre-tgz, bundle-jre-zip, bundle-jre, default]
Complete build sequence is [svn-prop, init, show-props, setup, switch-svn-vm, 
switch-svn-classlib, s
witch-svn-jdktools, switch-svn-commonresources, populate-src, 
auto-fetch-classlib-libs, build-classl
ib, auto-fetch-vm-libs, build-vm, build-commonresources, 
auto-fetch-jdktools-libs, build-jdktools, b
uild-all, assemble-stuff, chmod-stuff, assemble-artifacts, assemble-hdk-doc, 
bundle-hdk-tgz, bundle-
hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz, bundle-jdk-zip, 
bundle-jdk, assemble-jre-doc,
  bundle-jre-tgz, bundle-jre-zip, bundle-jre, default, copy-src, bundle-src-tgz, 
bundle-src-zip, bund
le-src, fetch-vm-libs, fetch-jdktools-libs, assemble-jdk, clean-classlib, 
init-classlib-hdk, clean-j
dktools, clean-vm, clean, reset, fetch-classlib-libs, make-snapshot, ]

svn-prop:
      [exec] Current OS is Windows XP
      [exec] Output redirected to property: svn.revision.tmp
      [exec] Executing 'svn' with arguments:
      [exec] 'info'
      [exec] 'build.xml'
      [exec]
      [exec] The ' characters around the executable and arguments are
      [exec] not part of the command.
Override ignored for property "svn.revision"
      [exec] Current OS is Windows XP
      [exec] Output redirected to property: svn.root.tmp
      [exec] Executing 'svn' with arguments:
      [exec] 'info'
      [exec]
      [exec] The ' characters around the executable and arguments are
      [exec] not part of the command.
Override ignored for property "svn.rc"
Override ignored for property "svn.info"

init:
Override ignored for property "harmony.os"
Override ignored for property "harmony.bits"
Override ignored for property "harmony.arch"
Property "hy.javac.compiler" has not been set

show-props:
      [echo]
      [echo]                    Apache Harmony Federated Build
      [echo]             ==========================================
      [echo]             svn rev          :
      [echo]             operating system :  windows
      [echo]             architecture     :  x86-32
      [echo]             ant os name/arch :  Windows XP/x86
      [echo]             hosting Java     :  1.5.0_09 (Sun Microsystems Inc.)
      [echo]             build mode       :  release
      [echo]             output location  :  target
      [echo]             SVN root         :  http://svn.apache.org/repos/asf
      [echo]

setup:
    [delete] Deleting directory Z:\DEV\Harmony\target
    [delete] Deleting directory Z:\DEV\Harmony\target
     [mkdir] Created dir: Z:\DEV\Harmony\target

switch-svn-vm:
      [exec] Current OS is Windows XP
      [exec] Executing 'svn' with arguments:
      [exec] '-r'
      [exec] 'switch'
      [exec] 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
      [exec]
      [exec] The ' characters around the executable and arguments are
      [exec] not part of the command.
      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'

BUILD FAILED
Z:\DEV\Harmony\build.xml:509: exec returned: 1
         at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
         at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
         at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:357)
         at org.apache.tools.ant.Target.performTasks(Target.java:385)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
         at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
         at org.apache.tools.ant.Main.runBuild(Main.java:698)
         at org.apache.tools.ant.Main.startAnt(Main.java:199)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 3 seconds

Re: general: error in build: missing release.properties

Posted by Tony Wu <wu...@gmail.com>.
On 3/3/08, Alexey Varlamov <al...@gmail.com> wrote:
> 2008/3/2, Gregory Shimansky <gs...@apache.org>:
> > On 2 марта 2008 Francis ANDRE wrote:
> > > Done: HARMONY-5560
> > >
> > >  > Maybe as simple as setting that env var in our scripts when exec'ing the
> > >  > svn command.
> > >
> > > Yes, it should work
> >
> > In fact I reported the same problem a while ago in HARMONY-5256 when I
> > resolved the bug with DRLVM working on localized Chinese winXP. The problem
> > is the same, federated build could not parse SVN root and revision. I wonder
> > if switching to "svn info --xml" would help. This would require quite modern
> > subversion client which supports --xml switch.
>
> Yes, I think --xml should help. I utilized it in common-resources
> infra, and seems it worked w/o complaints.
> "'svn info --xml " support was added since v1.3.0 (Dec 2005) [1],
> which is not too strict requirement I believe.

+1 to --xml.
1.3 above is acceptable.

>
> --
> Alexey
>
> >
> > > Tim Ellison a écrit :
> > > > Francis - please could you open a JIRA issue describing this problem [1]
> > > > so we can fix it for everyone.
> > > >
> > > > Maybe as simple as setting that env var in our scripts when exec'ing the
> > > > svn command.
> > > >
> > > > [1] http://issues.apache.org/jira/browse/HARMONY
> > > >
> > > > Thanks,
> > > > Tim
> > > >
> > > > Francis ANDRE wrote:
> > > >> set LC_MESSAGES=en_US solves the problem
> > > >>
> > > >> Thanks Tony...
> > > >>
> > > >> Francis
> > > >>
> > > >> Tony Wu a écrit :
> > > >>> On 3/2/08, Francis ANDRE <fr...@easynet.fr> wrote:
> > > >>>> Hi Tim
> > > >>>>
> > > >>>> I found the problem... but not the solution...: Here is the output
> > > >>>> of svn info
> > > >>>> (yes it is in french)!!
> > > >>>>
> > > >>>> Z:\DEV\Harmony\trunk>svn --version
> > > >>>> svn, version 1.4.6 (r28521)
> > > >>>>     compilé Dec 20 2007, 16:33:06
> > > >>>>
> > > >>>> Z:\DEV\Harmony\trunk>svn info build.xml
> > > >>>> Chemin : build.xml
> > > >>>> Nom : build.xml
> > > >>>> URL : http://svn.apache.org/repos/asf/harmony/enhanced/trunk/build.xml
> > > >>>> Racine du dépôt : http://svn.apache.org/repos/asf
> > > >>>> UUID du dépôt : 13f79535-47bb-0310-9956-ffa450edef68
> > > >>>> Révision : 632721
> > > >>>> Type de noeud : fichier
> > > >>>> Tâche programmée : normale
> > > >>>> Auteur de la dernière modification : ndbeyer
> > > >>>> Révision de la dernière modification : 628235
> > > >>>> Date de la dernière modification: 2008-02-16 04:37:58 +0100 (sam.,
> > > >>>> 16 févr. 2008)
> > > >>>> Texte mis à jour: 2008-03-02 09:35:49 +0100 (dim., 02 mars 2008)
> > > >>>> Somme de contrôle : 7c9654662eb3ee35efb6265f0739afda
> > > >>>>
> > > >>>> and I did not found any way to ask svn to produce a English based
> > > >>>> svn info...
> > > >>>
> > > >>> Try set LC_MESSAGES=en_US
> > > >>>
> > > >>> The build failed on the svn command rather than the missing properites
> > > >>> file. I think it fails to pick up the revision because the output
> > > >>> messages were localized.
> > > >>>
> > > >>>> Francis
> > > >>>>
> > > >>>> Tim Ellison a écrit :
> > > >>>>> Is svn.exe on your path?  What version of SVN client are you using?
> > > >>>>> It look like it is croaking on invoking the 'svn switch' command.
> > > >>>>>
> > > >>>>> Regards,
> > > >>>>> Tim
> > > >>>>>
> > > >>>>> Francis ANDRE wrote:
> > > >>>>>> Hi Listeners
> > > >>>>>>
> > > >>>>>> It seems that build.xml failed because the file release.properties
> > > >>>>>> cannot be found. Where is this file??
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> Thanks for your help
> > > >>>>>>
> > > >>>>>> FA
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> Z:\DEV\Harmony>ant -Dauto.fetch=true -v
> > > >>>>>> Apache Ant version 1.7.0 compiled on December 13 2006
> > > >>>>>> Buildfile: build.xml
> > > >>>>>> Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0_09\jre
> > > >>>>>> Detected OS: Windows XP
> > > >>>>>> parsing buildfile Z:\DEV\Harmony\build.xml with URI =
> > > >>>>>> file:/Z:/DEV/Harmony/build.xml
> > > >>>>>> Project base dir set to: Z:\DEV\Harmony
> > > >>>>>> [antlib:org.apache.tools.ant] Could not load definitions from
> > > >>>>>> resource
> > > >>>>>> org/apache/tools/ant/antlib.x
> > > >>>>>> ml. It could not be found.
> > > >>>>>>  [property] Loading Z:\DEV\Harmony\release.properties
> > > >>>>>>  [property] Unable to find property file:
> > > >>>>>> Z:\DEV\Harmony\release.properties
> > > >>>>>>  [macrodef] creating macro  chksum
> > > >>>>>> Build sequence for target(s) `default' is [svn-prop, init,
> > > >>>>>> show-props,
> > > >>>>>> setup, switch-svn-vm, switch-
> > > >>>>>> svn-classlib, switch-svn-jdktools, switch-svn-commonresources,
> > > >>>>>> populate-src, auto-fetch-classlib-lib
> > > >>>>>> s, build-classlib, auto-fetch-vm-libs, build-vm,
> > > >>>>>> build-commonresources, auto-fetch-jdktools-libs, bu
> > > >>>>>> ild-jdktools, build-all, assemble-stuff, chmod-stuff,
> > > >>>>>> assemble-artifacts, assemble-hdk-doc, bundle-h
> > > >>>>>> dk-tgz, bundle-hdk-zip, bundle-hdk, assemble-jdk-doc,
> > > >>>>>> bundle-jdk-tgz, bundle-jdk-zip, bundle-jdk, as
> > > >>>>>> semble-jre-doc, bundle-jre-tgz, bundle-jre-zip, bundle-jre, default]
> > > >>>>>> Complete build sequence is [svn-prop, init, show-props, setup,
> > > >>>>>> switch-svn-vm, switch-svn-classlib, s
> > > >>>>>> witch-svn-jdktools, switch-svn-commonresources, populate-src,
> > > >>>>>> auto-fetch-classlib-libs, build-classl
> > > >>>>>> ib, auto-fetch-vm-libs, build-vm, build-commonresources,
> > > >>>>>> auto-fetch-jdktools-libs, build-jdktools, b
> > > >>>>>> uild-all, assemble-stuff, chmod-stuff, assemble-artifacts,
> > > >>>>>> assemble-hdk-doc, bundle-hdk-tgz, bundle-
> > > >>>>>> hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz,
> > > >>>>>> bundle-jdk-zip,
> > > >>>>>> bundle-jdk, assemble-jre-doc,
> > > >>>>>>  bundle-jre-tgz, bundle-jre-zip, bundle-jre, default, copy-src,
> > > >>>>>> bundle-src-tgz, bundle-src-zip, bund
> > > >>>>>> le-src, fetch-vm-libs, fetch-jdktools-libs, assemble-jdk,
> > > >>>>>> clean-classlib, init-classlib-hdk, clean-j
> > > >>>>>> dktools, clean-vm, clean, reset, fetch-classlib-libs,
> > > >>>>>> make-snapshot, ]
> > > >>>>>>
> > > >>>>>> svn-prop:
> > > >>>>>>      [exec] Current OS is Windows XP
> > > >>>>>>      [exec] Output redirected to property: svn.revision.tmp
> > > >>>>>>      [exec] Executing 'svn' with arguments:
> > > >>>>>>      [exec] 'info'
> > > >>>>>>      [exec] 'build.xml'
> > > >>>>>>      [exec]
> > > >>>>>>      [exec] The ' characters around the executable and arguments are
> > > >>>>>>      [exec] not part of the command.
> > > >>>>>> Override ignored for property "svn.revision"
> > > >>>>>>      [exec] Current OS is Windows XP
> > > >>>>>>      [exec] Output redirected to property: svn.root.tmp
> > > >>>>>>      [exec] Executing 'svn' with arguments:
> > > >>>>>>      [exec] 'info'
> > > >>>>>>      [exec]
> > > >>>>>>      [exec] The ' characters around the executable and arguments are
> > > >>>>>>      [exec] not part of the command.
> > > >>>>>> Override ignored for property "svn.rc"
> > > >>>>>> Override ignored for property "svn.info"
> > > >>>>>>
> > > >>>>>> init:
> > > >>>>>> Override ignored for property "harmony.os"
> > > >>>>>> Override ignored for property "harmony.bits"
> > > >>>>>> Override ignored for property "harmony.arch"
> > > >>>>>> Property "hy.javac.compiler" has not been set
> > > >>>>>>
> > > >>>>>> show-props:
> > > >>>>>>      [echo]
> > > >>>>>>      [echo]                    Apache Harmony Federated Build
> > > >>>>>>      [echo]             ==========================================
> > > >>>>>>      [echo]             svn rev          :
> > > >>>>>>      [echo]             operating system :  windows
> > > >>>>>>      [echo]             architecture     :  x86-32
> > > >>>>>>      [echo]             ant os name/arch :  Windows XP/x86
> > > >>>>>>      [echo]             hosting Java     :  1.5.0_09 (Sun
> > > >>>>>> Microsystems
> > > >>>>>> Inc.)
> > > >>>>>>      [echo]             build mode       :  release
> > > >>>>>>      [echo]             output location  :  target
> > > >>>>>>      [echo]             SVN root         :
> > > >>>>>> http://svn.apache.org/repos/asf
> > > >>>>>>      [echo]
> > > >>>>>>
> > > >>>>>> setup:
> > > >>>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
> > > >>>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
> > > >>>>>>     [mkdir] Created dir: Z:\DEV\Harmony\target
> > > >>>>>>
> > > >>>>>> switch-svn-vm:
> > > >>>>>>      [exec] Current OS is Windows XP
> > > >>>>>>      [exec] Executing 'svn' with arguments:
> > > >>>>>>      [exec] '-r'
> > > >>>>>>      [exec] 'switch'
> > > >>>>>>      [exec]
> > > >>>>>> 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
> > > >>>>>>      [exec]
> > > >>>>>>      [exec] The ' characters around the executable and arguments are
> > > >>>>>>      [exec] not part of the command.
> > > >>>>>>      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'
> > > >>>>>>
> > > >>>>>> BUILD FAILED
> > > >>>>>> Z:\DEV\Harmony\build.xml:509: exec returned: 1
> > > >>>>>>         at
> > > >>>>>> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
> > > >>>>>>         at
> > > >>>>>> org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
> > > >>>>>>         at
> > > >>>>>> org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
> > > >>>>>>         at
> > > >>>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > > >>>>>>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
> > > >>>>>> Source)
> > > >>>>>>         at
> > > >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> > > >>>>>>ssorImpl.java:25)
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
> > > >>>>>>         at
> > > >>>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja
> > > >>>>>>va:105)
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>         at org.apache.tools.ant.Task.perform(Task.java:348)
> > > >>>>>>         at org.apache.tools.ant.Target.execute(Target.java:357)
> > > >>>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
> > > >>>>>>         at
> > > >>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > > >>>>>>         at
> > > >>>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > > >>>>>>         at
> > > >>>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultEx
> > > >>>>>>ecutor.java:41)
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>         at
> > > >>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > > >>>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
> > > >>>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > >>>>>>         at
> > > >>>>>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > >>>>>>         at
> > > >>>>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > > >>>>>>
> > > >>>>>> Total time: 3 seconds
> >
> >
> >
> > --
> > Gregory
> >
>


-- 
Tony Wu
China Software Development Lab, IBM

Re: general: error in build: missing release.properties

Posted by Alexey Varlamov <al...@gmail.com>.
> >
> > Another alternative would be using SvnAnt [1]. I haven't tried the
> > task yet but it looks promising: as I understood its docs. it should
> > help us to avoid exec-ing svn and parsing svn output.
> >
> > Have anyone experience with it? Any feedback?
> >
> > [1] http://subclipse.tigris.org/svnant.html
>
>
> I'd rather use --xml than introduce a new dependency in our tooling.

Agree. Moreover, accordingly to the description you pointed to, svnant
relies on pre-installed native SW, either svn.exe or specific dlls so
would not solve the rootcause problem.

--
Alexey

>
> Regards,
> Tim
>

[build] svn-prop and svn-info targets (was Re: general: error in build: missing release.properties)

Posted by Mark Hindess <ma...@googlemail.com>.
On 3 March 2008 at 9:30, Tim Ellison <t....@gmail.com> wrote:
> Stepan Mishura wrote:
> > On 3/3/08, Alexey Varlamov <al...@gmail.com> wrote:
> >> 2008/3/2, Gregory Shimansky <gs...@apache.org>:
> >>> On 2 ÍÁÒÔÁ 2008 Francis ANDRE wrote:
> >>>> Done: HARMONY-5560
> >>>>
> >>>>  > Maybe as simple as setting that env var in our scripts when exec'ing 
> the
> >>>>  > svn command.
> >>>>
> >>>> Yes, it should work
> >>> In fact I reported the same problem a while ago in HARMONY-5256 when I
> >>> resolved the bug with DRLVM working on localized Chinese winXP. The probl
> em
> >>> is the same, federated build could not parse SVN root and revision. I won
> der
> >>> if switching to "svn info --xml" would help. This would require quite mod
> ern
> >>> subversion client which supports --xml switch.
> >> Yes, I think --xml should help. I utilized it in common-resources
> >> infra, and seems it worked w/o complaints.
> >> "'svn info --xml " support was added since v1.3.0 (Dec 2005) [1],
> >> which is not too strict requirement I believe.
> >>
> > 
> > Another alternative would be using SvnAnt [1]. I haven't tried the
> > task yet but it looks promising: as I understood its docs. it should
> > help us to avoid exec-ing svn and parsing svn output.
> > 
> > Have anyone experience with it? Any feedback?
> > 
> > [1] http://subclipse.tigris.org/svnant.html
> 
> 
> I'd rather use --xml than introduce a new dependency in our tooling.

+1

Another thing that would be brilliant to consolidate (or at least make
them the same!) the several different versions of svn-prop and svn-info
tasks.  For instance, there are versions in at least:

  build.xml
  working_jdktools/make/properties.xml
  working_classlib/make/properties.xml
  common_resources/build/properties.xml
  common_resources/make/properties.xml

Also, I think it might be better to combine the svn-info target with the
svn-prop target rather than having two targets for svn-related calls and
to speed things up in the case were we already have the svn.revision - i.e.
in components of the federation build and in modules of a full classlib build[0] - we should protect the targets with:

  unless="svn.revision"

to avoid the extra (redundant[0]) calls to svn.

-Mark.

[0] redundant because, like all ant properties, svn.revision et al are
    immutable once defined so the subsequent svn calls don't change the
    value.



Re: general: error in build: missing release.properties

Posted by Tim Ellison <t....@gmail.com>.
Stepan Mishura wrote:
> On 3/3/08, Alexey Varlamov <al...@gmail.com> wrote:
>> 2008/3/2, Gregory Shimansky <gs...@apache.org>:
>>> On 2 марта 2008 Francis ANDRE wrote:
>>>> Done: HARMONY-5560
>>>>
>>>>  > Maybe as simple as setting that env var in our scripts when exec'ing the
>>>>  > svn command.
>>>>
>>>> Yes, it should work
>>> In fact I reported the same problem a while ago in HARMONY-5256 when I
>>> resolved the bug with DRLVM working on localized Chinese winXP. The problem
>>> is the same, federated build could not parse SVN root and revision. I wonder
>>> if switching to "svn info --xml" would help. This would require quite modern
>>> subversion client which supports --xml switch.
>> Yes, I think --xml should help. I utilized it in common-resources
>> infra, and seems it worked w/o complaints.
>> "'svn info --xml " support was added since v1.3.0 (Dec 2005) [1],
>> which is not too strict requirement I believe.
>>
> 
> Another alternative would be using SvnAnt [1]. I haven't tried the
> task yet but it looks promising: as I understood its docs. it should
> help us to avoid exec-ing svn and parsing svn output.
> 
> Have anyone experience with it? Any feedback?
> 
> [1] http://subclipse.tigris.org/svnant.html


I'd rather use --xml than introduce a new dependency in our tooling.

Regards,
Tim

Re: general: error in build: missing release.properties

Posted by Stepan Mishura <st...@gmail.com>.
On 3/3/08, Alexey Varlamov <al...@gmail.com> wrote:
> 2008/3/2, Gregory Shimansky <gs...@apache.org>:
> > On 2 марта 2008 Francis ANDRE wrote:
> > > Done: HARMONY-5560
> > >
> > >  > Maybe as simple as setting that env var in our scripts when exec'ing the
> > >  > svn command.
> > >
> > > Yes, it should work
> >
> > In fact I reported the same problem a while ago in HARMONY-5256 when I
> > resolved the bug with DRLVM working on localized Chinese winXP. The problem
> > is the same, federated build could not parse SVN root and revision. I wonder
> > if switching to "svn info --xml" would help. This would require quite modern
> > subversion client which supports --xml switch.
>
> Yes, I think --xml should help. I utilized it in common-resources
> infra, and seems it worked w/o complaints.
> "'svn info --xml " support was added since v1.3.0 (Dec 2005) [1],
> which is not too strict requirement I believe.
>

Another alternative would be using SvnAnt [1]. I haven't tried the
task yet but it looks promising: as I understood its docs. it should
help us to avoid exec-ing svn and parsing svn output.

Have anyone experience with it? Any feedback?

[1] http://subclipse.tigris.org/svnant.html

Thanks,
Stepan.

<SNIP>

Re: general: error in build: missing release.properties

Posted by Alexey Varlamov <al...@gmail.com>.
Above is missing
[1] http://svn.collab.net/repos/svn/trunk/CHANGES

Re: general: error in build: missing release.properties

Posted by Alexey Varlamov <al...@gmail.com>.
2008/3/2, Gregory Shimansky <gs...@apache.org>:
> On 2 марта 2008 Francis ANDRE wrote:
> > Done: HARMONY-5560
> >
> >  > Maybe as simple as setting that env var in our scripts when exec'ing the
> >  > svn command.
> >
> > Yes, it should work
>
> In fact I reported the same problem a while ago in HARMONY-5256 when I
> resolved the bug with DRLVM working on localized Chinese winXP. The problem
> is the same, federated build could not parse SVN root and revision. I wonder
> if switching to "svn info --xml" would help. This would require quite modern
> subversion client which supports --xml switch.

Yes, I think --xml should help. I utilized it in common-resources
infra, and seems it worked w/o complaints.
"'svn info --xml " support was added since v1.3.0 (Dec 2005) [1],
which is not too strict requirement I believe.

--
Alexey

>
> > Tim Ellison a écrit :
> > > Francis - please could you open a JIRA issue describing this problem [1]
> > > so we can fix it for everyone.
> > >
> > > Maybe as simple as setting that env var in our scripts when exec'ing the
> > > svn command.
> > >
> > > [1] http://issues.apache.org/jira/browse/HARMONY
> > >
> > > Thanks,
> > > Tim
> > >
> > > Francis ANDRE wrote:
> > >> set LC_MESSAGES=en_US solves the problem
> > >>
> > >> Thanks Tony...
> > >>
> > >> Francis
> > >>
> > >> Tony Wu a écrit :
> > >>> On 3/2/08, Francis ANDRE <fr...@easynet.fr> wrote:
> > >>>> Hi Tim
> > >>>>
> > >>>> I found the problem... but not the solution...: Here is the output
> > >>>> of svn info
> > >>>> (yes it is in french)!!
> > >>>>
> > >>>> Z:\DEV\Harmony\trunk>svn --version
> > >>>> svn, version 1.4.6 (r28521)
> > >>>>     compilé Dec 20 2007, 16:33:06
> > >>>>
> > >>>> Z:\DEV\Harmony\trunk>svn info build.xml
> > >>>> Chemin : build.xml
> > >>>> Nom : build.xml
> > >>>> URL : http://svn.apache.org/repos/asf/harmony/enhanced/trunk/build.xml
> > >>>> Racine du dépôt : http://svn.apache.org/repos/asf
> > >>>> UUID du dépôt : 13f79535-47bb-0310-9956-ffa450edef68
> > >>>> Révision : 632721
> > >>>> Type de noeud : fichier
> > >>>> Tâche programmée : normale
> > >>>> Auteur de la dernière modification : ndbeyer
> > >>>> Révision de la dernière modification : 628235
> > >>>> Date de la dernière modification: 2008-02-16 04:37:58 +0100 (sam.,
> > >>>> 16 févr. 2008)
> > >>>> Texte mis à jour: 2008-03-02 09:35:49 +0100 (dim., 02 mars 2008)
> > >>>> Somme de contrôle : 7c9654662eb3ee35efb6265f0739afda
> > >>>>
> > >>>> and I did not found any way to ask svn to produce a English based
> > >>>> svn info...
> > >>>
> > >>> Try set LC_MESSAGES=en_US
> > >>>
> > >>> The build failed on the svn command rather than the missing properites
> > >>> file. I think it fails to pick up the revision because the output
> > >>> messages were localized.
> > >>>
> > >>>> Francis
> > >>>>
> > >>>> Tim Ellison a écrit :
> > >>>>> Is svn.exe on your path?  What version of SVN client are you using?
> > >>>>> It look like it is croaking on invoking the 'svn switch' command.
> > >>>>>
> > >>>>> Regards,
> > >>>>> Tim
> > >>>>>
> > >>>>> Francis ANDRE wrote:
> > >>>>>> Hi Listeners
> > >>>>>>
> > >>>>>> It seems that build.xml failed because the file release.properties
> > >>>>>> cannot be found. Where is this file??
> > >>>>>>
> > >>>>>>
> > >>>>>> Thanks for your help
> > >>>>>>
> > >>>>>> FA
> > >>>>>>
> > >>>>>>
> > >>>>>> Z:\DEV\Harmony>ant -Dauto.fetch=true -v
> > >>>>>> Apache Ant version 1.7.0 compiled on December 13 2006
> > >>>>>> Buildfile: build.xml
> > >>>>>> Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0_09\jre
> > >>>>>> Detected OS: Windows XP
> > >>>>>> parsing buildfile Z:\DEV\Harmony\build.xml with URI =
> > >>>>>> file:/Z:/DEV/Harmony/build.xml
> > >>>>>> Project base dir set to: Z:\DEV\Harmony
> > >>>>>> [antlib:org.apache.tools.ant] Could not load definitions from
> > >>>>>> resource
> > >>>>>> org/apache/tools/ant/antlib.x
> > >>>>>> ml. It could not be found.
> > >>>>>>  [property] Loading Z:\DEV\Harmony\release.properties
> > >>>>>>  [property] Unable to find property file:
> > >>>>>> Z:\DEV\Harmony\release.properties
> > >>>>>>  [macrodef] creating macro  chksum
> > >>>>>> Build sequence for target(s) `default' is [svn-prop, init,
> > >>>>>> show-props,
> > >>>>>> setup, switch-svn-vm, switch-
> > >>>>>> svn-classlib, switch-svn-jdktools, switch-svn-commonresources,
> > >>>>>> populate-src, auto-fetch-classlib-lib
> > >>>>>> s, build-classlib, auto-fetch-vm-libs, build-vm,
> > >>>>>> build-commonresources, auto-fetch-jdktools-libs, bu
> > >>>>>> ild-jdktools, build-all, assemble-stuff, chmod-stuff,
> > >>>>>> assemble-artifacts, assemble-hdk-doc, bundle-h
> > >>>>>> dk-tgz, bundle-hdk-zip, bundle-hdk, assemble-jdk-doc,
> > >>>>>> bundle-jdk-tgz, bundle-jdk-zip, bundle-jdk, as
> > >>>>>> semble-jre-doc, bundle-jre-tgz, bundle-jre-zip, bundle-jre, default]
> > >>>>>> Complete build sequence is [svn-prop, init, show-props, setup,
> > >>>>>> switch-svn-vm, switch-svn-classlib, s
> > >>>>>> witch-svn-jdktools, switch-svn-commonresources, populate-src,
> > >>>>>> auto-fetch-classlib-libs, build-classl
> > >>>>>> ib, auto-fetch-vm-libs, build-vm, build-commonresources,
> > >>>>>> auto-fetch-jdktools-libs, build-jdktools, b
> > >>>>>> uild-all, assemble-stuff, chmod-stuff, assemble-artifacts,
> > >>>>>> assemble-hdk-doc, bundle-hdk-tgz, bundle-
> > >>>>>> hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz,
> > >>>>>> bundle-jdk-zip,
> > >>>>>> bundle-jdk, assemble-jre-doc,
> > >>>>>>  bundle-jre-tgz, bundle-jre-zip, bundle-jre, default, copy-src,
> > >>>>>> bundle-src-tgz, bundle-src-zip, bund
> > >>>>>> le-src, fetch-vm-libs, fetch-jdktools-libs, assemble-jdk,
> > >>>>>> clean-classlib, init-classlib-hdk, clean-j
> > >>>>>> dktools, clean-vm, clean, reset, fetch-classlib-libs,
> > >>>>>> make-snapshot, ]
> > >>>>>>
> > >>>>>> svn-prop:
> > >>>>>>      [exec] Current OS is Windows XP
> > >>>>>>      [exec] Output redirected to property: svn.revision.tmp
> > >>>>>>      [exec] Executing 'svn' with arguments:
> > >>>>>>      [exec] 'info'
> > >>>>>>      [exec] 'build.xml'
> > >>>>>>      [exec]
> > >>>>>>      [exec] The ' characters around the executable and arguments are
> > >>>>>>      [exec] not part of the command.
> > >>>>>> Override ignored for property "svn.revision"
> > >>>>>>      [exec] Current OS is Windows XP
> > >>>>>>      [exec] Output redirected to property: svn.root.tmp
> > >>>>>>      [exec] Executing 'svn' with arguments:
> > >>>>>>      [exec] 'info'
> > >>>>>>      [exec]
> > >>>>>>      [exec] The ' characters around the executable and arguments are
> > >>>>>>      [exec] not part of the command.
> > >>>>>> Override ignored for property "svn.rc"
> > >>>>>> Override ignored for property "svn.info"
> > >>>>>>
> > >>>>>> init:
> > >>>>>> Override ignored for property "harmony.os"
> > >>>>>> Override ignored for property "harmony.bits"
> > >>>>>> Override ignored for property "harmony.arch"
> > >>>>>> Property "hy.javac.compiler" has not been set
> > >>>>>>
> > >>>>>> show-props:
> > >>>>>>      [echo]
> > >>>>>>      [echo]                    Apache Harmony Federated Build
> > >>>>>>      [echo]             ==========================================
> > >>>>>>      [echo]             svn rev          :
> > >>>>>>      [echo]             operating system :  windows
> > >>>>>>      [echo]             architecture     :  x86-32
> > >>>>>>      [echo]             ant os name/arch :  Windows XP/x86
> > >>>>>>      [echo]             hosting Java     :  1.5.0_09 (Sun
> > >>>>>> Microsystems
> > >>>>>> Inc.)
> > >>>>>>      [echo]             build mode       :  release
> > >>>>>>      [echo]             output location  :  target
> > >>>>>>      [echo]             SVN root         :
> > >>>>>> http://svn.apache.org/repos/asf
> > >>>>>>      [echo]
> > >>>>>>
> > >>>>>> setup:
> > >>>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
> > >>>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
> > >>>>>>     [mkdir] Created dir: Z:\DEV\Harmony\target
> > >>>>>>
> > >>>>>> switch-svn-vm:
> > >>>>>>      [exec] Current OS is Windows XP
> > >>>>>>      [exec] Executing 'svn' with arguments:
> > >>>>>>      [exec] '-r'
> > >>>>>>      [exec] 'switch'
> > >>>>>>      [exec]
> > >>>>>> 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
> > >>>>>>      [exec]
> > >>>>>>      [exec] The ' characters around the executable and arguments are
> > >>>>>>      [exec] not part of the command.
> > >>>>>>      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'
> > >>>>>>
> > >>>>>> BUILD FAILED
> > >>>>>> Z:\DEV\Harmony\build.xml:509: exec returned: 1
> > >>>>>>         at
> > >>>>>> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
> > >>>>>>         at
> > >>>>>> org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
> > >>>>>>         at
> > >>>>>> org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
> > >>>>>>         at
> > >>>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> > >>>>>>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
> > >>>>>> Source)
> > >>>>>>         at
> > >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> > >>>>>>ssorImpl.java:25)
> > >>>>>>
> > >>>>>>
> > >>>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
> > >>>>>>         at
> > >>>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja
> > >>>>>>va:105)
> > >>>>>>
> > >>>>>>
> > >>>>>>         at org.apache.tools.ant.Task.perform(Task.java:348)
> > >>>>>>         at org.apache.tools.ant.Target.execute(Target.java:357)
> > >>>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
> > >>>>>>         at
> > >>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> > >>>>>>         at
> > >>>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> > >>>>>>         at
> > >>>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultEx
> > >>>>>>ecutor.java:41)
> > >>>>>>
> > >>>>>>
> > >>>>>>         at
> > >>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> > >>>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
> > >>>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
> > >>>>>>         at
> > >>>>>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > >>>>>>         at
> > >>>>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> > >>>>>>
> > >>>>>> Total time: 3 seconds
>
>
>
> --
> Gregory
>

Re: general: error in build: missing release.properties

Posted by Gregory Shimansky <gs...@apache.org>.
On 2 марта 2008 Francis ANDRE wrote:
> Done: HARMONY-5560
>
>  > Maybe as simple as setting that env var in our scripts when exec'ing the
>  > svn command.
>
> Yes, it should work

In fact I reported the same problem a while ago in HARMONY-5256 when I 
resolved the bug with DRLVM working on localized Chinese winXP. The problem 
is the same, federated build could not parse SVN root and revision. I wonder 
if switching to "svn info --xml" would help. This would require quite modern 
subversion client which supports --xml switch.

> Tim Ellison a écrit :
> > Francis - please could you open a JIRA issue describing this problem [1]
> > so we can fix it for everyone.
> >
> > Maybe as simple as setting that env var in our scripts when exec'ing the
> > svn command.
> >
> > [1] http://issues.apache.org/jira/browse/HARMONY
> >
> > Thanks,
> > Tim
> >
> > Francis ANDRE wrote:
> >> set LC_MESSAGES=en_US solves the problem
> >>
> >> Thanks Tony...
> >>
> >> Francis
> >>
> >> Tony Wu a écrit :
> >>> On 3/2/08, Francis ANDRE <fr...@easynet.fr> wrote:
> >>>> Hi Tim
> >>>>
> >>>> I found the problem... but not the solution...: Here is the output
> >>>> of svn info
> >>>> (yes it is in french)!!
> >>>>
> >>>> Z:\DEV\Harmony\trunk>svn --version
> >>>> svn, version 1.4.6 (r28521)
> >>>>     compilé Dec 20 2007, 16:33:06
> >>>>
> >>>> Z:\DEV\Harmony\trunk>svn info build.xml
> >>>> Chemin : build.xml
> >>>> Nom : build.xml
> >>>> URL : http://svn.apache.org/repos/asf/harmony/enhanced/trunk/build.xml
> >>>> Racine du dépôt : http://svn.apache.org/repos/asf
> >>>> UUID du dépôt : 13f79535-47bb-0310-9956-ffa450edef68
> >>>> Révision : 632721
> >>>> Type de noeud : fichier
> >>>> Tâche programmée : normale
> >>>> Auteur de la dernière modification : ndbeyer
> >>>> Révision de la dernière modification : 628235
> >>>> Date de la dernière modification: 2008-02-16 04:37:58 +0100 (sam.,
> >>>> 16 févr. 2008)
> >>>> Texte mis à jour: 2008-03-02 09:35:49 +0100 (dim., 02 mars 2008)
> >>>> Somme de contrôle : 7c9654662eb3ee35efb6265f0739afda
> >>>>
> >>>> and I did not found any way to ask svn to produce a English based
> >>>> svn info...
> >>>
> >>> Try set LC_MESSAGES=en_US
> >>>
> >>> The build failed on the svn command rather than the missing properites
> >>> file. I think it fails to pick up the revision because the output
> >>> messages were localized.
> >>>
> >>>> Francis
> >>>>
> >>>> Tim Ellison a écrit :
> >>>>> Is svn.exe on your path?  What version of SVN client are you using?
> >>>>> It look like it is croaking on invoking the 'svn switch' command.
> >>>>>
> >>>>> Regards,
> >>>>> Tim
> >>>>>
> >>>>> Francis ANDRE wrote:
> >>>>>> Hi Listeners
> >>>>>>
> >>>>>> It seems that build.xml failed because the file release.properties
> >>>>>> cannot be found. Where is this file??
> >>>>>>
> >>>>>>
> >>>>>> Thanks for your help
> >>>>>>
> >>>>>> FA
> >>>>>>
> >>>>>>
> >>>>>> Z:\DEV\Harmony>ant -Dauto.fetch=true -v
> >>>>>> Apache Ant version 1.7.0 compiled on December 13 2006
> >>>>>> Buildfile: build.xml
> >>>>>> Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0_09\jre
> >>>>>> Detected OS: Windows XP
> >>>>>> parsing buildfile Z:\DEV\Harmony\build.xml with URI =
> >>>>>> file:/Z:/DEV/Harmony/build.xml
> >>>>>> Project base dir set to: Z:\DEV\Harmony
> >>>>>> [antlib:org.apache.tools.ant] Could not load definitions from
> >>>>>> resource
> >>>>>> org/apache/tools/ant/antlib.x
> >>>>>> ml. It could not be found.
> >>>>>>  [property] Loading Z:\DEV\Harmony\release.properties
> >>>>>>  [property] Unable to find property file:
> >>>>>> Z:\DEV\Harmony\release.properties
> >>>>>>  [macrodef] creating macro  chksum
> >>>>>> Build sequence for target(s) `default' is [svn-prop, init,
> >>>>>> show-props,
> >>>>>> setup, switch-svn-vm, switch-
> >>>>>> svn-classlib, switch-svn-jdktools, switch-svn-commonresources,
> >>>>>> populate-src, auto-fetch-classlib-lib
> >>>>>> s, build-classlib, auto-fetch-vm-libs, build-vm,
> >>>>>> build-commonresources, auto-fetch-jdktools-libs, bu
> >>>>>> ild-jdktools, build-all, assemble-stuff, chmod-stuff,
> >>>>>> assemble-artifacts, assemble-hdk-doc, bundle-h
> >>>>>> dk-tgz, bundle-hdk-zip, bundle-hdk, assemble-jdk-doc,
> >>>>>> bundle-jdk-tgz, bundle-jdk-zip, bundle-jdk, as
> >>>>>> semble-jre-doc, bundle-jre-tgz, bundle-jre-zip, bundle-jre, default]
> >>>>>> Complete build sequence is [svn-prop, init, show-props, setup,
> >>>>>> switch-svn-vm, switch-svn-classlib, s
> >>>>>> witch-svn-jdktools, switch-svn-commonresources, populate-src,
> >>>>>> auto-fetch-classlib-libs, build-classl
> >>>>>> ib, auto-fetch-vm-libs, build-vm, build-commonresources,
> >>>>>> auto-fetch-jdktools-libs, build-jdktools, b
> >>>>>> uild-all, assemble-stuff, chmod-stuff, assemble-artifacts,
> >>>>>> assemble-hdk-doc, bundle-hdk-tgz, bundle-
> >>>>>> hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz,
> >>>>>> bundle-jdk-zip,
> >>>>>> bundle-jdk, assemble-jre-doc,
> >>>>>>  bundle-jre-tgz, bundle-jre-zip, bundle-jre, default, copy-src,
> >>>>>> bundle-src-tgz, bundle-src-zip, bund
> >>>>>> le-src, fetch-vm-libs, fetch-jdktools-libs, assemble-jdk,
> >>>>>> clean-classlib, init-classlib-hdk, clean-j
> >>>>>> dktools, clean-vm, clean, reset, fetch-classlib-libs,
> >>>>>> make-snapshot, ]
> >>>>>>
> >>>>>> svn-prop:
> >>>>>>      [exec] Current OS is Windows XP
> >>>>>>      [exec] Output redirected to property: svn.revision.tmp
> >>>>>>      [exec] Executing 'svn' with arguments:
> >>>>>>      [exec] 'info'
> >>>>>>      [exec] 'build.xml'
> >>>>>>      [exec]
> >>>>>>      [exec] The ' characters around the executable and arguments are
> >>>>>>      [exec] not part of the command.
> >>>>>> Override ignored for property "svn.revision"
> >>>>>>      [exec] Current OS is Windows XP
> >>>>>>      [exec] Output redirected to property: svn.root.tmp
> >>>>>>      [exec] Executing 'svn' with arguments:
> >>>>>>      [exec] 'info'
> >>>>>>      [exec]
> >>>>>>      [exec] The ' characters around the executable and arguments are
> >>>>>>      [exec] not part of the command.
> >>>>>> Override ignored for property "svn.rc"
> >>>>>> Override ignored for property "svn.info"
> >>>>>>
> >>>>>> init:
> >>>>>> Override ignored for property "harmony.os"
> >>>>>> Override ignored for property "harmony.bits"
> >>>>>> Override ignored for property "harmony.arch"
> >>>>>> Property "hy.javac.compiler" has not been set
> >>>>>>
> >>>>>> show-props:
> >>>>>>      [echo]
> >>>>>>      [echo]                    Apache Harmony Federated Build
> >>>>>>      [echo]             ==========================================
> >>>>>>      [echo]             svn rev          :
> >>>>>>      [echo]             operating system :  windows
> >>>>>>      [echo]             architecture     :  x86-32
> >>>>>>      [echo]             ant os name/arch :  Windows XP/x86
> >>>>>>      [echo]             hosting Java     :  1.5.0_09 (Sun
> >>>>>> Microsystems
> >>>>>> Inc.)
> >>>>>>      [echo]             build mode       :  release
> >>>>>>      [echo]             output location  :  target
> >>>>>>      [echo]             SVN root         :
> >>>>>> http://svn.apache.org/repos/asf
> >>>>>>      [echo]
> >>>>>>
> >>>>>> setup:
> >>>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
> >>>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
> >>>>>>     [mkdir] Created dir: Z:\DEV\Harmony\target
> >>>>>>
> >>>>>> switch-svn-vm:
> >>>>>>      [exec] Current OS is Windows XP
> >>>>>>      [exec] Executing 'svn' with arguments:
> >>>>>>      [exec] '-r'
> >>>>>>      [exec] 'switch'
> >>>>>>      [exec]
> >>>>>> 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
> >>>>>>      [exec]
> >>>>>>      [exec] The ' characters around the executable and arguments are
> >>>>>>      [exec] not part of the command.
> >>>>>>      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'
> >>>>>>
> >>>>>> BUILD FAILED
> >>>>>> Z:\DEV\Harmony\build.xml:509: exec returned: 1
> >>>>>>         at
> >>>>>> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
> >>>>>>         at
> >>>>>> org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
> >>>>>>         at
> >>>>>> org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
> >>>>>>         at
> >>>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> >>>>>>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
> >>>>>> Source)
> >>>>>>         at
> >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> >>>>>>ssorImpl.java:25)
> >>>>>>
> >>>>>>
> >>>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>         at
> >>>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja
> >>>>>>va:105)
> >>>>>>
> >>>>>>
> >>>>>>         at org.apache.tools.ant.Task.perform(Task.java:348)
> >>>>>>         at org.apache.tools.ant.Target.execute(Target.java:357)
> >>>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
> >>>>>>         at
> >>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> >>>>>>         at
> >>>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> >>>>>>         at
> >>>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultEx
> >>>>>>ecutor.java:41)
> >>>>>>
> >>>>>>
> >>>>>>         at
> >>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> >>>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
> >>>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
> >>>>>>         at
> >>>>>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> >>>>>>         at
> >>>>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> >>>>>>
> >>>>>> Total time: 3 seconds



-- 
Gregory

Re: general: error in build: missing release.properties

Posted by Francis ANDRE <fr...@easynet.fr>.
Done: HARMONY-5560

 > Maybe as simple as setting that env var in our scripts when exec'ing the
 > svn command.
Yes, it should work

Francis

Tim Ellison a écrit :
> Francis - please could you open a JIRA issue describing this problem [1] 
> so we can fix it for everyone.
> 
> Maybe as simple as setting that env var in our scripts when exec'ing the 
> svn command.
> 
> [1] http://issues.apache.org/jira/browse/HARMONY
> 
> Thanks,
> Tim
> 
> Francis ANDRE wrote:
>> set LC_MESSAGES=en_US solves the problem
>>
>> Thanks Tony...
>>
>> Francis
>>
>> Tony Wu a écrit :
>>> On 3/2/08, Francis ANDRE <fr...@easynet.fr> wrote:
>>>> Hi Tim
>>>>
>>>> I found the problem... but not the solution...: Here is the output 
>>>> of svn info
>>>> (yes it is in french)!!
>>>>
>>>> Z:\DEV\Harmony\trunk>svn --version
>>>> svn, version 1.4.6 (r28521)
>>>>     compilé Dec 20 2007, 16:33:06
>>>>
>>>> Z:\DEV\Harmony\trunk>svn info build.xml
>>>> Chemin : build.xml
>>>> Nom : build.xml
>>>> URL : http://svn.apache.org/repos/asf/harmony/enhanced/trunk/build.xml
>>>> Racine du dépôt : http://svn.apache.org/repos/asf
>>>> UUID du dépôt : 13f79535-47bb-0310-9956-ffa450edef68
>>>> Révision : 632721
>>>> Type de noeud : fichier
>>>> Tâche programmée : normale
>>>> Auteur de la dernière modification : ndbeyer
>>>> Révision de la dernière modification : 628235
>>>> Date de la dernière modification: 2008-02-16 04:37:58 +0100 (sam., 
>>>> 16 févr. 2008)
>>>> Texte mis à jour: 2008-03-02 09:35:49 +0100 (dim., 02 mars 2008)
>>>> Somme de contrôle : 7c9654662eb3ee35efb6265f0739afda
>>>>
>>>> and I did not found any way to ask svn to produce a English based 
>>>> svn info...
>>>
>>> Try set LC_MESSAGES=en_US
>>>
>>> The build failed on the svn command rather than the missing properites
>>> file. I think it fails to pick up the revision because the output
>>> messages were localized.
>>>>
>>>> Francis
>>>>
>>>> Tim Ellison a écrit :
>>>>> Is svn.exe on your path?  What version of SVN client are you using?
>>>>> It look like it is croaking on invoking the 'svn switch' command.
>>>>>
>>>>> Regards,
>>>>> Tim
>>>>>
>>>>>
>>>>> Francis ANDRE wrote:
>>>>>> Hi Listeners
>>>>>>
>>>>>> It seems that build.xml failed because the file release.properties
>>>>>> cannot be found. Where is this file??
>>>>>>
>>>>>>
>>>>>> Thanks for your help
>>>>>>
>>>>>> FA
>>>>>>
>>>>>>
>>>>>> Z:\DEV\Harmony>ant -Dauto.fetch=true -v
>>>>>> Apache Ant version 1.7.0 compiled on December 13 2006
>>>>>> Buildfile: build.xml
>>>>>> Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0_09\jre
>>>>>> Detected OS: Windows XP
>>>>>> parsing buildfile Z:\DEV\Harmony\build.xml with URI =
>>>>>> file:/Z:/DEV/Harmony/build.xml
>>>>>> Project base dir set to: Z:\DEV\Harmony
>>>>>> [antlib:org.apache.tools.ant] Could not load definitions from 
>>>>>> resource
>>>>>> org/apache/tools/ant/antlib.x
>>>>>> ml. It could not be found.
>>>>>>  [property] Loading Z:\DEV\Harmony\release.properties
>>>>>>  [property] Unable to find property file:
>>>>>> Z:\DEV\Harmony\release.properties
>>>>>>  [macrodef] creating macro  chksum
>>>>>> Build sequence for target(s) `default' is [svn-prop, init, 
>>>>>> show-props,
>>>>>> setup, switch-svn-vm, switch-
>>>>>> svn-classlib, switch-svn-jdktools, switch-svn-commonresources,
>>>>>> populate-src, auto-fetch-classlib-lib
>>>>>> s, build-classlib, auto-fetch-vm-libs, build-vm,
>>>>>> build-commonresources, auto-fetch-jdktools-libs, bu
>>>>>> ild-jdktools, build-all, assemble-stuff, chmod-stuff,
>>>>>> assemble-artifacts, assemble-hdk-doc, bundle-h
>>>>>> dk-tgz, bundle-hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz,
>>>>>> bundle-jdk-zip, bundle-jdk, as
>>>>>> semble-jre-doc, bundle-jre-tgz, bundle-jre-zip, bundle-jre, default]
>>>>>> Complete build sequence is [svn-prop, init, show-props, setup,
>>>>>> switch-svn-vm, switch-svn-classlib, s
>>>>>> witch-svn-jdktools, switch-svn-commonresources, populate-src,
>>>>>> auto-fetch-classlib-libs, build-classl
>>>>>> ib, auto-fetch-vm-libs, build-vm, build-commonresources,
>>>>>> auto-fetch-jdktools-libs, build-jdktools, b
>>>>>> uild-all, assemble-stuff, chmod-stuff, assemble-artifacts,
>>>>>> assemble-hdk-doc, bundle-hdk-tgz, bundle-
>>>>>> hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz, 
>>>>>> bundle-jdk-zip,
>>>>>> bundle-jdk, assemble-jre-doc,
>>>>>>  bundle-jre-tgz, bundle-jre-zip, bundle-jre, default, copy-src,
>>>>>> bundle-src-tgz, bundle-src-zip, bund
>>>>>> le-src, fetch-vm-libs, fetch-jdktools-libs, assemble-jdk,
>>>>>> clean-classlib, init-classlib-hdk, clean-j
>>>>>> dktools, clean-vm, clean, reset, fetch-classlib-libs, 
>>>>>> make-snapshot, ]
>>>>>>
>>>>>> svn-prop:
>>>>>>      [exec] Current OS is Windows XP
>>>>>>      [exec] Output redirected to property: svn.revision.tmp
>>>>>>      [exec] Executing 'svn' with arguments:
>>>>>>      [exec] 'info'
>>>>>>      [exec] 'build.xml'
>>>>>>      [exec]
>>>>>>      [exec] The ' characters around the executable and arguments are
>>>>>>      [exec] not part of the command.
>>>>>> Override ignored for property "svn.revision"
>>>>>>      [exec] Current OS is Windows XP
>>>>>>      [exec] Output redirected to property: svn.root.tmp
>>>>>>      [exec] Executing 'svn' with arguments:
>>>>>>      [exec] 'info'
>>>>>>      [exec]
>>>>>>      [exec] The ' characters around the executable and arguments are
>>>>>>      [exec] not part of the command.
>>>>>> Override ignored for property "svn.rc"
>>>>>> Override ignored for property "svn.info"
>>>>>>
>>>>>> init:
>>>>>> Override ignored for property "harmony.os"
>>>>>> Override ignored for property "harmony.bits"
>>>>>> Override ignored for property "harmony.arch"
>>>>>> Property "hy.javac.compiler" has not been set
>>>>>>
>>>>>> show-props:
>>>>>>      [echo]
>>>>>>      [echo]                    Apache Harmony Federated Build
>>>>>>      [echo]             ==========================================
>>>>>>      [echo]             svn rev          :
>>>>>>      [echo]             operating system :  windows
>>>>>>      [echo]             architecture     :  x86-32
>>>>>>      [echo]             ant os name/arch :  Windows XP/x86
>>>>>>      [echo]             hosting Java     :  1.5.0_09 (Sun 
>>>>>> Microsystems
>>>>>> Inc.)
>>>>>>      [echo]             build mode       :  release
>>>>>>      [echo]             output location  :  target
>>>>>>      [echo]             SVN root         :
>>>>>> http://svn.apache.org/repos/asf
>>>>>>      [echo]
>>>>>>
>>>>>> setup:
>>>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
>>>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
>>>>>>     [mkdir] Created dir: Z:\DEV\Harmony\target
>>>>>>
>>>>>> switch-svn-vm:
>>>>>>      [exec] Current OS is Windows XP
>>>>>>      [exec] Executing 'svn' with arguments:
>>>>>>      [exec] '-r'
>>>>>>      [exec] 'switch'
>>>>>>      [exec]
>>>>>> 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
>>>>>>      [exec]
>>>>>>      [exec] The ' characters around the executable and arguments are
>>>>>>      [exec] not part of the command.
>>>>>>      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'
>>>>>>
>>>>>> BUILD FAILED
>>>>>> Z:\DEV\Harmony\build.xml:509: exec returned: 1
>>>>>>         at
>>>>>> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
>>>>>>         at
>>>>>> org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
>>>>>>         at
>>>>>> org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
>>>>>>         at
>>>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>>>>>>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown 
>>>>>> Source)
>>>>>>         at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>>>>>
>>>>>>
>>>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>         at
>>>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) 
>>>>>>
>>>>>>
>>>>>>         at org.apache.tools.ant.Task.perform(Task.java:348)
>>>>>>         at org.apache.tools.ant.Target.execute(Target.java:357)
>>>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>>>>>>         at
>>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>>>>>>         at 
>>>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>>>>>>         at
>>>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
>>>>>>
>>>>>>
>>>>>>         at 
>>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>>>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
>>>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
>>>>>>         at 
>>>>>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>>>>>>         at 
>>>>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>>>>>>
>>>>>> Total time: 3 seconds
>>>>>>
>>>>>
>>>
>>>
>>
> 
> 

Re: general: error in build: missing release.properties

Posted by Tim Ellison <t....@gmail.com>.
Francis - please could you open a JIRA issue describing this problem [1] 
so we can fix it for everyone.

Maybe as simple as setting that env var in our scripts when exec'ing the 
svn command.

[1] http://issues.apache.org/jira/browse/HARMONY

Thanks,
Tim

Francis ANDRE wrote:
> set LC_MESSAGES=en_US solves the problem
> 
> Thanks Tony...
> 
> Francis
> 
> Tony Wu a écrit :
>> On 3/2/08, Francis ANDRE <fr...@easynet.fr> wrote:
>>> Hi Tim
>>>
>>> I found the problem... but not the solution...: Here is the output of 
>>> svn info
>>> (yes it is in french)!!
>>>
>>> Z:\DEV\Harmony\trunk>svn --version
>>> svn, version 1.4.6 (r28521)
>>>     compilé Dec 20 2007, 16:33:06
>>>
>>> Z:\DEV\Harmony\trunk>svn info build.xml
>>> Chemin : build.xml
>>> Nom : build.xml
>>> URL : http://svn.apache.org/repos/asf/harmony/enhanced/trunk/build.xml
>>> Racine du dépôt : http://svn.apache.org/repos/asf
>>> UUID du dépôt : 13f79535-47bb-0310-9956-ffa450edef68
>>> Révision : 632721
>>> Type de noeud : fichier
>>> Tâche programmée : normale
>>> Auteur de la dernière modification : ndbeyer
>>> Révision de la dernière modification : 628235
>>> Date de la dernière modification: 2008-02-16 04:37:58 +0100 (sam., 16 
>>> févr. 2008)
>>> Texte mis à jour: 2008-03-02 09:35:49 +0100 (dim., 02 mars 2008)
>>> Somme de contrôle : 7c9654662eb3ee35efb6265f0739afda
>>>
>>> and I did not found any way to ask svn to produce a English based svn 
>>> info...
>>
>> Try set LC_MESSAGES=en_US
>>
>> The build failed on the svn command rather than the missing properites
>> file. I think it fails to pick up the revision because the output
>> messages were localized.
>>>
>>> Francis
>>>
>>> Tim Ellison a écrit :
>>>> Is svn.exe on your path?  What version of SVN client are you using?
>>>> It look like it is croaking on invoking the 'svn switch' command.
>>>>
>>>> Regards,
>>>> Tim
>>>>
>>>>
>>>> Francis ANDRE wrote:
>>>>> Hi Listeners
>>>>>
>>>>> It seems that build.xml failed because the file release.properties
>>>>> cannot be found. Where is this file??
>>>>>
>>>>>
>>>>> Thanks for your help
>>>>>
>>>>> FA
>>>>>
>>>>>
>>>>> Z:\DEV\Harmony>ant -Dauto.fetch=true -v
>>>>> Apache Ant version 1.7.0 compiled on December 13 2006
>>>>> Buildfile: build.xml
>>>>> Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0_09\jre
>>>>> Detected OS: Windows XP
>>>>> parsing buildfile Z:\DEV\Harmony\build.xml with URI =
>>>>> file:/Z:/DEV/Harmony/build.xml
>>>>> Project base dir set to: Z:\DEV\Harmony
>>>>> [antlib:org.apache.tools.ant] Could not load definitions from resource
>>>>> org/apache/tools/ant/antlib.x
>>>>> ml. It could not be found.
>>>>>  [property] Loading Z:\DEV\Harmony\release.properties
>>>>>  [property] Unable to find property file:
>>>>> Z:\DEV\Harmony\release.properties
>>>>>  [macrodef] creating macro  chksum
>>>>> Build sequence for target(s) `default' is [svn-prop, init, show-props,
>>>>> setup, switch-svn-vm, switch-
>>>>> svn-classlib, switch-svn-jdktools, switch-svn-commonresources,
>>>>> populate-src, auto-fetch-classlib-lib
>>>>> s, build-classlib, auto-fetch-vm-libs, build-vm,
>>>>> build-commonresources, auto-fetch-jdktools-libs, bu
>>>>> ild-jdktools, build-all, assemble-stuff, chmod-stuff,
>>>>> assemble-artifacts, assemble-hdk-doc, bundle-h
>>>>> dk-tgz, bundle-hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz,
>>>>> bundle-jdk-zip, bundle-jdk, as
>>>>> semble-jre-doc, bundle-jre-tgz, bundle-jre-zip, bundle-jre, default]
>>>>> Complete build sequence is [svn-prop, init, show-props, setup,
>>>>> switch-svn-vm, switch-svn-classlib, s
>>>>> witch-svn-jdktools, switch-svn-commonresources, populate-src,
>>>>> auto-fetch-classlib-libs, build-classl
>>>>> ib, auto-fetch-vm-libs, build-vm, build-commonresources,
>>>>> auto-fetch-jdktools-libs, build-jdktools, b
>>>>> uild-all, assemble-stuff, chmod-stuff, assemble-artifacts,
>>>>> assemble-hdk-doc, bundle-hdk-tgz, bundle-
>>>>> hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz, bundle-jdk-zip,
>>>>> bundle-jdk, assemble-jre-doc,
>>>>>  bundle-jre-tgz, bundle-jre-zip, bundle-jre, default, copy-src,
>>>>> bundle-src-tgz, bundle-src-zip, bund
>>>>> le-src, fetch-vm-libs, fetch-jdktools-libs, assemble-jdk,
>>>>> clean-classlib, init-classlib-hdk, clean-j
>>>>> dktools, clean-vm, clean, reset, fetch-classlib-libs, make-snapshot, ]
>>>>>
>>>>> svn-prop:
>>>>>      [exec] Current OS is Windows XP
>>>>>      [exec] Output redirected to property: svn.revision.tmp
>>>>>      [exec] Executing 'svn' with arguments:
>>>>>      [exec] 'info'
>>>>>      [exec] 'build.xml'
>>>>>      [exec]
>>>>>      [exec] The ' characters around the executable and arguments are
>>>>>      [exec] not part of the command.
>>>>> Override ignored for property "svn.revision"
>>>>>      [exec] Current OS is Windows XP
>>>>>      [exec] Output redirected to property: svn.root.tmp
>>>>>      [exec] Executing 'svn' with arguments:
>>>>>      [exec] 'info'
>>>>>      [exec]
>>>>>      [exec] The ' characters around the executable and arguments are
>>>>>      [exec] not part of the command.
>>>>> Override ignored for property "svn.rc"
>>>>> Override ignored for property "svn.info"
>>>>>
>>>>> init:
>>>>> Override ignored for property "harmony.os"
>>>>> Override ignored for property "harmony.bits"
>>>>> Override ignored for property "harmony.arch"
>>>>> Property "hy.javac.compiler" has not been set
>>>>>
>>>>> show-props:
>>>>>      [echo]
>>>>>      [echo]                    Apache Harmony Federated Build
>>>>>      [echo]             ==========================================
>>>>>      [echo]             svn rev          :
>>>>>      [echo]             operating system :  windows
>>>>>      [echo]             architecture     :  x86-32
>>>>>      [echo]             ant os name/arch :  Windows XP/x86
>>>>>      [echo]             hosting Java     :  1.5.0_09 (Sun Microsystems
>>>>> Inc.)
>>>>>      [echo]             build mode       :  release
>>>>>      [echo]             output location  :  target
>>>>>      [echo]             SVN root         :
>>>>> http://svn.apache.org/repos/asf
>>>>>      [echo]
>>>>>
>>>>> setup:
>>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
>>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
>>>>>     [mkdir] Created dir: Z:\DEV\Harmony\target
>>>>>
>>>>> switch-svn-vm:
>>>>>      [exec] Current OS is Windows XP
>>>>>      [exec] Executing 'svn' with arguments:
>>>>>      [exec] '-r'
>>>>>      [exec] 'switch'
>>>>>      [exec]
>>>>> 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
>>>>>      [exec]
>>>>>      [exec] The ' characters around the executable and arguments are
>>>>>      [exec] not part of the command.
>>>>>      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'
>>>>>
>>>>> BUILD FAILED
>>>>> Z:\DEV\Harmony\build.xml:509: exec returned: 1
>>>>>         at
>>>>> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
>>>>>         at
>>>>> org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
>>>>>         at
>>>>> org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
>>>>>         at
>>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>>>>>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>>>>
>>>>>
>>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>>>>         at
>>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) 
>>>>>
>>>>>
>>>>>         at org.apache.tools.ant.Task.perform(Task.java:348)
>>>>>         at org.apache.tools.ant.Target.execute(Target.java:357)
>>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>>>>>         at
>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>>>>>         at 
>>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>>>>>         at
>>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
>>>>>
>>>>>
>>>>>         at 
>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
>>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
>>>>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>>>>>         at 
>>>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>>>>>
>>>>> Total time: 3 seconds
>>>>>
>>>>
>>
>>
> 

Re: general: error in build: missing release.properties

Posted by Francis ANDRE <fr...@easynet.fr>.
set LC_MESSAGES=en_US solves the problem

Thanks Tony...

Francis

Tony Wu a écrit :
> On 3/2/08, Francis ANDRE <fr...@easynet.fr> wrote:
>> Hi Tim
>>
>> I found the problem... but not the solution...: Here is the output of svn info
>> (yes it is in french)!!
>>
>> Z:\DEV\Harmony\trunk>svn --version
>> svn, version 1.4.6 (r28521)
>>     compilé Dec 20 2007, 16:33:06
>>
>> Z:\DEV\Harmony\trunk>svn info build.xml
>> Chemin : build.xml
>> Nom : build.xml
>> URL : http://svn.apache.org/repos/asf/harmony/enhanced/trunk/build.xml
>> Racine du dépôt : http://svn.apache.org/repos/asf
>> UUID du dépôt : 13f79535-47bb-0310-9956-ffa450edef68
>> Révision : 632721
>> Type de noeud : fichier
>> Tâche programmée : normale
>> Auteur de la dernière modification : ndbeyer
>> Révision de la dernière modification : 628235
>> Date de la dernière modification: 2008-02-16 04:37:58 +0100 (sam., 16 févr. 2008)
>> Texte mis à jour: 2008-03-02 09:35:49 +0100 (dim., 02 mars 2008)
>> Somme de contrôle : 7c9654662eb3ee35efb6265f0739afda
>>
>> and I did not found any way to ask svn to produce a English based svn info...
> 
> Try set LC_MESSAGES=en_US
> 
> The build failed on the svn command rather than the missing properites
> file. I think it fails to pick up the revision because the output
> messages were localized.
>>
>> Francis
>>
>> Tim Ellison a écrit :
>>> Is svn.exe on your path?  What version of SVN client are you using?
>>> It look like it is croaking on invoking the 'svn switch' command.
>>>
>>> Regards,
>>> Tim
>>>
>>>
>>> Francis ANDRE wrote:
>>>> Hi Listeners
>>>>
>>>> It seems that build.xml failed because the file release.properties
>>>> cannot be found. Where is this file??
>>>>
>>>>
>>>> Thanks for your help
>>>>
>>>> FA
>>>>
>>>>
>>>> Z:\DEV\Harmony>ant -Dauto.fetch=true -v
>>>> Apache Ant version 1.7.0 compiled on December 13 2006
>>>> Buildfile: build.xml
>>>> Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0_09\jre
>>>> Detected OS: Windows XP
>>>> parsing buildfile Z:\DEV\Harmony\build.xml with URI =
>>>> file:/Z:/DEV/Harmony/build.xml
>>>> Project base dir set to: Z:\DEV\Harmony
>>>> [antlib:org.apache.tools.ant] Could not load definitions from resource
>>>> org/apache/tools/ant/antlib.x
>>>> ml. It could not be found.
>>>>  [property] Loading Z:\DEV\Harmony\release.properties
>>>>  [property] Unable to find property file:
>>>> Z:\DEV\Harmony\release.properties
>>>>  [macrodef] creating macro  chksum
>>>> Build sequence for target(s) `default' is [svn-prop, init, show-props,
>>>> setup, switch-svn-vm, switch-
>>>> svn-classlib, switch-svn-jdktools, switch-svn-commonresources,
>>>> populate-src, auto-fetch-classlib-lib
>>>> s, build-classlib, auto-fetch-vm-libs, build-vm,
>>>> build-commonresources, auto-fetch-jdktools-libs, bu
>>>> ild-jdktools, build-all, assemble-stuff, chmod-stuff,
>>>> assemble-artifacts, assemble-hdk-doc, bundle-h
>>>> dk-tgz, bundle-hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz,
>>>> bundle-jdk-zip, bundle-jdk, as
>>>> semble-jre-doc, bundle-jre-tgz, bundle-jre-zip, bundle-jre, default]
>>>> Complete build sequence is [svn-prop, init, show-props, setup,
>>>> switch-svn-vm, switch-svn-classlib, s
>>>> witch-svn-jdktools, switch-svn-commonresources, populate-src,
>>>> auto-fetch-classlib-libs, build-classl
>>>> ib, auto-fetch-vm-libs, build-vm, build-commonresources,
>>>> auto-fetch-jdktools-libs, build-jdktools, b
>>>> uild-all, assemble-stuff, chmod-stuff, assemble-artifacts,
>>>> assemble-hdk-doc, bundle-hdk-tgz, bundle-
>>>> hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz, bundle-jdk-zip,
>>>> bundle-jdk, assemble-jre-doc,
>>>>  bundle-jre-tgz, bundle-jre-zip, bundle-jre, default, copy-src,
>>>> bundle-src-tgz, bundle-src-zip, bund
>>>> le-src, fetch-vm-libs, fetch-jdktools-libs, assemble-jdk,
>>>> clean-classlib, init-classlib-hdk, clean-j
>>>> dktools, clean-vm, clean, reset, fetch-classlib-libs, make-snapshot, ]
>>>>
>>>> svn-prop:
>>>>      [exec] Current OS is Windows XP
>>>>      [exec] Output redirected to property: svn.revision.tmp
>>>>      [exec] Executing 'svn' with arguments:
>>>>      [exec] 'info'
>>>>      [exec] 'build.xml'
>>>>      [exec]
>>>>      [exec] The ' characters around the executable and arguments are
>>>>      [exec] not part of the command.
>>>> Override ignored for property "svn.revision"
>>>>      [exec] Current OS is Windows XP
>>>>      [exec] Output redirected to property: svn.root.tmp
>>>>      [exec] Executing 'svn' with arguments:
>>>>      [exec] 'info'
>>>>      [exec]
>>>>      [exec] The ' characters around the executable and arguments are
>>>>      [exec] not part of the command.
>>>> Override ignored for property "svn.rc"
>>>> Override ignored for property "svn.info"
>>>>
>>>> init:
>>>> Override ignored for property "harmony.os"
>>>> Override ignored for property "harmony.bits"
>>>> Override ignored for property "harmony.arch"
>>>> Property "hy.javac.compiler" has not been set
>>>>
>>>> show-props:
>>>>      [echo]
>>>>      [echo]                    Apache Harmony Federated Build
>>>>      [echo]             ==========================================
>>>>      [echo]             svn rev          :
>>>>      [echo]             operating system :  windows
>>>>      [echo]             architecture     :  x86-32
>>>>      [echo]             ant os name/arch :  Windows XP/x86
>>>>      [echo]             hosting Java     :  1.5.0_09 (Sun Microsystems
>>>> Inc.)
>>>>      [echo]             build mode       :  release
>>>>      [echo]             output location  :  target
>>>>      [echo]             SVN root         :
>>>> http://svn.apache.org/repos/asf
>>>>      [echo]
>>>>
>>>> setup:
>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
>>>>    [delete] Deleting directory Z:\DEV\Harmony\target
>>>>     [mkdir] Created dir: Z:\DEV\Harmony\target
>>>>
>>>> switch-svn-vm:
>>>>      [exec] Current OS is Windows XP
>>>>      [exec] Executing 'svn' with arguments:
>>>>      [exec] '-r'
>>>>      [exec] 'switch'
>>>>      [exec]
>>>> 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
>>>>      [exec]
>>>>      [exec] The ' characters around the executable and arguments are
>>>>      [exec] not part of the command.
>>>>      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'
>>>>
>>>> BUILD FAILED
>>>> Z:\DEV\Harmony\build.xml:509: exec returned: 1
>>>>         at
>>>> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
>>>>         at
>>>> org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
>>>>         at
>>>> org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
>>>>         at
>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>>>>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>>>>         at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>
>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>>>         at
>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>>>>
>>>>         at org.apache.tools.ant.Task.perform(Task.java:348)
>>>>         at org.apache.tools.ant.Target.execute(Target.java:357)
>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>>>>         at
>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>>>>         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>>>>         at
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>>>>
>>>>         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
>>>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>>>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>>>>
>>>> Total time: 3 seconds
>>>>
>>>
> 
> 

Re: [build] Re: general: error in build: missing release.properties

Posted by Tim Ellison <t....@gmail.com>.
To answer my own question, i see we are looking for the English name :-(

 From top-level build.xml...

   <target name="svn-prop">
       <exec executable="svn"
             dir="."
             failifexecutionfails="false"
             resultproperty="svn.rc">
           <arg value="info" />
           <arg value="build.xml" />
           <redirector outputproperty="svn.revision.tmp">
               <outputfilterchain>
                   <linecontains>
>>>>                  <contains value="Revision: " />
                   </linecontains>
                   <tokenfilter>
                       <replacestring from="Revision: " to=""/>
                   </tokenfilter>
               </outputfilterchain>
           </redirector>
       </exec>


That's a bug.

Try running with "ant -Dsvn.rc=632721 -Dauto.fetch=true"

(I took that revision number from your original mail)

Once we have that work-around confirmed we can work on a fix for you.

Regards,
Tim


Tim Ellison wrote:
> Tony Wu wrote:
>> The build failed on the svn command rather than the missing properites
>> file.
> 
> I agree.
> 
>> I think it fails to pick up the revision because the output
>> messages were localized.
> 
> Right, but we are (should be?) tolerant of the svn info command failing. 
>  The failure appears to be on the svn switch command, see:
> 
>  > switch-svn-vm:
>  >      [exec] Current OS is Windows XP
>  >      [exec] Executing 'svn' with arguments:
>  >      [exec] '-r'
>  >      [exec] 'switch'
>  >      [exec]
>  > 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
>  >      [exec]
>  >      [exec] The ' characters around the executable and arguments are
>  >      [exec] not part of the command.
>  >      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'
> 
> Syntax error on switch command.
> 
> Are we trying to pass in the parsed revision number?
> 
> Regards,
> Tim
> 

[build] Re: general: error in build: missing release.properties

Posted by Tim Ellison <t....@gmail.com>.
Tony Wu wrote:
> The build failed on the svn command rather than the missing properites
> file.

I agree.

> I think it fails to pick up the revision because the output
> messages were localized.

Right, but we are (should be?) tolerant of the svn info command failing. 
  The failure appears to be on the svn switch command, see:

 > switch-svn-vm:
 >      [exec] Current OS is Windows XP
 >      [exec] Executing 'svn' with arguments:
 >      [exec] '-r'
 >      [exec] 'switch'
 >      [exec]
 > 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
 >      [exec]
 >      [exec] The ' characters around the executable and arguments are
 >      [exec] not part of the command.
 >      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'

Syntax error on switch command.

Are we trying to pass in the parsed revision number?

Regards,
Tim

Re: general: error in build: missing release.properties

Posted by Tony Wu <wu...@gmail.com>.
On 3/2/08, Francis ANDRE <fr...@easynet.fr> wrote:
> Hi Tim
>
> I found the problem... but not the solution...: Here is the output of svn info
> (yes it is in french)!!
>
> Z:\DEV\Harmony\trunk>svn --version
> svn, version 1.4.6 (r28521)
>     compilé Dec 20 2007, 16:33:06
>
> Z:\DEV\Harmony\trunk>svn info build.xml
> Chemin : build.xml
> Nom : build.xml
> URL : http://svn.apache.org/repos/asf/harmony/enhanced/trunk/build.xml
> Racine du dépôt : http://svn.apache.org/repos/asf
> UUID du dépôt : 13f79535-47bb-0310-9956-ffa450edef68
> Révision : 632721
> Type de noeud : fichier
> Tâche programmée : normale
> Auteur de la dernière modification : ndbeyer
> Révision de la dernière modification : 628235
> Date de la dernière modification: 2008-02-16 04:37:58 +0100 (sam., 16 févr. 2008)
> Texte mis à jour: 2008-03-02 09:35:49 +0100 (dim., 02 mars 2008)
> Somme de contrôle : 7c9654662eb3ee35efb6265f0739afda
>
> and I did not found any way to ask svn to produce a English based svn info...

Try set LC_MESSAGES=en_US

The build failed on the svn command rather than the missing properites
file. I think it fails to pick up the revision because the output
messages were localized.
>
>
> Francis
>
> Tim Ellison a écrit :
> > Is svn.exe on your path?  What version of SVN client are you using?
> > It look like it is croaking on invoking the 'svn switch' command.
> >
> > Regards,
> > Tim
> >
> >
> > Francis ANDRE wrote:
> >> Hi Listeners
> >>
> >> It seems that build.xml failed because the file release.properties
> >> cannot be found. Where is this file??
> >>
> >>
> >> Thanks for your help
> >>
> >> FA
> >>
> >>
> >> Z:\DEV\Harmony>ant -Dauto.fetch=true -v
> >> Apache Ant version 1.7.0 compiled on December 13 2006
> >> Buildfile: build.xml
> >> Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0_09\jre
> >> Detected OS: Windows XP
> >> parsing buildfile Z:\DEV\Harmony\build.xml with URI =
> >> file:/Z:/DEV/Harmony/build.xml
> >> Project base dir set to: Z:\DEV\Harmony
> >> [antlib:org.apache.tools.ant] Could not load definitions from resource
> >> org/apache/tools/ant/antlib.x
> >> ml. It could not be found.
> >>  [property] Loading Z:\DEV\Harmony\release.properties
> >>  [property] Unable to find property file:
> >> Z:\DEV\Harmony\release.properties
> >>  [macrodef] creating macro  chksum
> >> Build sequence for target(s) `default' is [svn-prop, init, show-props,
> >> setup, switch-svn-vm, switch-
> >> svn-classlib, switch-svn-jdktools, switch-svn-commonresources,
> >> populate-src, auto-fetch-classlib-lib
> >> s, build-classlib, auto-fetch-vm-libs, build-vm,
> >> build-commonresources, auto-fetch-jdktools-libs, bu
> >> ild-jdktools, build-all, assemble-stuff, chmod-stuff,
> >> assemble-artifacts, assemble-hdk-doc, bundle-h
> >> dk-tgz, bundle-hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz,
> >> bundle-jdk-zip, bundle-jdk, as
> >> semble-jre-doc, bundle-jre-tgz, bundle-jre-zip, bundle-jre, default]
> >> Complete build sequence is [svn-prop, init, show-props, setup,
> >> switch-svn-vm, switch-svn-classlib, s
> >> witch-svn-jdktools, switch-svn-commonresources, populate-src,
> >> auto-fetch-classlib-libs, build-classl
> >> ib, auto-fetch-vm-libs, build-vm, build-commonresources,
> >> auto-fetch-jdktools-libs, build-jdktools, b
> >> uild-all, assemble-stuff, chmod-stuff, assemble-artifacts,
> >> assemble-hdk-doc, bundle-hdk-tgz, bundle-
> >> hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz, bundle-jdk-zip,
> >> bundle-jdk, assemble-jre-doc,
> >>  bundle-jre-tgz, bundle-jre-zip, bundle-jre, default, copy-src,
> >> bundle-src-tgz, bundle-src-zip, bund
> >> le-src, fetch-vm-libs, fetch-jdktools-libs, assemble-jdk,
> >> clean-classlib, init-classlib-hdk, clean-j
> >> dktools, clean-vm, clean, reset, fetch-classlib-libs, make-snapshot, ]
> >>
> >> svn-prop:
> >>      [exec] Current OS is Windows XP
> >>      [exec] Output redirected to property: svn.revision.tmp
> >>      [exec] Executing 'svn' with arguments:
> >>      [exec] 'info'
> >>      [exec] 'build.xml'
> >>      [exec]
> >>      [exec] The ' characters around the executable and arguments are
> >>      [exec] not part of the command.
> >> Override ignored for property "svn.revision"
> >>      [exec] Current OS is Windows XP
> >>      [exec] Output redirected to property: svn.root.tmp
> >>      [exec] Executing 'svn' with arguments:
> >>      [exec] 'info'
> >>      [exec]
> >>      [exec] The ' characters around the executable and arguments are
> >>      [exec] not part of the command.
> >> Override ignored for property "svn.rc"
> >> Override ignored for property "svn.info"
> >>
> >> init:
> >> Override ignored for property "harmony.os"
> >> Override ignored for property "harmony.bits"
> >> Override ignored for property "harmony.arch"
> >> Property "hy.javac.compiler" has not been set
> >>
> >> show-props:
> >>      [echo]
> >>      [echo]                    Apache Harmony Federated Build
> >>      [echo]             ==========================================
> >>      [echo]             svn rev          :
> >>      [echo]             operating system :  windows
> >>      [echo]             architecture     :  x86-32
> >>      [echo]             ant os name/arch :  Windows XP/x86
> >>      [echo]             hosting Java     :  1.5.0_09 (Sun Microsystems
> >> Inc.)
> >>      [echo]             build mode       :  release
> >>      [echo]             output location  :  target
> >>      [echo]             SVN root         :
> >> http://svn.apache.org/repos/asf
> >>      [echo]
> >>
> >> setup:
> >>    [delete] Deleting directory Z:\DEV\Harmony\target
> >>    [delete] Deleting directory Z:\DEV\Harmony\target
> >>     [mkdir] Created dir: Z:\DEV\Harmony\target
> >>
> >> switch-svn-vm:
> >>      [exec] Current OS is Windows XP
> >>      [exec] Executing 'svn' with arguments:
> >>      [exec] '-r'
> >>      [exec] 'switch'
> >>      [exec]
> >> 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
> >>      [exec]
> >>      [exec] The ' characters around the executable and arguments are
> >>      [exec] not part of the command.
> >>      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'
> >>
> >> BUILD FAILED
> >> Z:\DEV\Harmony\build.xml:509: exec returned: 1
> >>         at
> >> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
> >>         at
> >> org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
> >>         at
> >> org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
> >>         at
> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> >>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> >>         at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>
> >>         at java.lang.reflect.Method.invoke(Method.java:585)
> >>         at
> >> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
> >>
> >>         at org.apache.tools.ant.Task.perform(Task.java:348)
> >>         at org.apache.tools.ant.Target.execute(Target.java:357)
> >>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
> >>         at
> >> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> >>         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> >>         at
> >> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> >>
> >>         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> >>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
> >>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
> >>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> >>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> >>
> >> Total time: 3 seconds
> >>
> >
> >
>


-- 
Tony Wu
China Software Development Lab, IBM

Re: general: error in build: missing release.properties

Posted by Francis ANDRE <fr...@easynet.fr>.
Hi Tim

I found the problem... but not the solution...: Here is the output of svn info 
(yes it is in french)!!

Z:\DEV\Harmony\trunk>svn --version
svn, version 1.4.6 (r28521)
     compilé Dec 20 2007, 16:33:06

Z:\DEV\Harmony\trunk>svn info build.xml
Chemin : build.xml
Nom : build.xml
URL : http://svn.apache.org/repos/asf/harmony/enhanced/trunk/build.xml
Racine du dépôt : http://svn.apache.org/repos/asf
UUID du dépôt : 13f79535-47bb-0310-9956-ffa450edef68
Révision : 632721
Type de noeud : fichier
Tâche programmée : normale
Auteur de la dernière modification : ndbeyer
Révision de la dernière modification : 628235
Date de la dernière modification: 2008-02-16 04:37:58 +0100 (sam., 16 févr. 2008)
Texte mis à jour: 2008-03-02 09:35:49 +0100 (dim., 02 mars 2008)
Somme de contrôle : 7c9654662eb3ee35efb6265f0739afda

and I did not found any way to ask svn to produce a English based svn info...


Francis

Tim Ellison a écrit :
> Is svn.exe on your path?  What version of SVN client are you using?
> It look like it is croaking on invoking the 'svn switch' command.
> 
> Regards,
> Tim
> 
> 
> Francis ANDRE wrote:
>> Hi Listeners
>>
>> It seems that build.xml failed because the file release.properties 
>> cannot be found. Where is this file??
>>
>>
>> Thanks for your help
>>
>> FA
>>
>>
>> Z:\DEV\Harmony>ant -Dauto.fetch=true -v
>> Apache Ant version 1.7.0 compiled on December 13 2006
>> Buildfile: build.xml
>> Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0_09\jre
>> Detected OS: Windows XP
>> parsing buildfile Z:\DEV\Harmony\build.xml with URI = 
>> file:/Z:/DEV/Harmony/build.xml
>> Project base dir set to: Z:\DEV\Harmony
>> [antlib:org.apache.tools.ant] Could not load definitions from resource 
>> org/apache/tools/ant/antlib.x
>> ml. It could not be found.
>>  [property] Loading Z:\DEV\Harmony\release.properties
>>  [property] Unable to find property file: 
>> Z:\DEV\Harmony\release.properties
>>  [macrodef] creating macro  chksum
>> Build sequence for target(s) `default' is [svn-prop, init, show-props, 
>> setup, switch-svn-vm, switch-
>> svn-classlib, switch-svn-jdktools, switch-svn-commonresources, 
>> populate-src, auto-fetch-classlib-lib
>> s, build-classlib, auto-fetch-vm-libs, build-vm, 
>> build-commonresources, auto-fetch-jdktools-libs, bu
>> ild-jdktools, build-all, assemble-stuff, chmod-stuff, 
>> assemble-artifacts, assemble-hdk-doc, bundle-h
>> dk-tgz, bundle-hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz, 
>> bundle-jdk-zip, bundle-jdk, as
>> semble-jre-doc, bundle-jre-tgz, bundle-jre-zip, bundle-jre, default]
>> Complete build sequence is [svn-prop, init, show-props, setup, 
>> switch-svn-vm, switch-svn-classlib, s
>> witch-svn-jdktools, switch-svn-commonresources, populate-src, 
>> auto-fetch-classlib-libs, build-classl
>> ib, auto-fetch-vm-libs, build-vm, build-commonresources, 
>> auto-fetch-jdktools-libs, build-jdktools, b
>> uild-all, assemble-stuff, chmod-stuff, assemble-artifacts, 
>> assemble-hdk-doc, bundle-hdk-tgz, bundle-
>> hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz, bundle-jdk-zip, 
>> bundle-jdk, assemble-jre-doc,
>>  bundle-jre-tgz, bundle-jre-zip, bundle-jre, default, copy-src, 
>> bundle-src-tgz, bundle-src-zip, bund
>> le-src, fetch-vm-libs, fetch-jdktools-libs, assemble-jdk, 
>> clean-classlib, init-classlib-hdk, clean-j
>> dktools, clean-vm, clean, reset, fetch-classlib-libs, make-snapshot, ]
>>
>> svn-prop:
>>      [exec] Current OS is Windows XP
>>      [exec] Output redirected to property: svn.revision.tmp
>>      [exec] Executing 'svn' with arguments:
>>      [exec] 'info'
>>      [exec] 'build.xml'
>>      [exec]
>>      [exec] The ' characters around the executable and arguments are
>>      [exec] not part of the command.
>> Override ignored for property "svn.revision"
>>      [exec] Current OS is Windows XP
>>      [exec] Output redirected to property: svn.root.tmp
>>      [exec] Executing 'svn' with arguments:
>>      [exec] 'info'
>>      [exec]
>>      [exec] The ' characters around the executable and arguments are
>>      [exec] not part of the command.
>> Override ignored for property "svn.rc"
>> Override ignored for property "svn.info"
>>
>> init:
>> Override ignored for property "harmony.os"
>> Override ignored for property "harmony.bits"
>> Override ignored for property "harmony.arch"
>> Property "hy.javac.compiler" has not been set
>>
>> show-props:
>>      [echo]
>>      [echo]                    Apache Harmony Federated Build
>>      [echo]             ==========================================
>>      [echo]             svn rev          :
>>      [echo]             operating system :  windows
>>      [echo]             architecture     :  x86-32
>>      [echo]             ant os name/arch :  Windows XP/x86
>>      [echo]             hosting Java     :  1.5.0_09 (Sun Microsystems 
>> Inc.)
>>      [echo]             build mode       :  release
>>      [echo]             output location  :  target
>>      [echo]             SVN root         :  
>> http://svn.apache.org/repos/asf
>>      [echo]
>>
>> setup:
>>    [delete] Deleting directory Z:\DEV\Harmony\target
>>    [delete] Deleting directory Z:\DEV\Harmony\target
>>     [mkdir] Created dir: Z:\DEV\Harmony\target
>>
>> switch-svn-vm:
>>      [exec] Current OS is Windows XP
>>      [exec] Executing 'svn' with arguments:
>>      [exec] '-r'
>>      [exec] 'switch'
>>      [exec] 
>> 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
>>      [exec]
>>      [exec] The ' characters around the executable and arguments are
>>      [exec] not part of the command.
>>      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'
>>
>> BUILD FAILED
>> Z:\DEV\Harmony\build.xml:509: exec returned: 1
>>         at 
>> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
>>         at 
>> org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
>>         at 
>> org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
>>         at 
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>>         at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at 
>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) 
>>
>>         at org.apache.tools.ant.Task.perform(Task.java:348)
>>         at org.apache.tools.ant.Target.execute(Target.java:357)
>>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>>         at 
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>>         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>>         at 
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
>>
>>         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
>>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>>
>> Total time: 3 seconds
>>
> 
> 

Re: general: error in build: missing release.properties

Posted by Tim Ellison <t....@gmail.com>.
Is svn.exe on your path?  What version of SVN client are you using?
It look like it is croaking on invoking the 'svn switch' command.

Regards,
Tim


Francis ANDRE wrote:
> Hi Listeners
> 
> It seems that build.xml failed because the file release.properties 
> cannot be found. Where is this file??
> 
> 
> Thanks for your help
> 
> FA
> 
> 
> Z:\DEV\Harmony>ant -Dauto.fetch=true -v
> Apache Ant version 1.7.0 compiled on December 13 2006
> Buildfile: build.xml
> Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0_09\jre
> Detected OS: Windows XP
> parsing buildfile Z:\DEV\Harmony\build.xml with URI = 
> file:/Z:/DEV/Harmony/build.xml
> Project base dir set to: Z:\DEV\Harmony
> [antlib:org.apache.tools.ant] Could not load definitions from resource 
> org/apache/tools/ant/antlib.x
> ml. It could not be found.
>  [property] Loading Z:\DEV\Harmony\release.properties
>  [property] Unable to find property file: Z:\DEV\Harmony\release.properties
>  [macrodef] creating macro  chksum
> Build sequence for target(s) `default' is [svn-prop, init, show-props, 
> setup, switch-svn-vm, switch-
> svn-classlib, switch-svn-jdktools, switch-svn-commonresources, 
> populate-src, auto-fetch-classlib-lib
> s, build-classlib, auto-fetch-vm-libs, build-vm, build-commonresources, 
> auto-fetch-jdktools-libs, bu
> ild-jdktools, build-all, assemble-stuff, chmod-stuff, 
> assemble-artifacts, assemble-hdk-doc, bundle-h
> dk-tgz, bundle-hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz, 
> bundle-jdk-zip, bundle-jdk, as
> semble-jre-doc, bundle-jre-tgz, bundle-jre-zip, bundle-jre, default]
> Complete build sequence is [svn-prop, init, show-props, setup, 
> switch-svn-vm, switch-svn-classlib, s
> witch-svn-jdktools, switch-svn-commonresources, populate-src, 
> auto-fetch-classlib-libs, build-classl
> ib, auto-fetch-vm-libs, build-vm, build-commonresources, 
> auto-fetch-jdktools-libs, build-jdktools, b
> uild-all, assemble-stuff, chmod-stuff, assemble-artifacts, 
> assemble-hdk-doc, bundle-hdk-tgz, bundle-
> hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz, bundle-jdk-zip, 
> bundle-jdk, assemble-jre-doc,
>  bundle-jre-tgz, bundle-jre-zip, bundle-jre, default, copy-src, 
> bundle-src-tgz, bundle-src-zip, bund
> le-src, fetch-vm-libs, fetch-jdktools-libs, assemble-jdk, 
> clean-classlib, init-classlib-hdk, clean-j
> dktools, clean-vm, clean, reset, fetch-classlib-libs, make-snapshot, ]
> 
> svn-prop:
>      [exec] Current OS is Windows XP
>      [exec] Output redirected to property: svn.revision.tmp
>      [exec] Executing 'svn' with arguments:
>      [exec] 'info'
>      [exec] 'build.xml'
>      [exec]
>      [exec] The ' characters around the executable and arguments are
>      [exec] not part of the command.
> Override ignored for property "svn.revision"
>      [exec] Current OS is Windows XP
>      [exec] Output redirected to property: svn.root.tmp
>      [exec] Executing 'svn' with arguments:
>      [exec] 'info'
>      [exec]
>      [exec] The ' characters around the executable and arguments are
>      [exec] not part of the command.
> Override ignored for property "svn.rc"
> Override ignored for property "svn.info"
> 
> init:
> Override ignored for property "harmony.os"
> Override ignored for property "harmony.bits"
> Override ignored for property "harmony.arch"
> Property "hy.javac.compiler" has not been set
> 
> show-props:
>      [echo]
>      [echo]                    Apache Harmony Federated Build
>      [echo]             ==========================================
>      [echo]             svn rev          :
>      [echo]             operating system :  windows
>      [echo]             architecture     :  x86-32
>      [echo]             ant os name/arch :  Windows XP/x86
>      [echo]             hosting Java     :  1.5.0_09 (Sun Microsystems 
> Inc.)
>      [echo]             build mode       :  release
>      [echo]             output location  :  target
>      [echo]             SVN root         :  http://svn.apache.org/repos/asf
>      [echo]
> 
> setup:
>    [delete] Deleting directory Z:\DEV\Harmony\target
>    [delete] Deleting directory Z:\DEV\Harmony\target
>     [mkdir] Created dir: Z:\DEV\Harmony\target
> 
> switch-svn-vm:
>      [exec] Current OS is Windows XP
>      [exec] Executing 'svn' with arguments:
>      [exec] '-r'
>      [exec] 'switch'
>      [exec] 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
>      [exec]
>      [exec] The ' characters around the executable and arguments are
>      [exec] not part of the command.
>      [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'
> 
> BUILD FAILED
> Z:\DEV\Harmony\build.xml:509: exec returned: 1
>         at 
> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
>         at 
> org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
>         at 
> org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
>         at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
> 
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at 
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>         at 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
> 
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> 
> Total time: 3 seconds
> 

Re: general: error in build: missing release.properties

Posted by Egor Pasko <eg...@gmail.com>.
On the 0x3FA day of Apache Harmony Francis ANDRE wrote:
> Hi Listeners
> 
> It seems that build.xml failed because the file release.properties
> cannot be found. Where is this file??

I do not have it either. Maybe you should try with ant 1.6.5 until
build gurus are here :)

> 
> Thanks for your help
> 
> FA
> 
> 
> Z:\DEV\Harmony>ant -Dauto.fetch=true -v
> Apache Ant version 1.7.0 compiled on December 13 2006
> Buildfile: build.xml
> Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0_09\jre
> Detected OS: Windows XP
> parsing buildfile Z:\DEV\Harmony\build.xml with URI = file:/Z:/DEV/Harmony/build.xml
> Project base dir set to: Z:\DEV\Harmony
> [antlib:org.apache.tools.ant] Could not load definitions from resource
> org/apache/tools/ant/antlib.x
> ml. It could not be found.
>   [property] Loading Z:\DEV\Harmony\release.properties
>   [property] Unable to find property file: Z:\DEV\Harmony\release.properties
>   [macrodef] creating macro  chksum
> Build sequence for target(s) `default' is [svn-prop, init, show-props,
> setup, switch-svn-vm, switch-
> svn-classlib, switch-svn-jdktools, switch-svn-commonresources,
> populate-src, auto-fetch-classlib-lib
> s, build-classlib, auto-fetch-vm-libs, build-vm,
> build-commonresources, auto-fetch-jdktools-libs, bu
> ild-jdktools, build-all, assemble-stuff, chmod-stuff,
> assemble-artifacts, assemble-hdk-doc, bundle-h
> dk-tgz, bundle-hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz,
> bundle-jdk-zip, bundle-jdk, as
> semble-jre-doc, bundle-jre-tgz, bundle-jre-zip, bundle-jre, default]
> Complete build sequence is [svn-prop, init, show-props, setup,
> switch-svn-vm, switch-svn-classlib, s
> witch-svn-jdktools, switch-svn-commonresources, populate-src,
> auto-fetch-classlib-libs, build-classl
> ib, auto-fetch-vm-libs, build-vm, build-commonresources,
> auto-fetch-jdktools-libs, build-jdktools, b
> uild-all, assemble-stuff, chmod-stuff, assemble-artifacts,
> assemble-hdk-doc, bundle-hdk-tgz, bundle-
> hdk-zip, bundle-hdk, assemble-jdk-doc, bundle-jdk-tgz, bundle-jdk-zip,
> bundle-jdk, assemble-jre-doc,
>   bundle-jre-tgz, bundle-jre-zip, bundle-jre, default, copy-src,
> bundle-src-tgz, bundle-src-zip, bund
> le-src, fetch-vm-libs, fetch-jdktools-libs, assemble-jdk,
> clean-classlib, init-classlib-hdk, clean-j
> dktools, clean-vm, clean, reset, fetch-classlib-libs, make-snapshot, ]
> 
> svn-prop:
>       [exec] Current OS is Windows XP
>       [exec] Output redirected to property: svn.revision.tmp
>       [exec] Executing 'svn' with arguments:
>       [exec] 'info'
>       [exec] 'build.xml'
>       [exec]
>       [exec] The ' characters around the executable and arguments are
>       [exec] not part of the command.
> Override ignored for property "svn.revision"
>       [exec] Current OS is Windows XP
>       [exec] Output redirected to property: svn.root.tmp
>       [exec] Executing 'svn' with arguments:
>       [exec] 'info'
>       [exec]
>       [exec] The ' characters around the executable and arguments are
>       [exec] not part of the command.
> Override ignored for property "svn.rc"
> Override ignored for property "svn.info"
> 
> init:
> Override ignored for property "harmony.os"
> Override ignored for property "harmony.bits"
> Override ignored for property "harmony.arch"
> Property "hy.javac.compiler" has not been set
> 
> show-props:
>       [echo]
>       [echo]                    Apache Harmony Federated Build
>       [echo]             ==========================================
>       [echo]             svn rev          :
>       [echo]             operating system :  windows
>       [echo]             architecture     :  x86-32
>       [echo]             ant os name/arch :  Windows XP/x86
>       [echo]             hosting Java     :  1.5.0_09 (Sun Microsystems Inc.)
>       [echo]             build mode       :  release
>       [echo]             output location  :  target
>       [echo]             SVN root         :  http://svn.apache.org/repos/asf
>       [echo]
> 
> setup:
>     [delete] Deleting directory Z:\DEV\Harmony\target
>     [delete] Deleting directory Z:\DEV\Harmony\target
>      [mkdir] Created dir: Z:\DEV\Harmony\target
> 
> switch-svn-vm:
>       [exec] Current OS is Windows XP
>       [exec] Executing 'svn' with arguments:
>       [exec] '-r'
>       [exec] 'switch'
>       [exec] 'http://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk'
>       [exec]
>       [exec] The ' characters around the executable and arguments are
>       [exec] not part of the command.
>       [exec] svn: Erreur de syntaxe à l'argument de révision 'switch'
> 
> BUILD FAILED
> Z:\DEV\Harmony\build.xml:509: exec returned: 1
>          at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
>          at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
>          at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
>          at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:585)
>          at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>          at org.apache.tools.ant.Task.perform(Task.java:348)
>          at org.apache.tools.ant.Target.execute(Target.java:357)
>          at org.apache.tools.ant.Target.performTasks(Target.java:385)
>          at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>          at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>          at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>          at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>          at org.apache.tools.ant.Main.runBuild(Main.java:698)
>          at org.apache.tools.ant.Main.startAnt(Main.java:199)
>          at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>          at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> 
> Total time: 3 seconds
> 

-- 
Egor Pasko