Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8310] Exclude Git repository compiler.py

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2016-08-24T05:40:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTiAPI
Labelsgit, performance
ReporterMads Moller
AssigneeEric Merriman
Created2012-03-03T10:31:14.000+0000
Updated2017-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.

Comments

  1. Chris Barber 2016-08-24

    The old Python-based build scripts are no longer supported. No sense fixing this now.
  2. Lee Morris 2017-03-16

    Closing ticket as the issue won't fix.

JSON Source