Révision 3809
TXM/trunk/bundles/org.txm.analec.rcp/src/org/txm/annotation/urs/InstallURSFiles.java (revision 3809) | ||
---|---|---|
48 | 48 |
} |
49 | 49 |
File scriptsDirectory = new File(txmhomedir, "scripts/groovy"); |
50 | 50 |
File userDirectory = new File(scriptsDirectory, "user"); |
51 |
File systemDirectory = new File(scriptsDirectory, "system"); |
|
51 | 52 |
File macroDirectory = new File(userDirectory, "org/txm/macro"); |
53 |
File macroDirectory2 = new File(systemDirectory, "org/txm/macro"); |
|
52 | 54 |
File URSMacroDirectory = new File(macroDirectory, "urs"); |
55 |
File URSMacroDirectory2 = new File(systemDirectory, "org/txm/macro/urs"); |
|
53 | 56 |
|
54 | 57 |
String bundle_id = "org.txm.annotation.urs.rcp"; |
55 | 58 |
|
... | ... | |
60 | 63 |
// |
61 | 64 |
// URSMacroDirectory.renameTo(backDirectory); |
62 | 65 |
|
63 |
InstallGroovyFiles.backupFiles(URSMacroDirectory, userDirectory.getParentFile(), bundle_id);
|
|
66 |
InstallGroovyFiles.backupFiles(URSMacroDirectory, URSMacroDirectory2, systemDirectory.getParentFile());
|
|
64 | 67 |
|
65 | 68 |
DeleteDir.deleteDirectory(URSMacroDirectory); |
66 | 69 |
} |
67 | 70 |
|
68 | 71 |
|
69 | 72 |
BundleUtils.copyFiles(bundle_id, "src/", "org/txm/macro", "urs", macroDirectory, true); |
73 |
BundleUtils.copyFiles(bundle_id, "src/", "org/txm/macro", "urs", macroDirectory2, true); |
|
70 | 74 |
|
71 | 75 |
// saving current version |
72 | 76 |
// URSPreferences.getInstance().put(URSPreferences.VERSION, currentVersion.toString()); |
Formats disponibles : Unified diff