Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
OSEE/Developer Guidelines
Contents
- 1 Before Committing Code
- 2 Code Quality Tools
- 3 Code Quality Configuration
- 4 Monitor OSEE Bugs using Mylyn
- 5 Coding Standards
- 6 REST API Documentation
- 7 OSEE Master Test Suite
- 7.1 Use Cases
- 7.2 Running the OSEE Test Suite
- 7.3 Common test utility plugin
- 7.4 Adding new Tests to MasterTestSuite
- 7.5 To create test fragment off plugin to be tested
- 7.6 To add a new JUnit TestCase
- 7.7 Things to consider
- 7.8 Master Test Suite - Frequently Asked Questions
- 7.8.1 What do I need for every test case?
- 7.8.2 Why do I get an exception on synchronized-lock when I launch the tests
- 7.8.3 Why do I get exceptions that cycle was detected when I add things to the org.eclipse.osee.test.util plugin
- 7.8.4 How do I timeout a test?
- 7.8.5 How do I test exception handling
- 7.9 To add a new JUnit TestSuite
- 7.10 Common test cases
- 8 OSGi
- 9 GUI using RAP
- 10 Java Development
- 11 Unix Commands
- 12 SQL Examples
- 13 Release Engineering
Before Committing Code
- Synchronize and Update
- Run Code Quality Checks
- Ensure all the tests are green. (Tests projects can be identified by their '*.test' suffix. All tests have to be executed as plug-in unit tests.)
- Ensure the reference documentation is up to date (i.e. reflects your changes) (Documentation is maintained in project 'via the OSEE wiki').
Code Quality Tools
Update your eclipse installation with the following tools:
- Find Bugs - Used to perform static analysis on java code - Find Bugs Update Site
- PMD - Additional static analysis and code duplication checks - PMD Update Site
- Check Style - Code Style Checks - Check Style Update Site
- Eclipse Emma - Emma Coverage Tool Plugin For Eclipse - Emma update site
Installation for Find Bugs, PMD, Emma, and Check Style:
- Launch Eclipse and go to Help->Software Updates->Available Software
- Drag the Update Site URLs into the Software Update and Add-ons dialog
- Select code style tools to install - for Find Bugs make sure you only select the Eclipse 3.4 or later entry
- Click the Install button
- Once installation completes, restart eclipse
Code Quality Configuration
Import OSEE Team Preferences
- Right-click on the following link OSEE Team Preferences
- Select Save Link As
- Enter osee_team_preferences.epf and click Save
- Launch Eclipse
- Select File->Import
- Open the General folder
- Select Preferences
- Click on the Browse... button, navigate to the location where you saved osee_team_preferences.epf
- Select Import all
- Click Finish to import settings
Check Style Configuration
- Select Window->Preferences
- Select Checkstyle
- Under the General Settings set Rebuild projects if needed to always
- Under the Global Check Configurations, click the New button
- Select Remote Configuration under the Type drop down
- Set name to OSEE Checks (Eclipse)
- Copy the following link into the Location entry OSEE Checks (Eclipse)
- Set the Cache configuration file checkbox to true
- Click OK
- Select the OSEE Checks (Eclipse) configuration and click on Set as Default
- Click OK to accept settings
Find Bugs Configuration
- Select Window->Preferences->Java
- Select Find Bugs
- Set analysis effort to Default
- Click OK to accept settings
PMD Configuration
- Right-click on the following link OSEE PMD Rule Set
- Select Save Link As
- Enter osee_pmd_rule_set.xml and click Save
- In Eclipse, select Window->Preferences
- Select PMD->Rules Configuration
- Click on Import rule set...
- Click on Browse, navigate to the location where you saved osee_pmd_rule_set.xml
- Set the Import by Copy check box to true
- Select OK to import the rule set
- Select OK to accept the change and close the Preferences Dialog
Monitor OSEE Bugs using Mylyn
See Integrating OSEE and Bugzilla.
Coding Standards
Consistency
- Redundant modifiers on interface method declarations
Chapter 9.4 of the Java Language Specification states: It is permitted, but discouraged as a matter of style, to redundantly specify the public and/or abstract modifier for a method declared in an interface.
Utility Classes
In order to optimize reuse of code, OSEE developers have adopted a set of standards.
Utility classes should:
- Be named xxxUtil. This allows for each searching and location by looking for *Util. This excludes stand-alone utility classes like HashCollection or CountingMap.
- As much as possible, be located in a package postfix'd with .util. eg. org.eclipse.osee.ats.util
- Should contain static methods
Cleanup of existing utility methods
The following needs to be done:
- Create set of common utility class names
- Move utilities to their respective places
- Either deprecate or replace uses of old locations
Comments
Most comments offer more clutter than information, especially non-Javadoc comments which can be removed using the following regular expression \R[ \t]*/\*\s+[\* ]*\(non-Javadoc\)[^/]+/
.
Regular Expression Find/Replace application of standards
-
([^ ]+) != null && !(\1).equals\(""\)
replace withStrings.isValid($1)
-
([^ ]+) == null \|\| (\1).equals\(""\)
replace with!Strings.isValid($1)
REST API Documentation
Jersey and Javadoc supported tags in the code are processed during the maven compile phase to create an enhanced application.wadl file. The enhancements include extra documentation pulled from the source. The following set of tags should be used so a consistant set of documentation is available for all REST interfaces.
JAX-RS Tags
- Every class implementing REST methods should use an @Path tag even if the paths is empty (e.g. @Path("") ).
- All parameters should be tagged with the appropriate @xxxParam tag (e.g. @PathParam, @QueryParam, etc.).
- The @Consumes tag should be used as appropriate for methods that take in data.
- The @Produces tag should be used as appropriate for methods returning information.
Javadoc Tags
- Use the '@param name description' for every parameter in the method. The 'name' needs to match the method paramater name
- Use the '@return description' as appropriate
The Jersey wadl generator supports additional tags for documenting request and response information.
- Use the '@response.representation.xxx.doc description' for all valid responses from the method
- Use the '@response.representation.xxx.mediaType type' when the media type is different than specified in @Produces
Example
@Path("/TakeAREST") public class TakeAREST { /** * Find a great RESTing place for your resources * @param place The ideal spot to look for RESTing * @return The best RESTing spot available * @response.representation.200.doc found the spot for you * @response.representation.503.doc RESTing places are currently unavailable. Try again later. */ @GET @Produces({"application/xml", "application/json"}) public String getPlaceToREST(@QueryParam("place") String place) { return "RESTing Place"; } /** * Store a RESTing spot for others to find and use * @param spot Just a good spot for RESTing * @return Acknowledging the location of the RESTing spot * @response.representation.200.doc This is a good spot * @response.representation.404.doc Wasn't able to create the shared RESTing spot * @response.representation.404.mediaType plain/txt */ @PUT @Consumes("plain/txt") @Produces("application/xml") public RestReturn createRESTingSpot(@PathParam("spot") String spot) { RestReturn myRet = new RestReturn(); myRet.setName("A Great Name"); myRet.setUuid("UniqueID"); return myRet; }
OSEE Master Test Suite
OSEE uses JUnit 4 for its test suites. Some links to get started:
Use Cases
Requirements of the OSEE test suite:
- Single button press to run all tests
- Minimal number of launch configurations to maintain
- Ability for any user, internal or external, to easily run a suite of tests before commit
- Continuous integration (checkout, build, test, report)
- Use JUnit framework for all testing
- Enable health checks against production database to be part of test suite
- New test cases can be added easily
Running the OSEE Test Suite
The OSEE test suite uses the org.eclipse.osee.ats.config.demo plugin to initialize a demo database, populate it with demo data and run the majority of the OSEE tests against this common data set.
These tests are contributed to the MasterTestSuite groups using Eclipse's extension point framework. Any Test Suite can implement IOseeTest and extend the OseeTest extension point to be contributed to the appropriate test suite(s).
Steps to test
- Checkout org.eclipse.osee.ats.config.demo
- Checkout org.eclipse.osee.support.test
- Run the following tests in order and resolve any errors:
- Run the Demo database tests:
- Run the OSEE Demo Application Server launch config
- Run the MasterTestSuite_DemoDbInit launch config. This initializes the postgres database for demo populate and tests
- Run the MasterTestSuite_DemoDbPopulate launch config. This loads the database with branches, actions and sets conditions for populate tests.
- Run the MasterTestSuite_DemoDbTests launch config. This runs tests against the DemoDb Populated database.
- Stop the OSEE Demo Application Server if still running
- Run the Production TestDb tests:
- Run the OSEE Application Server launch config.
- Run the MasterTestSuite_TestDbInit launch config. This initializes the postgres database for production testdb tests
- Run the MasterTestSuite_TestDbTests launch config. - This runs production specific tests using a TestDb.
- Run the Production tests and health checks against the current production release
- Run the MasterTestSuite_ProductionTests launch config. This runs tests and health checks against the current production released database.
- Run the Demo database tests:
Common test utility plugin
The plugin org.eclipse.osee.support.test.util is in support of our testing framework. It has a number of common enums and a TestUtil class that should be used by any junit tests. The intent is to keep this plugin lightweight and without many dependencies cause all the testing fragments "should" include it. In addition, it should not be included by any production plugins, only test fragments.
Adding new Tests to MasterTestSuite
To create test fragment off plugin to be tested
All OSEE JUnit tests should live in a fragment of the plugin to be tested.
- Select plugin to be tested
- Right-click -> New Project -> Plugin Project -> Plugin Fragment
- Enter plugin to be tested as Host plugin
- Complete wizard
- In plugin to be tested (eg org.eclipse.osee.ats)
- Add "Eclipse-ExtensibleAPI: true" to MANIFEST.MF of plugin to be tested. This allows test suites to see tests in this plugin
- In new fragment (eg org.eclipse.osee.ats.test)
- Add org.junit4 (make sure junit4, not junit) to dependencies
- Add the common test utility plugin org.eclipse.osee.support.test.util plugin to dependencies
- Export packages containing TestCases and TestSuites
- In MasterTestSuite plugin (eg org.eclipse.osee.support.test)
- Add dependency on plugin to be tested (ge org.eclipse.osee.ats)
- Add test cases and suites from fragment to appropriate MasterTestSuite java Test Suites
To add a new JUnit TestCase
- Write the TestCase to run against a database populated with DemoDbInit and DemoDbPopulate
- Add the TestCase to an existing MasterTestSuite_DemoDbTests test suite
Things to consider
- Your tests must clean-up after themselves to ensure that the entire test suite can be run.
- Do not assume order of execution except within your own Test Suite
Master Test Suite - Frequently Asked Questions
What do I need for every test case?
- import static org.junit.Assert.*;
- In setup method (@Before), always assert that you are on correct database by adding one of these
assertTrue("Should be run on production datbase.", TestUtil.isProductionDb()); assertTrue("Should be run on test datbase.", TestUtil.isTestDb()); assertTrue("Should be run on demo datbase.", TestUtil.isDemoDb());
- In setup method (@Before), always assert that you have correct app server running *
assertTrue("Demo Application Server must be running.", ClientSessionManager.getAuthenticationProtocols().contains("demo")); assertTrue("Client must authenticate using demo protocol", ClientSessionManager.getSession().getAuthenticationProtocol().equals("demo")); assertFalse("Application Server must be running.", ClientSessionManager.getAuthenticationProtocols().contains("demo")); assertFalse("Client can't authenticate using demo protocol", ClientSessionManager.getSession().getAuthenticationProtocol().equals("demo")); }
Why do I get an exception on synchronized-lock when I launch the tests
The launch configuration does not have all plugins necessary to run.
- Open Debug Configurations for that launch item
- Go to plugins tab and select "Validate Plugins". This will show if any plugins are missing from selected items.
- Select "Add Required Plugins" to add them.
- Re-launch.
Why do I get exceptions that cycle was detected when I add things to the org.eclipse.osee.test.util plugin
This plugin is meant to be extremely light-weight and only provide simple statics and methods to all the test plugins. Because it has to be included in all test fragments from jdk.core all the way up to framework.ui (skynet.ui), it can not depend on any of the higher level plugins or cycles will occur. Remove these dependencies and cycles will be fixed.
How do I timeout a test?
Define a timeout period in miliseconds with “timeout” parameter. The test fails when the timeout period exceeds. view
@Test(timeout = 1000) public void infinity() { while (true); }
How do I test exception handling
Exception Handling Use “expected” paramater with @Test annotation for test cases that expect exception. Write the class name of the exception that will be thrown. view plainprint?
@Test(expected = ArithmeticException.class) public void divisionWithException() { // divide by zero simpleMath.divide(1, 0); }
To add a new JUnit TestSuite
- Create a fragment for the plugin (see above)
- Create new JUnit TestCases as above
- Create a new JUnit TestSuite
- Add new TestSuite to one of the MasterTestSuite java test suites
Common test cases
/* COMPANY DISTRIBUTION STATEMENT */ package com.company.component.testcase; import ... import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; /** * @link <link_to_class_under_test> * @author <you> */ public final class MySuperbTest { private static SevereLoggingMonitor monitorLog = null; private static Artifact myRootArtifact = null; @Test public void importSimpleArtifacts() throws Exception { Assert.assertTrue("Some message...", conditionToBeTrue); } @Before public void setUp() throws Exception { /* some pre init stuff before each case */ } @After public void tearDown() throws Exception { /* useful to destroy any artifacts after your test */ new PurgeArtifacts(myRootArtifact.getChildren()).execute(); /* example how you would wrap one element to pass in */ new PurgeArtifacts(Collections.singletonList(myRootArtifact)).execute(); } @BeforeClass public static void setUpOnce() throws Exception { monitorLog = TestUtil.severeLoggingStart(); } @AfterClass public static void tearDownOnce() throws Exception { TestUtil.severeLoggingEnd(monitorLog); /* any other final cleanup */ } }
OSGi
- OSGi is a set of specifications that define a dynamic component system for Java where an application is composed of several components which are packaged in bundles. Components communicate locally and across the network through services.
- Singleton bundles
- A singleton bundle is used to prevent any other version of a bundle being loaded in memory, there can be only one resolved version in the run time at any point. The use of a singleton bundle can be desirable where access to a single system resource is required from a set of applications. https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.5.0/applications/developing/java/dfhpj_osgiframework.html. Use this option for test fragments.
GUI using RAP
- The term "RAP client" is used to identify the software that displays the actual UI of a RAP application and communicates with the RAP server using the RAP Protocol.
- The RAP Protocol is JSON-based message format that fully decouples the RAP server and client with the intention of making the client exchangeable.
- The default RAP client is written in JavaScript and is downloaded and started automatically when a browser accesses the URL of a RAP application.
Java Development
Learning Java
Install Eclipse as your Development Environment
From the Creator of Java: Trails Covering the Basics
- Learning the Java Language — Lessons describing the essential concepts and features of the Java Programming Language
- Essential Java Classes — Lessons on exceptions, basic input/output, concurrency, regular expressions
- Collections — Lessons on using and extending the Java Collections Framework
Excellent Sources
- Head First Java, 2nd Edition (available in Safari and from Amazon)
- Stack Overflow for answers to specific questions
- Simple v.s. Easy
Two alternative learning sources:
Threading
- Collections.synchronizedMap still requires manual synchronization on the returned map when iterating over any of its collection views.
- Eclipse -> Debug Perspective -> Debug view (stacktrace view) -> white downward arrow menu -> Java -> Show Monitors
- Eclipse can detect deadlocks and gives locking information needed to determine the root cause
- When using a HashMap with more than one thread, use java.util.concurrent.ConcurrentHashMap instead
Unix Commands
find <filename> -type f -exec chown <new_owner> {} \; -exec chmod 664 {} \; du -hs * tail -f /var/tmp/my.log netstat -an vi find and replace: s/pattern1/pattern2/g find . -exec grep -l pattern {} \; finger -wpsf <user>
SQL Examples
How to create a new table on OSEE production database
GRANT DELETE ON "OSEE"."<table_name>" TO "OSEE_CLIENT"; GRANT INSERT ON "OSEE"."<table_name>" TO "OSEE_CLIENT"; GRANT SELECT ON "OSEE"."<table_name>" TO "OSEE_CLIENT"; GRANT SELECT ON "OSEE"."<table_name>" TO PUBLIC; GRANT UPDATE ON "OSEE"."<table_name>" TO "OSEE_CLIENT"; CREATE public synonym <synonym_name> FOR <table_name> ;
-- create a trigger that runs each time rows are deleted from osee_server_lookup CREATE OR REPLACE TRIGGER osee_server_lookup_brd BEFORE DELETE ON osee_server_lookup FOR each ROW BEGIN INSERT INTO find_user( user_name, chg_date) VALUES (USER, sysdate ); END; -- create a synonym in the osee_client scheme to the table osee_enum_type_def owned by scheme osee and then give osee_client privileges to actually use it CREATE OR REPLACE SYNONYM osee_client.osee_enum_type_def FOR osee.osee_enum_type_def; GRANT SELECT, UPDATE, INSERT ON osee_enum_type_def TO osee_client; -- an update statement that involves another table UPDATE osee_attribute_type aty SET enum_type_id = (SELECT et.enum_type_id FROM osee_enum_type et WHERE aty.name = et.enum_type_name) WHERE validity_xml IS NOT NULL; -- retrieve duplicate HRIDS, its GUID and Artifact Type name: SELECT t1.guid, t1.human_readable_id, t3.name FROM osee_artifact t1, osee_artifact_type t3 WHERE t1.human_readable_id IN (SELECT t2.human_readable_id FROM osee_artifact t2 GROUP BY t2.human_readable_id HAVING COUNT(t2.human_readable_id) > 1) AND t3.art_type_id = t1.art_type_id ORDER BY t1.human_readable_id; -- retrieve the number of attributes with the specified value: -- (Note: COUNT function returns the number of rows in a query, COUNT(1) is for better performance; -- In the below example, the COUNT function does not need to retrieve all fields from the osee attribute table -- as it would if you used the COUNT(*) syntax. It will merely retrieve the numeric value of 1 for each record -- that meets your criteria) SELECT COUNT(1) FROM osee_attribute WHERE VALUE LIKE ?, WHERE ? == '%<value>%' -- retrieve the number of commit comments with the specified value: SELECT COUNT(1) FROM osee_tx_details WHERE osee_comment LIKE ?, WHERE ? == '%value>%' -- retrieve the number of branch names with the specified value: SELECT COUNT(1) FROM osee_branch WHERE branch_name LIKE ?, WHERE ? == '%value>%' -- retrieve all data from the specified tables on a specific artifact SELECT * FROM osee_artifact_version arv, osee_txs txs, osee_tx_details txd WHERE art_id = <value> AND arv.gamma_id = txs.gamma_id AND txs.transaction_id = txd.transaction_id -- retrieve all data from the osee artifact table for the specified artifact SELECT * FROM osee_artifact WHERE art_id=<value> -- list execution plans SELECT DISTINCT 'explain plan set statement_id = ' || sql_id || ' for ' || sql_text || ';' AS ex FROM v$sql WHERE LOWER(sql_text) LIKE 'select%osee_relation_link%' AND sql_text NOT LIKE '%DS_SVC%' AND sql_text NOT LIKE '%SYS.DUAL%' AND parsing_schema_name = 'OSEE_CLIENT' ORDER BY ex; SELECT * FROM plan_table;
Release Engineering
Posting OSEE downloads to Eclipse.org
- Download release binaries
- on Hudson goto the following job
- https://hudson.eclipse.org/osee/job/osee_nr/105/parameters/
- Enable the job
- Goto Configure and update the 'version' parameter (e.g. 0.25.1 or 0.26.0, etc)
- Save the configuration change
- Execute the job
- Do the same for the posting job https://hudson.eclipse.org/osee/job/osee_promote_latest_to_download_site/
- on Hudson goto the following job
- Update OSEE website to link to new version
- use the Git repository https://git.eclipse.org/r/www.eclipse.org/osee.git
- update release version in sharedEnv.php
Rebaselining a development branch onto master
Note: Replace all references to /c/x/git/x with your git reop's parent folder
- prerequisite: master is pointing to tip of most recent next release branch otherwise replace references to master with it below
- git pull --rebase
- git push origin head:master
- Announce on mailing list commit freeze for source and destination branches
- Start rebase using onto
The following steps apply to org.eclipse.osee and any repositories that depend on it- To see the work layout before you using Git version 2.19.0 or newer
- git range-diff origin/<previous_stable_version> origin/dev dev
- ensure any Eclipse workspace associated with the repository is closed
- cd /c/x/git/x/org.eclipse.osee; git fetch; git checkout dev
- git reset --hard origin/dev
- remove any untracked files
- git rebase -i --onto origin/master <one commit prior to first commit on dev>
- mark for edit the first commit "refactor: Update build numbers to 0.x.0
- To see the work layout before you using Git version 2.19.0 or newer
- Resolve merge conflict of version numbers
- git reset --hard
- Edit update_versions.sh to update versions
- vi /c/x/git/x/org.eclipse.osee/plugins/org.eclipse.osee.support.dev/update_versions.sh
- Run update_versions.sh from repository root
- /c/x/git/x/org.eclipse.osee/plugins/org.eclipse.osee.support.dev/update_versions.sh
- methodically reapply commits
- git rebase --edit-todo
- Select specific commits to edit (aligning with other repositories as needed)
- confirm no compile errors at each selected commit and every few commits run integration tests
- when a compile error or test failure is detected, determine root cause commit and create new FIXUP commit
- git status to check for uncommitted files (one possible cause is a deleted bundle)
- use Import Projects... from Git perspective in Eclipse to import newly added bundles
- Cleanup fixup commits
- note current hash of head
- use git rebase -i for second pass of rebase
- move each FIXUP commit to just after the commit it corrects and combine with fixup command
- git diff <previously_noted_hash> head to ensure no unintentional changes
- Ensure development branch still builds
- Ensure no compile errors in Eclipse workspace
- Launch OSEE dev_alpha install with workspace E:\workspace_nr
- refresh, rebuild, restart
- Ensure full Jenkins build succeeds
- git push origin head:user/rebase -f
- build on topic branch https://hudson.eclipse.org/osee/job/osee_topic_2
- Wipe Out Workspace first to avoid odd issues building
- Ensure no compile errors in Eclipse workspace
- git rebase --committer-date-is-author-date
- git fetch to ensure the commit freeze was not violated
- git push origin head:dev -f
Managing Orbit Bundles
- http://wiki.eclipse.org/Orbit_Builds
- http://wiki.eclipse.org/Orbit_Builds#Orbit_Builds_for_Orbit_Committers
- http://wiki.eclipse.org/Adding_Bundles_to_Orbit
- http://wiki.eclipse.org/Orbit_Bundle_Checklist
- http://build.eclipse.org:9777/dashboard/tab/builds
- builds -> orbit-I -> click the circular arrow (force build)
- New -> Other... -> Plug-in Project
- check "Create a java project"
- "an osgi Framework": Equinox
- no activator
- Bundle Id: <my.plugin>
- Bundle-Version: 10.5.1.1_qualifier
- Name: %bundleName
- Provider: %bundleProvider
- delete .settings folder
- create folder <my.plugin>/source-bundle
- create folder <my.plugin>/source-bundle/META-INF
- create file <my.plugin>/source-bundle/META-INF/MANIFEST.MF
- Bundle Id: <my.plugin>.source
- Eclipse-SourceBundle: <my.plugin>
- create file <my.plugin>/readme.txt
- copy plugin.properties to <my.plugin>/plugin.properties
- update bundleName
- copy <my.plugin>/plugin.properties to <my.plugin>/source-bundle/plugin.properties
- copy about.html to <my.plugin>/about.html
- create folder <my.plugin>/about_files
- copy licensing text files here
- extract content of binary jar file into root of <my.plugin> (do not over-write MANIFEST.MF)
- select project in workspace -> context menu -> Refresh
- Manifest editor -> Build tab
- check <my.plugin>/about.html under both your Binary Build and Source Build
- check <my.plugin>/about_files under both your Binary Build and Source Build
- check <my.plugin>/plugin.properties
- check <my.plugin>/<class folder>
- copy <my.plugin>/about.html to <my.plugin>/source-bundle/about.html
- copy <my.plugin>/about_files to <my.plugin>/source-bundle/about_files
- context menu on <my.plugin> -> Properties -> Java Build Path
- Source Tab -> remove all source folders
- Libraries -> Add class Folder ... -> select root project
- expand newly added class folder and select source attachment -> Edit... -> Workspace... -> /<my.plugin>/source-bundle
- Order and Export -> ensure libraries and class folders are marked exported
- edit <my.plugin>/.project
- add a space and then the 3 part version number to the project name
- edit <my.plugin>/build.properties
- ensure exists: output.. = . and remove source.. = .
- edit <my.plugin>/META-INF/MANIFEST.MF:
- add line: Bundle-Localization: plugin
- copy source to <my.plugin>/source-bundle/
- copy <my.plugin>/build.properties to <my.plugin>/source-bundle/build.properties
- add to bin.includes the root directory of the source (i.e. org, com, etc.)
- Note: the source bundle's build.properties entries must be relative to <my.plugin>/source-bundle/ (rather than just <my.plugin>/)
- context menu on <my.plugin> -> Team -> Share Project... -> CVS -> "dev.eclipse.org/cvsroot/tools"
- Use specified module name -> org.eclipse.orbit/<my.plugin>
- uncheck Launch the Commit wizard
- context menu on <my.plugin>/readme.txt and <my.plugin>/.project -> Team -> Commit... -> "initial project creation"
- select project in workspace -> context menu -> Team > Branch...
- "v<version number>" where <version number> original libraries version with '.' s replaced with '_' . (i.e. version is 2.3 would go in the v2_3 branch)
- check "Work with this branch"
- delete <my.plugin>/readme.txt
- CVS check out org.eclipse.orbit/org.eclipse.orbit.build.feature.set1
- edit /org.eclipse.orbit.build.feature.set1/feature.xml
- add plugin
- set download-size and install-size
- CVS check out org.eclipse.orbit/org.eclipse.orbit.releng
- edit /org.eclipse.orbit.releng/maps/bundles.map
- plugin@org.apache.derby.net,10.5.1=CVS,tag=v200910011000,cvsRoot=:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,path=org.eclipse.orbit/org.apache.derby.net
- plugin@org.apache.derby.net.source,10.5.1=CVS,tag=v200910011000,cvsRoot=:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,path=org.eclipse.orbit/org.apache.derby.net/source-bundle
- if you edited /org.eclipse.orbit.build.feature.set1/feature.xml, then update the map file's tag also (so the updated version will be used)
- context menu on <my.plugin> -> Team -> Commit...
- context menu on <my.plugin> -> Team -> Tag as Version... use the CVS tag you put in the map file
- context menu on org.eclipse.orbit.build.feature.set1 -> Team -> Tag as Version... (if you changed it)
- edit /org.eclipse.orbit.releng/psf/orbit.psf
- Update the IP Log
Windows Setup
Win + E > File > Change folder and search options > View > Advanced Settings: Show hidden files, folders, and drives !Hide extensions for known file types Win > Taskbar settings > Taskbar -> Use small taskbar buttons Win > Power & sleep settings > Sleep On battery power, PC goes to sleep after > 1 hour When plugged in, PC goes to sleep after > Never Win > Edit Power Plan > Change Advanced power settings > Sleep > Hibernate after > On battery > Never Control Panel View by: Small icons Power Options Choose what closing the lid does > When I close the lid: > Do Nothing Win > Control Panel > System and Security > System > Advanced system settings > Advanced -> Performance -> Settings -> Advanced -> Virtual Memory -> Change -> No Page File -> Set Win > Defragment and Optimize Drives > Optimize > Change settings > !Run on a schedule Win > Remote Desktop settings > Enable Remote Desktop