From: alfred Date: Thu, 24 Aug 2006 04:19:53 +0000 (+0000) Subject: modify output path X-Git-Tag: edk2-stable201903~24496 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=99f70980b45c48cca790a0cd1034ec0d47db8364 modify output path git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1377 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/FirstPanel.java b/Tools/Source/MigrationTools/org/tianocore/migration/FirstPanel.java index 7241c1b331..c35077f0c4 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/FirstPanel.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/FirstPanel.java @@ -24,7 +24,7 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList */ private static final long serialVersionUID = 207759413522910399L; - private String modulepath; + private String startpath; private ModuleInfo mi; private JButton moduleButton, goButton, msaEditorButton, criticButton; @@ -171,13 +171,13 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList public void actionPerformed(ActionEvent e) { if ( e.getSource() == moduleButton ) { - modulepath = getFilepath("Please choose a starting path"); - moduletext.setText(modulepath); + startpath = getFilepath("Please choose a starting path"); + moduletext.setText(startpath); } if ( e.getSource() == goButton ) { try { - logfile = new PrintWriter(new BufferedWriter(new FileWriter(modulepath + File.separator + "migration.log"))); - ModuleInfo.triger(modulepath); + logfile = new PrintWriter(new BufferedWriter(new FileWriter(startpath.replaceAll(Common.strseparate, "$1") + File.separator + "migration.log"))); + ModuleInfo.triger(startpath); logfile.flush(); } catch (Exception en) { println(en.getMessage()); @@ -192,7 +192,7 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList } if ( e.getSource() == criticButton) { try { - Critic.fireAt(modulepath); + Critic.fireAt(startpath); } catch (Exception en) { println(en.getMessage()); }