aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-01-14 17:32:40 +0000
committerjhugunin <jhugunin>2003-01-14 17:32:40 +0000
commit08c86843265088699f88a4fedc4c78c5d7081d6a (patch)
tree91e94327272bd3fd79daa24cffacf6619434b195 /org.aspectj.ajdt.core
parent5641e01efbe55537c00e1f97759d7054eeb7185c (diff)
downloadaspectj-08c86843265088699f88a4fedc4c78c5d7081d6a.tar.gz
aspectj-08c86843265088699f88a4fedc4c78c5d7081d6a.zip
fixed initial implementor for code written in 2002 to be just PARC, not Xerox/PARC
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/scripts/file_replace.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/scripts/file_replace.py b/org.aspectj.ajdt.core/scripts/file_replace.py
new file mode 100644
index 000000000..60f3986ab
--- /dev/null
+++ b/org.aspectj.ajdt.core/scripts/file_replace.py
@@ -0,0 +1,31 @@
+import os, string
+
+DIR = "c:\\eclipse\\workspace\\weaver"
+
+old_text = "declare dominates:"
+
+new_text = "declare precedence:"
+
+
+def doit(arg, dirname, filenames):
+ for name in filenames:
+ fullname = os.path.join(dirname, name)
+ if os.path.isfile(fullname):
+ do_replace(fullname)
+
+def do_replace(filename):
+ if filename.endswith(".py"): return
+
+ s = open(filename, 'r')
+ text = s.read()
+ s.close()
+
+ if string.find(text, old_text) == -1:
+ return
+
+ s = open(filename, 'w')
+ s.write(text.replace(old_text, new_text))
+ s.close()
+
+ print "changed", filename
+os.path.walk(DIR, doit, None)