ó âqLc @sýdZdZddlZddlZddlZddlZddlmZddl m Z ddl Zd„Z d„Z ejjdd ƒZejjd ed e d ejjjd ejjjƒZdefd„ƒYZd„Zd„Zd„ZdS(sÕSCons.Tool.javac Tool-specific initialization for javac. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. s=src/engine/SCons/Tool/javac.py 5023 2010/06/14 22:05:46 sconsiÿÿÿÿN(t _my_normcase(tparse_java_filecCstjj|ƒjtjdƒS(s1Turn a string (path name) into a Java class name.t.(tostpathtnormpathtreplacetsep(R((s`/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/javac.pyt classname,scsÉ|jddƒ}|jddƒ}|djtjjjƒ|d}|djƒjƒ}t|tjjj ƒrˆ|j j ƒ}n@t|tjjjƒr¯|j ƒ}ntj j d|jƒ‚g}t|ƒ‰x |D]} | jƒjƒ} t| tjjj ƒr!|j| ƒqát| tjjjƒrËtjjƒ} | j ƒ‰‡‡fd†} x6tjˆjƒƒD]\} } }| | | |ƒq|W| j| | ƒ|jt| jƒƒƒqátj j d| jƒ‚qáW|jdd ƒ}g}x¼|D]´}g}t}d }|jƒsöt|jƒjƒ|ƒ\}}|röt}|r|dj|ƒ}|tj}n|d}d }x_|D]T}|j ||ƒ}||j _!||j _"t#||ƒ|j _$|j|ƒq˜Wqön|r|j%t&|ƒ }|r9|dj|ƒj ||ƒ}n|dj ||ƒ}||j _!|j |j _"t#|ƒ|j _$|j|ƒnx|D]}|j'|gƒq”W|j|ƒqW||fS( saCreate and return lists of source java files and their corresponding target class files. t JAVASUFFIXs.javatJAVACLASSSUFFIXs.classis)Java source must be File or Dir, not '%s'c s„tg|D]!}t|ƒjˆƒr |^q ƒ}ˆj|ƒ}g|D]}|j|ƒ^qJ}x|D]}t||R?R@t for_signatureR((s`/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/javac.pyt__call__”s   N(t__name__t __module__t__doc__R3R_Rd(((s`/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/javac.pyRZŠs c Osftjj|ƒs|g}ntjj|ƒs<|g}n||dgt|ƒt|ƒ}|jdƒ}g}xét||ƒD]Ø\}}t|tjjj ƒrÚt|tjjj ƒrÎ|j } qB|j } nht jj|ƒrø|j } nJt jj|ƒr|j } n,|t|ƒ |kr9|j } n |j } |j| ||||Žƒq†W|S(sX A pseudo-Builder wrapper around the separate JavaClass{File,Dir} Builders. iÿÿÿÿs $JAVASUFFIX(R R,R`R<tsubsttzipR%R!R"tBaseRt JavaClassFilet JavaClassDirRRtisfiletisdirR0( R@R>R?targstkwRARHRSRDtb((s`/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Tool/javac.pytJava¡s*  %       cCstjj|ƒ}tjj|ƒ}tjj|ƒ}|jdtƒ|j|jdƒtƒt|_ |j t ƒd|d s&       S $