Open GoogleCodeExporter opened 8 years ago
I ran into this issue on my Mac also, and found a solution. It seems that the
code uses the Ragel State Machine Compiler [http://www.complang.org/ragel/] and
includes a binary (not sure what for, but obviously not OS X Intel). I
installed Ragel on my machine, and replaced ims-parser/ragel with a link to the
installation.
Original comment by timothy....@gmail.com
on 1 Nov 2012 at 10:22
I tried running the build for this source in Windows 7, following the
instructions.
I am running into the following error:
BUILD FAILED
D:\LearningSpace\the-ims-open-source-project-for-android\build.xml:5: The
following error occurred while executing this line:
D:\LearningSpace\the-ims-open-source-project-for-android\build.xml:26: The
following error occurred while executing this line:
D:\LearningSpace\the-ims-open-source-project-for-android\build.xml:41: The
following error occurred while executing this line:
D:\LearningSpace\the-ims-open-source-project-for-android\ims-parser\build.xml:10
4: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at com.android.ant.RagelExecTask.execute(RagelExecTask.java:112)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
I looked into the RagelExecTask file (present inside anttasks_ragel.jar) and
the last line in this code snippet (line 112 in the file) is causing this
issue. Can anybody suggest what best can be done to fix this error.
String mFileName = next.toString();
int mOutFileIdx = mFileName.lastIndexOf("/src/");
String mOutFile = mFileName.substring(mOutFileIdx + 5);
mOutFile = mOutFile.replaceFirst(".rl$", ".java");
String mOutDir = mOutFile.substring(0, mOutFile.lastIndexOf("/"));
Original comment by uresh.ku...@gmail.com
on 12 Dec 2013 at 9:04
In response to the last post:
The developers introduced a bug by assuming that the code would only be
compiled on systems where "/" is the path delimiter. I am also trying to build
it on Windows. I first decompiled the jar. Then I modified the code to use "\"
when the string contains "\" and "/" when the string does not. When I
recompiled and replaced the jar with this modification, the ragel step ran
successfully.
I know this is a year late, but if you are still interested, I can post more
detailed instructions.
Original comment by felipet1...@gmail.com
on 4 Nov 2014 at 7:16
Original issue reported on code.google.com by
fcgrava...@gmail.com
on 18 Apr 2012 at 10:44