summaryrefslogtreecommitdiff
path: root/Tools/Source
diff options
context:
space:
mode:
authoralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-24 04:19:53 +0000
committeralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-24 04:19:53 +0000
commit99f70980b45c48cca790a0cd1034ec0d47db8364 (patch)
tree2c8311257550dbf5c326b4820b864715532e2d68 /Tools/Source
parent969afc266e3b3b10f6c2435ff44fdc40f1c66874 (diff)
downloadedk2-99f70980b45c48cca790a0cd1034ec0d47db8364.zip
edk2-99f70980b45c48cca790a0cd1034ec0d47db8364.tar.gz
edk2-99f70980b45c48cca790a0cd1034ec0d47db8364.tar.bz2
modify output path
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1377 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source')
-rw-r--r--Tools/Source/MigrationTools/org/tianocore/migration/FirstPanel.java12
1 files 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 7241c1b..c35077f 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());
}