Changeset 2289


Ignore:
Timestamp:
Jan 25, 2007, 9:22:59 PM (14 years ago)
Author:
yura
Message:

Class files are generated in the correct place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/java/org/refal/plus/wrapgen/WrapGen.java

    r2283 r2289  
    11package org.refal.plus.wrapgen;
     2import java.io.File;
    23import java.io.FileInputStream;
    34import java.io.FileOutputStream;
     
    4748                this.oldName = name;
    4849                this.oldType = Type.getType("L"+name+";");
    49                 this.newName = "org/refal/plus/javawrap/"+this.oldName;
     50                this.newName = "org/refal/plus/wrappers/"+this.oldName;
    5051                this.rfi = "";
    5152                super.visit(version, access, this.newName, signature, this.oldName, null);
     
    107108                                this.rfi = this.rfi+"s";
    108109                        }
    109                 this.rfi = this.rfi+";\n";
     110                this.rfi = this.rfi+"; // "+name+" "+desc+"\n";
    110111                mv.visitInsn(Opcodes.RETURN);
    111112
     
    214215                WrapGen wg = new WrapGen(cw);
    215216                cr.accept(wg, 0);
    216                 FileOutputStream outs1 = new FileOutputStream(wg.newName.replaceFirst(".*/", "")+".rfi");
     217                File dir = new File(wg.newName.substring(0, wg.newName.lastIndexOf('/')));
     218                dir.mkdirs();
     219                FileOutputStream outs1 = new FileOutputStream(wg.newName+".rfi");
    217220                outs1.write(wg.rfi.getBytes());
    218                 FileOutputStream outs2 = new FileOutputStream(wg.newName.replaceFirst(".*/", "")+".class");
     221                FileOutputStream outs2 = new FileOutputStream(wg.newName+".class");
    219222                outs2.write(cw.toByteArray());
    220223        }
Note: See TracChangeset for help on using the changeset viewer.