From 99f70980b45c48cca790a0cd1034ec0d47db8364 Mon Sep 17 00:00:00 2001 From: alfred Date: Thu, 24 Aug 2006 04:19:53 +0000 Subject: [PATCH] modify output path git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1377 6f19259b-4bc3-4df7-8a09-765794883524 --- .../org/tianocore/migration/FirstPanel.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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()); }