Abdellazizhammami / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

BUILD FAILED: Fix revision number in Base.java #735

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
- What steps will reproduce the problem?
1.git clone git://github.com/arduino/Arduino.git
2.cd Arduino/build
3.ant

- What is the expected output?
Something without an error.

- What do you see instead?
$ ant
Buildfile: build.xml

build:

revision-check:

BUILD FAILED
/home/user/arduino/Arduino/build/build.xml:34: The following error occurred 
while executing this line:
/home/user/arduino/Arduino/build/build.xml:146: Fix revision number in Base.java

Total time: 2 seconds

- What version of the Arduino software are you using?
1.0 (latest git repo, but the problem was there before)

- On what operating system?
Linux

- Which Arduino board are you using?
UNO.

- Please provide any additional information below.
A quick fix is simple, just remove the asterisk in build.xml, line 131:

diff --git a/build/build.xml b/build/build.xml
index 6a40d1b..431637e 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -128,7 +128,7 @@
        <tokenfilter>
          <linetokenizer />
          <containsregex pattern="String VERSION_NAME = "/>
-         <replaceregex pattern="[^0-9]*" flags="g" replace=""/>
+         <replaceregex pattern="[^0-9]" flags="g" replace=""/>
        </tokenfilter>
       </filterchain>
     </loadfile>

Original issue reported on code.google.com by marcelo....@gmail.com on 2 Dec 2011 at 6:38

Attachments:

GoogleCodeExporter commented 9 years ago
I've never run into this problem...  can you explain what's going on?

Original comment by dmel...@gmail.com on 11 Mar 2012 at 5:08

GoogleCodeExporter commented 9 years ago
having changed the way version is obtained, closing as invalid

Original comment by federico...@gmail.com on 4 Feb 2013 at 3:59