Changeset 5170


Ignore:
Timestamp:
Oct 29, 2009, 12:39:33 PM (12 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1378: Base1PluginExecuter should link the result directory with the transformation

The common root name is truncated off the link names making it easier to read in the GUI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/core/net/sf/basedb/plugins/Base1PluginExecuter.java

    r5169 r5170  
    13631363  {
    13641364    checkInterrupted();
     1365    String root = homeDirectory.getPath().toString();
     1366    AnyToAny ata = AnyToAny.getNew(dc, trans, homeDirectory, "./", false);
     1367    dc.saveItem(ata);
    13651368    for(File f : homeDirectory.getFiles().list(dc))
    13661369    {
    1367       AnyToAny ata = AnyToAny.getNew(dc, trans, f, f.getPath().toString(), false);
     1370      ata = AnyToAny.getNew(dc, trans, f, f.getPath().toString().replace(root, "."), false);
    13681371      dc.saveItem(ata);
    13691372    }
    13701373    for(Directory d : homeDirectory.getSubDirectories().list(dc))
    13711374    {
    1372       AnyToAny ata = AnyToAny.getNew(dc, trans, d, d.getPath().toString(), false);
     1375      ata = AnyToAny.getNew(dc, trans, d, d.getPath().toString().replace(root, "."), false);
    13731376      dc.saveItem(ata);
    13741377    }
Note: See TracChangeset for help on using the changeset viewer.