ó # yRc@sFddlmZmZdefd„ƒYZdefd„ƒYZdS(iÿÿÿÿ(t ElementTreet XMLParsertPomLoadingExceptioncBseZRS((t__name__t __module__(((s4/usr/lib/python2.7/site-packages/javapackages/pom.pyR#stPOMcBs\eZdZd„Zd„Zed„ƒZed„ƒZed„ƒZed„ƒZ RS(sV Class for querying basic information from pom.xml files used by Apache Maven cCsXtƒ}tdtdtƒ}|j|d|ƒ|_|jdkrTtdƒ‚ndS(Ntremove_commentst strip_cdatatparsers*Failed to load pom.xml. You have a problem(RRtTruetparset _POM__doctNoneR(tselftpathtetR((s4/usr/lib/python2.7/site-packages/javapackages/pom.pyt__init__*s    cCs}|jj|dtddƒƒ}t|ƒdkrT|jj|jddƒƒ}nt|ƒdkrs|d}nd}|S(Nt namespacestpoms!http://maven.apache.org/POM/4.0.0ispom:t(R txpathtdicttlentreplaceR (R Rtret((s4/usr/lib/python2.7/site-packages/javapackages/pom.pyt__find4s!! cCsÀ|jdƒ}|dkr-|jdƒ}n|dkrw|jdƒ}|dk rd|jd}n|dk rw|Sn|dkr’tdƒ‚nt|ƒdkr³tdƒ‚n|jjƒS( sZ Effective groupId of the pom Artifact taking into account parent groupId s ./pom:groupIds./pom:parent/pom:groupIds/ivy-module/infot organisationsUnable to determine groupIdis$Unexpected child nodes under groupIdN(t _POM__findR tattribRRttexttstrip(R tgId((s4/usr/lib/python2.7/site-packages/javapackages/pom.pytgroupId@s     cCs¢|jdƒ}|dkrY|jdƒ}|dk rF|jd}n|dk rY|Sn|dkrttdƒ‚nt|ƒdkr•tdƒ‚n|jjƒS(s: Effective artifactId of the pom Artifact s./pom:artifactIds/ivy-module/infotmodulesUnable to determine artifactIDis'Unexpected child nodes under artifactIdN(RR RRRRR(R taId((s4/usr/lib/python2.7/site-packages/javapackages/pom.pyt artifactIdTs    cCsÀ|jdƒ}|dkr-|jdƒ}n|dkrw|jdƒ}|dk rd|jd}n|dk rw|Sn|dkr’tdƒ‚nt|ƒdkr³tdƒ‚n|jjƒS( sb Effective version of the pom Artifact taking into account parent version s ./pom:versions./pom:parent/pom:versions/ivy-module/infotrevisions$Unable to determine artifact versionis$Unexpected child nodes under versionN(RR RRRRR(R tversion((s4/usr/lib/python2.7/site-packages/javapackages/pom.pyR%fs     cCsl|jdƒ}|dk rIt|ƒdkr<tdƒ‚n|jjƒS|jdƒ}|dk rhdSdS(sC Packaging type of artifact or None if unspecified s./pom:packagingis&Unexpected child nodes under packagings/ivy-module/infotivyN(RR RRRR(R tp((s4/usr/lib/python2.7/site-packages/javapackages/pom.pyt packaging{s   ( RRt__doc__RRtpropertyR R#R%R((((s4/usr/lib/python2.7/site-packages/javapackages/pom.pyR&s N(t lxml.etreeRRt ExceptionRtobjectR(((s4/usr/lib/python2.7/site-packages/javapackages/pom.pyt!s