Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-dev] What is mean by artifact.size in artifact.xml generated inside p2 repo

Hi all,

I am trying to understand how the p2 plugin actually works and tried a small scenario where few features and bundles were installed to the p2-repo. When the p2-repo generation was successful I found out a`artifact.xml` file located inside the artifact.jar. ( please find my artifact.xml below).

By observing the details, I was able to found out that   <property name='download.size' value='10222'/> is showing the actual size of my artifact while <property name='download.contentType' value='application/zip'/>  is showing the type of the artifact. What is shown by  <property name='artifact.size' value='4096'/>  ?

Why is it simillar in most of the entries?. 

Thank you,
--
Regards,
Kasun Siyambalapitiya
Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
Tel : 0715523466

<?xml version='1.0' encoding='UTF-8'?>
<?artifactRepository version='1.1.0'?>
<repository name='wso2carbon-kernel-test' type='org.eclipse.equinox.p2.artifact.repository.simpleRepository' version='1'>
  <properties size='2'>
    <property name='p2.timestamp' value='1499935161085'/>
    <property name='p2.compressed' value='true'/>
  </properties>
  <mappings size='3'>
    <rule filter='(&amp; (classifier=osgi.bundle))' output='${repoUrl}/plugins/${id}_${version}.jar'/>
    <rule filter='(&amp; (classifier=binary))' output='${repoUrl}/binary/${id}_${version}'/>
    <rule filter='(&amp; (classifier=org.eclipse.update.feature))' output='${repoUrl}/features/${id}_${version}.jar'/>
  </mappings>
  <artifacts size='8'>
    <artifact classifier='org.eclipse.update.feature' id='org.wso2.carbon.pax.exam' version='5.2.0.0'>
      <properties size='3'>
        <property name='artifact.size' value='4096'/>
        <property name='download.size' value='10222'/>
        <property name='download.contentType' value='application/zip'/>
      </properties>
    </artifact>
    <artifact classifier='org.eclipse.update.feature' id='org.wso2.carbon.c5.extending' version='5.2.0.0'>
      <properties size='3'>
        <property name='artifact.size' value='4096'/>
        <property name='download.size' value='10290'/>
        <property name='download.contentType' value='application/zip'/>
      </properties>
    </artifact>
    <artifact classifier='osgi.bundle' id='sample-bundle3' version='5.2.0.0'>
      <properties size='3'>
        <property name='artifact.size' value='8492'/>
        <property name='download.size' value='8492'/>
        <property name='download.md5' value='f9fbcb7fd7ca9d78ed7f9ae89b1efd17'/>
      </properties>
    </artifact>
    <artifact classifier='osgi.bundle' id='sample-bundle2' version='5.2.0.0'>
      <properties size='3'>
        <property name='artifact.size' value='8504'/>
        <property name='download.size' value='8504'/>
        <property name='download.md5' value='05dd906e6ca43db3b04770e2de7cb084'/>
      </properties>
    </artifact>
    <artifact classifier='osgi.bundle' id='org.ops4j.base.lang' version='1.5.0'>
      <properties size='3'>
        <property name='artifact.size' value='6660'/>
        <property name='download.size' value='6660'/>
        <property name='download.md5' value='591a299d967f24eba6f78dc70006985b'/>
      </properties>
    </artifact>
    <artifact classifier='osgi.bundle' id='org.ops4j.base.monitors' version='1.5.0'>
      <properties size='3'>
        <property name='artifact.size' value='8210'/>
        <property name='download.size' value='8210'/>
        <property name='download.md5' value='a3aeb86f71f4e0e557b4e1035734deee'/>
      </properties>
    </artifact>
    <artifact classifier='osgi.bundle' id='sample-bundle1' version='5.2.0.0'>
      <properties size='3'>
        <property name='artifact.size' value='8494'/>
        <property name='download.size' value='8494'/>
        <property name='download.md5' value='251b454e623674051bba79b7e6de254d'/>
      </properties>
    </artifact>
    <artifact classifier='org.eclipse.update.feature' id='org.wso2.carbon.c5.sample' version='5.2.0.0'>
      <properties size='3'>
        <property name='artifact.size' value='4096'/>
        <property name='download.size' value='10292'/>
        <property name='download.contentType' value='application/zip'/>
      </properties>
    </artifact>
  </artifacts>
</repository>

Back to the top