Back to index

enigmail  1.4.3
Classes | Functions | Variables
JarMaker Namespace Reference

Classes

class  ZipEntry
class  JarMaker

Functions

def getModTime
def main

Variables

 CreateHardLink = windll.kernel32.CreateHardLinkA
list __all__ = ['JarMaker']

Function Documentation

def JarMaker.getModTime (   aPath)

Definition at line 86 of file JarMaker.py.

00086 
00087 def getModTime(aPath):
00088   if not os.path.isfile(aPath):
00089     return 0
00090   mtime = os.stat(aPath).st_mtime
00091   return localtime(mtime)
00092 

Here is the caller graph for this function:

def JarMaker.main ( )

Definition at line 482 of file JarMaker.py.

00482 
00483 def main():
00484   jm = JarMaker()
00485   p = jm.getCommandLineParser()
00486   (options, args) = p.parse_args()
00487   jm.processIncludes(options.I)
00488   jm.outputFormat = options.f
00489   if options.e:
00490     jm.useChromeManifest = True
00491     jm.useJarfileManifest = False
00492   if options.bothManifests:
00493     jm.useChromeManifest = True
00494     jm.useJarfileManifest = True
00495   noise = logging.INFO
00496   if options.verbose is not None:
00497     noise = (options.verbose and logging.DEBUG) or logging.WARN
00498   if sys.version_info[:2] > (2,3):
00499     logging.basicConfig(format = "%(message)s")
00500   else:
00501     logging.basicConfig()
00502   logging.getLogger().setLevel(noise)
00503   topsrc = options.t
00504   topsrc = os.path.normpath(os.path.abspath(topsrc))
00505   if not args:
00506     jm.makeJar(infile=sys.stdin,
00507                sourcedirs=options.s, topsourcedir=topsrc,
00508                localedirs=options.l10n_src,
00509                jardir=options.j)
00510   else:
00511     jm.makeJars(args, options.l10n_base,
00512                 jardir=options.j,
00513                 sourcedirs=options.s, topsourcedir=topsrc,
00514                 localedirs=options.l10n_src)


Variable Documentation

Definition at line 63 of file JarMaker.py.

JarMaker.CreateHardLink = windll.kernel32.CreateHardLinkA

Definition at line 61 of file JarMaker.py.