Changeset 3781 for devel-tools


Ignore:
Timestamp:
May 24, 2008, 2:16:02 PM (12 years ago)
Author:
yura
Message:
  • Creating bin forder if no one.
  • Corrected names of compiled modules (now '.' is used as delimiter).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.rfpdt.core/src/org/refal/rfpdt/core/RfpProject.java

    r3779 r3781  
    7676                        String[] paths = className.split("\\.");
    7777                        IPath path = javaProject.getOutputLocation();
     78                        IFolder folder = workspaceRoot.getFolder(path);
     79                        if (!folder.exists())
     80                            folder.create(IResource.FORCE, true, null);
    7881                        for (int i = 0; i < paths.length - 1; i++) {
    7982                            path = path.append(paths[i]);
    80                             IFolder folder = workspaceRoot.getFolder(path);
     83                            folder = workspaceRoot.getFolder(path);
    8184                            if (!folder.exists())
    82                                 folder.create(IResource.FORCE | IResource.DERIVED, false, null);
     85                                folder.create(IResource.FORCE | IResource.DERIVED, true, null);
    8386                        }
    8487                        classFile.create(new ByteArrayInputStream(bytes), IResource.FORCE | IResource.DERIVED, null);
Note: See TracChangeset for help on using the changeset viewer.