FlattenedSDD.xml

From Eclipsepedia

Jump to: navigation, search
<?xml version="1.0" encoding="ASCII"?>
<Logicalresoucecombination:Logicalresoucecombination xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:Logicalresoucecombination="http://www.ibm.com/Logicalresoucecombination"
    xmlns:ca="http://www.schema.changeanalyzer.sdd.ibm.com/Logicalresoucecombination"
    xmlns:deploymentDescriptor="http://docs.oasis-open.org/sdd/1/0/deploymentDescriptor"
    xmlns:sdd-dd="http://docs.oasis-open.org/sdd/ns/deploymentDescriptor" xmlns:starterProfile="http://docs.oasis-open.org/sdd/ns/starterProfile" xsi:type="ca:LogicalResourceCombinationListType">
  <ca:UniqueResources>
    <ca:UniqueResource LogicalCombinationResourceId="os1" sDDResourceIDReference="os">
      <ca:Property>
        <sdd-dd:PropertyName>starterProfile:CIM_OperatingSystem.OSType</sdd-dd:PropertyName>
        <sdd-dd:Value>LINUX</sdd-dd:Value>
      </ca:Property>
      <ca:Version>
        <sdd-dd:Supported>
          <sdd-dd:Range>
            <sdd-dd:MinVersion>5.0</sdd-dd:MinVersion>
          </sdd-dd:Range>
        </sdd-dd:Supported>
      </ca:Version>
    </ca:UniqueResource>
    <ca:UniqueResource LogicalCombinationResourceId="os2" sDDResourceIDReference="os">
      <ca:Property>
        <sdd-dd:PropertyName>starterProfile:CIM_OperatingSystem.OSType</sdd-dd:PropertyName>
        <sdd-dd:Value>Windows XP</sdd-dd:Value>
      </ca:Property>
      <ca:Version>
        <sdd-dd:Supported>
          <sdd-dd:Range>
            <sdd-dd:MinVersion>5.1.2600 SP2</sdd-dd:MinVersion>
          </sdd-dd:Range>
        </sdd-dd:Supported>
      </ca:Version>
    </ca:UniqueResource>
    <ca:UniqueResource LogicalCombinationResourceId="filesystem1" sDDResourceIDReference="filesystem">
      <ca:Consumption>
        <sdd-dd:PropertyName>starterProfile:CIM_FileSystem.AvailableSpace</sdd-dd:PropertyName>
        <sdd-dd:Value unit="512-blocks">2000</sdd-dd:Value>
      </ca:Consumption>
      <ca:Property>
        <sdd-dd:PropertyName>HostedBy</sdd-dd:PropertyName>
        <sdd-dd:Value>os</sdd-dd:Value>
      </ca:Property>
    </ca:UniqueResource>
    <ca:UniqueResource LogicalCombinationResourceId="installDir1" sDDResourceIDReference="installDir">
      <ca:Property>
        <sdd-dd:PropertyName>starterProfile:CIM_Directory.Root</sdd-dd:PropertyName>
        <sdd-dd:Value>$(installLocation)</sdd-dd:Value>
      </ca:Property>
      <ca:Property>
        <sdd-dd:PropertyName>HostedBy</sdd-dd:PropertyName>
        <sdd-dd:Value>filesystem</sdd-dd:Value>
      </ca:Property>
      <ca:Property>
        <sdd-dd:PropertyName>starterProfile:CIM_Directory.Writable</sdd-dd:PropertyName>
        <sdd-dd:Value>true</sdd-dd:Value>
      </ca:Property>
    </ca:UniqueResource>
  </ca:UniqueResources>
  <ca:Artifacts>
    <ca:Artifact contentRef="cosmosAppZip" type="zip" ArtifactId="Artifact1" ArtifactType="install">
      <sdd-dd:Arguments>
        <sdd-dd:Argument name="installloc" value="$(installLocation)"/>
      </sdd-dd:Arguments>
    </ca:Artifact>
  </ca:Artifacts>
  <ca:Variables>
    <ca:Variable>
      <deploymentDescriptor:Description/>
      <ca:SDDVariableID>installLocation</ca:SDDVariableID>
      <ca:Value>$(installLocation0)</ca:Value>
      <ca:DefaultValue>$(installRoot)/COSMOS/1.0</ca:DefaultValue>
      <ca:Type>Parameter</ca:Type>
    </ca:Variable>
    <ca:Variable variableId="installRoot1">
      <deploymentDescriptor:Description/>
      <ca:SDDVariableID>installRoot</ca:SDDVariableID>
      <ca:Value>/opt</ca:Value>
      <ca:Type>ConditionalDerivedVariable</ca:Type>
    </ca:Variable>
    <ca:Variable variableId="installRoot2">
      <deploymentDescriptor:Description/>
      <ca:SDDVariableID>installRoot</ca:SDDVariableID>
      <ca:Value>%ProgramFiles%</ca:Value>
      <ca:Type>ConditionalDerivedVariable</ca:Type>
    </ca:Variable>
  </ca:Variables>
  <ca:LogicalResourceCombinations>
    <ca:LogicalResourceCombination LogicalResourceCombinationId="LogicalResourceCombination1">
      <ca:CombinationResources>
        <ca:LogicalCombinationResource>os1</ca:LogicalCombinationResource>
        <ca:LogicalCombinationResource>filesystem1</ca:LogicalCombinationResource>
        <ca:LogicalCombinationResource>installDir1</ca:LogicalCombinationResource>
      </ca:CombinationResources>
      <ca:CombinationConsumption>
        <ca:ResourcePropertyConsumption resourceReference="filesystem">
          <ca:PropertyName>http://docs.oasis-open.org/sdd/ns/starterProfile#CIM_FileSystem.AvailableSpace</ca:PropertyName>
          <ca:Value>2000</ca:Value>
          <ca:Unit>512-blocks</ca:Unit>
        </ca:ResourcePropertyConsumption>
      </ca:CombinationConsumption>
    </ca:LogicalResourceCombination>
    <ca:LogicalResourceCombination LogicalResourceCombinationId="LogicalResourceCombination2">
      <ca:CombinationResources>
        <ca:LogicalCombinationResource>os2</ca:LogicalCombinationResource>
        <ca:LogicalCombinationResource>filesystem1</ca:LogicalCombinationResource>
        <ca:LogicalCombinationResource>installDir1</ca:LogicalCombinationResource>
      </ca:CombinationResources>
      <ca:CombinationConsumption>
        <ca:ResourcePropertyConsumption resourceReference="filesystem">
          <ca:PropertyName>http://docs.oasis-open.org/sdd/ns/starterProfile#CIM_FileSystem.AvailableSpace</ca:PropertyName>
          <ca:Value>2000</ca:Value>
          <ca:Unit>512-blocks</ca:Unit>
        </ca:ResourcePropertyConsumption>
      </ca:CombinationConsumption>
    </ca:LogicalResourceCombination>
  </ca:LogicalResourceCombinations>
  <ca:Completions/>
</Logicalresoucecombination:Logicalresoucecombination>