Skip to content

Example Tycho Project to enforce wrong formatted feature.xmls

Notifications You must be signed in to change notification settings

mlemnian/helloworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example Tycho Project to enforce wrong formatted feature.xmls

This small project demonstrates that the Tycho-Plugins (1.2.0) have a problem to generate source-feature.xmls with correct tag order.

General Information

The project consists of two features:

  1. xxx.feature.a (that contains plugin xxx.plugin.a)

  2. xxx.feature.b (that contains plugin xxx.plugin.b)

Furthermore, there is a ``dependency'' between xxx.feature.a and xxx.feature.b (xxx.feature.a includes xxx.feature.b)

How To Build

cd xxx.main.build
mvn clean install

Results

Goto central/eclipse/features/xxx.feature.a/target/sources-feature/feature.xml

expected result actual result
<?xml version="1.0" encoding="UTF-8"?>
<feature id="xxx.feature.a.source" version="..." label="..." provider-name="xxx">
   <description url="...">
      [Enter Feature Description here.]
   </description>
   <copyright url="...">
      [Enter Copyright Description here.]
   </copyright>
   <license url="...">
      [Enter License Description here.]
   </license>
   <includes id="xxx.feature.a" version="7.0.0.002"/>
   <includes id="xxx.feature.b.source" version="7.0.0.003"/>
  <plugin id="xxx.plugin.a.source" version="7.0.0.001" download-size="0" install-size="0" unpack="false"/>
</feature>
<?xml version="1.0" encoding="UTF-8"?>
<feature id="xxx.feature.a.source" version="7.0.0.002" label="xxx.feature.a Developer Resources" provider-name="xxx">
  <includes id="xxx.feature.a" version="7.0.0.002"/>
  <description url="http://www.example.com/description">
      [Enter Feature Description here.]
   </description>
  <copyright url="http://www.example.com/copyright">
      [Enter Copyright Description here.]
   </copyright>
  <license url="http://www.example.com/license">
      [Enter License Description here.]
   </license>
  <plugin id="xxx.plugin.a.source" version="7.0.0.001" download-size="0" install-size="0" unpack="false"/>
  <includes id="xxx.feature.b.source" version="7.0.0.003"/>
</feature>

Goto central/eclipse/features/xxx.feature.b/target/sources-feature/feature.xml

expected result actual result
<?xml version="1.0" encoding="UTF-8"?>
<feature id="xxx.feature.b.source" version="..." label="...">
  <description>
      [Enter Feature Description here.]
   </description>
  <copyright url="...">
      [Enter Copyright Description here.]
   </copyright>
  <license url="...">
      [Enter License Description here.]
   </license>
  <includes id="xxx.feature.b" version="7.0.0.003"/>
  <plugin id="xxx.plugin.b.source" version="7.0.0.001" download-size="0" install-size="0" unpack="false"/>
</feature>
<?xml version="1.0" encoding="UTF-8"?>
<feature id="xxx.feature.b.source" version="7.0.0.003" label="xxx.feature.b Developer Resources">
  <includes id="xxx.feature.b" version="7.0.0.003"/>
  <description>
      [Enter Feature Description here.]
   </description>
  <copyright url="http://www.example.com/copyright">
      [Enter Copyright Description here.]
   </copyright>
  <license url="http://www.example.com/license">
      [Enter License Description here.]
   </license>
  <plugin id="xxx.plugin.b.source" version="7.0.0.001" download-size="0" install-size="0" unpack="false"/>
</feature>

Conclusion

According to the official feature dtd the <includes>-tags should be placed between the <license>-tag and the <plugin>-tag.

About

Example Tycho Project to enforce wrong formatted feature.xmls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages