From Fedora Project Wiki

No edit summary
Line 23: Line 23:
* Clone the source from [http://www.javaforge.com/project/HGE javaforge] using <code> hg clone http://javaforge.com:8000/hgeclipse</code>
* Clone the source from [http://www.javaforge.com/project/HGE javaforge] using <code> hg clone http://javaforge.com:8000/hgeclipse</code>
* Create an archive of the latest release source: [http://mercurial.selenic.com/wiki/TipsAndTricks#Make_a_clean_copy_of_a_source_tree.2C_like_CVS_export how to create an archive of a specific tag in mercurial]
* Create an archive of the latest release source: [http://mercurial.selenic.com/wiki/TipsAndTricks#Make_a_clean_copy_of_a_source_tree.2C_like_CVS_export how to create an archive of a specific tag in mercurial]
: <code> hg archive -r RELEASE_1.8.1 --type=tar ../mercurialeclipse_1-8-1.tar.bz2</code>
: <code> hg archive -r RELEASE_1.8.1 --type=tar ../mercurialeclipse_1-8-1.tar.bz2</code>
: '''problem with this ccommand:'''
:: ''type=tar'' caused problem while decompressing the tar ball with pde-script, so we can just archive as a regular folder
:: It's better to keep the name of the folder as just ''mercurial'' then we will put it in a folder called eclipse-mercurial
: so the new command is: <code> hg archive -r RELEASE_1.8.1 ../eclipse-mercurial/mercurial</code>  
* Create a new '''feature''' in Eclipse using '''New''' -> '''feature'''
* Create a new '''feature''' in Eclipse using '''New''' -> '''feature'''
: type '''mercurialeclipse-feature'''
 
: change the featureID to '''com.vectrace.mercurialeclipse''' (the plug-in needed for this feature)
[[Image:mercurialfeature1.png|Mercurial Create Feature]]<br/><br/>
 
* Add this feature id to '''%build''' in .spec file in -f option
* Add this feature id to '''%build''' in .spec file in -f option
: Don't need to add -d (dependencies) for now, until it complains
: Don't need to add -d (dependencies) for now, until it complains

Revision as of 13:30, 9 June 2011

References

Case Study

Mercurial Eclipse

hg archive -r RELEASE_1.8.1 --type=tar ../mercurialeclipse_1-8-1.tar.bz2
problem with this ccommand:
type=tar caused problem while decompressing the tar ball with pde-script, so we can just archive as a regular folder
It's better to keep the name of the folder as just mercurial then we will put it in a folder called eclipse-mercurial
so the new command is: hg archive -r RELEASE_1.8.1 ../eclipse-mercurial/mercurial
  • Create a new feature in Eclipse using New -> feature

Mercurial Create Feature

  • Add this feature id to %build in .spec file in -f option
Don't need to add -d (dependencies) for now, until it complains
  • Create an archive file of the feature then add it to the SOURCES in RPM project.
you may need to add that to the %prep in .spec file.
  • fill the information for feature template...