diff --git a/tools/eclipse/BUCK b/tools/eclipse/BUCK index a609771e74..4e752e9e13 100644 --- a/tools/eclipse/BUCK +++ b/tools/eclipse/BUCK @@ -38,26 +38,26 @@ java_library( genrule( name = '_project', - cmd = '$(exe :gen_project) $OUT', + cmd = '$(exe :gen_project)', deps = [':gen_project'], - out = 'project', + out = '__fake.project__', ) genrule( name = '_classpath', - cmd = '$(exe :gen_classpath) $OUT $DEPS', + cmd = '$(exe :gen_classpath)', deps = [ ':classpath', ':gen_classpath', ], - out = 'classpath', + out = '__fake.classpath__', ) genrule( name = '_classpath_nocompile', cmd = '$(exe :gen_classpath)', deps = [':gen_classpath'], - out = '__fake.eclipse__', + out = '__fake.classpath__', ) python_binary( diff --git a/tools/eclipse/gen_classpath.py b/tools/eclipse/gen_classpath.py index 3b5f09d745..241a876c23 100755 --- a/tools/eclipse/gen_classpath.py +++ b/tools/eclipse/gen_classpath.py @@ -15,13 +15,12 @@ # # TODO(sop): Remove hack after Buck supports Eclipse -from os import path, symlink +from os import path import re from subprocess import Popen, PIPE from sys import argv from xml.dom import minidom -OUT = argv[1] if len(argv) >= 2 else None ROOT = path.abspath(__file__) for _ in range(0, 3): ROOT = path.dirname(ROOT) @@ -117,5 +116,3 @@ classpathentry('output', 'buck-out/classes') p = path.join(ROOT, '.classpath') with open(p, 'w') as fd: doc.writexml(fd, addindent = ' ', newl = '\n', encoding='UTF-8') -if OUT: - symlink(p, OUT) diff --git a/tools/eclipse/gen_project.py b/tools/eclipse/gen_project.py index 53593c0f01..d42d43c87b 100755 --- a/tools/eclipse/gen_project.py +++ b/tools/eclipse/gen_project.py @@ -17,10 +17,9 @@ from __future__ import print_function -from os import path, symlink +from os import path from sys import argv -OUT = argv[1] ROOT = path.abspath(__file__) for _ in range(0, 3): ROOT = path.dirname(ROOT) @@ -41,4 +40,3 @@ with open(p, 'w') as fd: \ """, file=fd) -symlink(p, OUT)