ok

Mini Shell

Direktori : /proc/self/root/usr/lib/python2.7/site-packages/javapackages/
Upload File :
Current File : //proc/self/root/usr/lib/python2.7/site-packages/javapackages/pom.pyo

�
#
yRc@sFddlmZmZdefd��YZdefd��YZdS(i����(tElementTreet	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_commentststrip_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(RtxpathtdicttlentreplaceR(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<module>!s

Zerion Mini Shell 1.0