This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling with Ant Task


Hello!
When I try to perform something like this this (I use Ant with eclipse):

<target name="kawa_compile" description="Compiling .scm -> .class">
<java fork="true" classpathref="compile.classpath" classname="kawa.repl">
<arg line="--main -C ${myfile_name}"/>
</java>
</target>


I get following:

Buildfile: D:\___\_jME_11\TestOfTests2\Kawa_compile_run.xml
kawa_compile:
[java] Internal error while compiling src\test.scm
[java] java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
[java] \
[java] ^
[java] at java.util.regex.Pattern.error(Pattern.java:1700)
[java] at java.util.regex.Pattern.compile(Pattern.java:1453)
[java] at java.util.regex.Pattern.<init>(Pattern.java:1130)
[java] at java.util.regex.Pattern.compile(Pattern.java:822)
[java] at java.lang.String.replaceAll(String.java:2190)
[java] at gnu.expr.ModuleExp.classFor(ModuleExp.java:489)
[java] at gnu.expr.ModuleManager.find(ModuleManager.java:47)
[java] at kawa.repl.compileFiles(repl.java:743)
[java] at kawa.repl.processArgs(repl.java:426)
[java] at kawa.repl.main(repl.java:828)
[java] Java Result: -1
BUILD SUCCESSFUL
Total time: 3 seconds


What's wrong?


Thanks.


Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]