本文整理匯總了Python中Project.Project.unjar方法的典型用法代碼示例。如果您正苦於以下問題:Python Project.unjar方法的具體用法?Python Project.unjar怎麽用?Python Project.unjar使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Project.Project
的用法示例。
在下文中一共展示了Project.unjar方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Project
# 需要導入模塊: from Project import Project [as 別名]
# 或者: from Project.Project import unjar [as 別名]
# pass any directory from under your project, and this
# script will unjar its jars for you
import re, sys, os
currdir = os.getcwd()
sys.path.append(currdir)
from Project import Project
print sys.argv[1]
a = Project(sys.argv[1])
a.unjar()
示例2: Project
# 需要導入模塊: from Project import Project [as 別名]
# 或者: from Project.Project import unjar [as 別名]
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)
os.system("cp " + currdir + "/test/lib/commons-logging.jar /tmp/")
t = Project(currdir + "/./test")
print t.top_src_dir
t.unjar()
t = Project(currdir + "/./test")
print "top src dir " + t.top_src_dir
print t.find_file_for_thing("D", currdir + "/test/test/bla/B.java")
s = "/home/burak/kod/pocketbudda/src/java/com/pocketbudda/UserHandlerBean.java"
print re.sub(r'/\w*.java$',"/UserDao"+".java", s)
t = Project(currdir + "/./test")
s = t.find_file_for_thing("C", currdir + "/test/test/bla/B.java")
c = Class(t, s)
print c.list_all_public()
'''
# TBD activate after unjar is done