[TIMOB-8310] Exclude Git repository compiler.py
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2016-08-24T05:40:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | TiAPI |
Labels | git, performance |
Reporter | Mads Moller |
Assignee | Eric Merriman |
Created | 2012-03-03T10:31:14.000+0000 |
Updated | 2017-03-16T21:34:22.000+0000 |
Description
The iPhone building process is getting very heavy if you have multiple git repositories in the project.
I changed the build compiler.py so its does not link the ".git" folders.
check out: http://developer.appcelerator.com/question/132241/stop-ios-simulator-startup-git-linking
#line 145
def softlink_resources(source,target,use_ignoreDirs=True):
if not os.path.exists(target):
os.makedirs(target)
for file in os.listdir(source):
if (use_ignoreDirs and (file in ignoreDirs)) or (file in ignoreFiles):
continue
from_ = os.path.join(source, file)
to_ = os.path.join(target, file)
if os.path.isdir(from_):
#NAPP CMS - start custom code
if re.match(r"^.*\.git.*$", from_):
print "[EXCLUDING] git repository: %s" % (from_)
continue
else:
#NAPP CMS - end custom code
print "[DEBUG] creating: %s" % (to_)
softlink_resources(from_,to_,False)
else:
print "[DEBUG] linking: %s to %s" % (from_,to_)
if os.path.exists(to_):
if os.path.islink(to_):
os.remove(to_)
os.symlink(from_, to_)
else:
os.symlink(from_, to_)
I hope you can use it.
The old Python-based build scripts are no longer supported. No sense fixing this now.
Closing ticket as the issue won't fix.