Changeset 3729
- Timestamp:
- Sep 13, 2007, 4:08:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4-stable/src/plugins/core/net/sf/basedb/plugins/Base1PluginExecuter.java
r3727 r3729 607 607 File stdin = null; 608 608 File stdout = null; 609 Transformation trans = null; 609 610 try 610 611 { … … 613 614 getConfigureJobParameters(); 614 615 615 Transformation trans = null;616 616 617 617 //Export … … 704 704 return; 705 705 } 706 707 //Clean up 706 } 707 finally 708 { 709 if (dc != null) 710 { 711 dc.commit(); 712 dc.close(); 713 } 714 } 715 716 //Clean up 717 try 718 { 719 dc = sc.newDbControl(); 708 720 if (!Values.getBoolean(String.valueOf(configuration.getValue(leaveStdinParameter.getName())))) 709 721 { 710 dc.deleteItem(stdin); 722 if (stdin != null) 723 { 724 stdin = File.getById(dc, stdin.getId()); 725 if (trans != null) 726 { 727 trans = Transformation.getById(dc, trans.getId()); 728 AnyToAny ata = AnyToAny.getByName(dc, trans, stdin.getPath().toString()); 729 dc.deleteItem(ata); 730 } 731 dc.deleteItem(stdin); 732 } 711 733 } 712 734 if (!Values.getBoolean(String.valueOf(configuration.getValue(leaveStdoutParameter.getName())))) 713 735 { 714 dc.deleteItem(stdout); 736 if (stdout != null) 737 { 738 stdout = File.getById(dc, stdout.getId()); 739 if (trans != null) 740 { 741 trans = Transformation.getById(dc, trans.getId()); 742 AnyToAny ata = AnyToAny.getByName(dc, trans, stdout.getPath().toString()); 743 dc.deleteItem(ata); 744 } 745 dc.deleteItem(stdout); 746 } 715 747 } 716 748 }
Note: See TracChangeset
for help on using the changeset viewer.