Permalink
Browse files

Fix class names in jar files w/new kilim

  • Loading branch information...
1 parent cfb0d1b commit 46a9222e74f7d1b574dfa313b80aa8b50ec7b194 @krestenkrab krestenkrab committed Aug 16, 2013
Showing with 6 additions and 2 deletions.
  1. +2 −1 .classpath
  2. +2 −0 .gitignore
  3. +2 −1 src/main/java/erjang/beam/CompilerVisitor.java
View
@@ -6,8 +6,9 @@
<classpathentry kind="lib" path="lib/OtpErlang.jar"/>
<classpathentry kind="lib" path="lib/antlr-3.2.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
- <classpathentry kind="lib" path="lib/kilim-0.6-krab.jar" sourcepath="/kilim-erjang/src"/>
<classpathentry kind="lib" path="lib/js.jar"/>
<classpathentry kind="lib" path="lib/clj-ds.jar"/>
+ <classpathentry kind="lib" path="lib/asm-all-4.1.jar"/>
+ <classpathentry kind="lib" path="lib/kilim.jar" sourcepath="/kilim"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
View
@@ -11,3 +11,5 @@ src/test/java/erjang/*_TEST.java
otp-*.jar
erjang.log*
*.launch
+*.rej
+*.orig
@@ -701,7 +701,8 @@ public void visitEnd() {
for (ClassInfo ci : w.getClassInfos()) {
try {
// System.out.println("> storing "+ci.className);
- classRepo.store(ci.className, ci.bytes);
+ String iname = ci.className.replace('.', '/');
+ classRepo.store(iname, ci.bytes);
} catch (IOException e) {
e.printStackTrace();
}

0 comments on commit 46a9222

Please sign in to comment.