Beispiel #1
0
print a.get_dir_from_filename("/home/burak/Test.java")

os.system('mkdir /tmp/test')
os.system('mkdir /tmp/test/bla')
os.system('mkdir /tmp/test/bla/bla')
cmd = 'echo "sourcepath \\"asdasf\\"\" > /tmp/test/prj.el'
os.system(cmd)

print a.find_prj_el("/tmp/test/bla/bla")

try:
    print a.find_prj_el("/tmp")
except Exception:
    print "exception raised"

print a.get_src_dir(currdir + "/./test")

t = Project(currdir + "/./test")
print "top src dir " + t.top_src_dir
print t.find_all_descendants("A")

print t.run_command('ls')

t = Project(currdir + "/./test")
print "top src dir " + t.top_src_dir
print t.find_file_for_thing("C", currdir + "/test/test/bla/B.java")

t = Project(currdir + "/./test")
print "top src dir " + t.top_src_dir
type, pos = t.find_declaration_type("anani", currdir + "/test/test/bla/B.java",
                                    423)
Beispiel #2
0
print a.get_dir_from_filename("/home/burak/Test.java")

os.system('mkdir /tmp/test')
os.system('mkdir /tmp/test/bla')
os.system('mkdir /tmp/test/bla/bla')
cmd = 'echo "sourcepath \\"asdasf\\"\" > /tmp/test/prj.el'
os.system(cmd)

print a.find_prj_el("/tmp/test/bla/bla")

try:
    print a.find_prj_el("/tmp")
except Exception:
    print "exception raised"

print a.get_src_dir(currdir + "/./test")

t = Project(currdir + "/./test")
print "top src dir " + t.top_src_dir
print t.find_all_descendants("A")

print t.run_command('ls')

t = Project(currdir + "/./test")
print "top src dir " + t.top_src_dir
print t.find_file_for_thing("C", currdir + "/test/test/bla/B.java")

t = Project(currdir + "/./test")
print "top src dir " + t.top_src_dir
type, pos = t.find_declaration_type("anani", currdir + "/test/test/bla/B.java", 423)