~piastucki/bzr-eclipse/embed-rewrite

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Requirements:
 * Eclipse SDK >= 3.3 (get it [http://eclipse.org/downloads here])
 * Java 1.5 (5.0) but should run with 1.6 (get it [http://java.sun.com/javase/downloads/index.jsp here])
 * bzr-xmloutput >= 0.8.7
 * bazaar >= 2.x recommended
 * maven 3.0.x (a.k.a tycho)
 
Recomended:
 * ~1 GB of RAM, to comfortably run in debug mode or directly from the source (more on this later)
 
1) Get the source code from https://launchpad.net/bzr-eclipse 
  bzr branch lp:bzr-eclipse

 1.1) run: 'mvn compile integration-tests' to get bzr-java-lib and it dependencies in place and run the tests.

2) Launch Eclipse
 2.1) File--> Import --> "Existing project into workspace"
 2.2) select the root of the branch --> check all detected projects --> Finish

3) To launch a second instance of Eclipse with the plugin loaded:
 3.1) Select org.vcs.bazaar.eclipse.ui project 
   3.1.1) "right click" -->  Run As/Debug As -->
    or
   3.1.2) Menu Run  --> 

   '''__Note__''': Here you have some alternatives, the first is to execute in ''Debug'' or ''Run'' mode (the rest is the same for both modes)
 
 3.2) whatever you choose you can:
   3.2.1) execute right away: in Run As  --> '''Eclipse Aplication'''
   or
   3.2.2) fine tune the runtime enviroment to be executed from: Run --> Run...

   ''Replace Run with Debug for debug mode''

4) Creating Plugin import site
  4.1) Open the org.vcs.bazaar.eclipse.site project

  4.2) Run Build All  - this creates some files and directories

  4.3) Upload created features, plugins, and site.xml


5) Update the version
  5.1) Open org.vcs.bazaar.eclipse.core plugin overview
    Update version and save
    This modifies: org.vcs.bazaar.eclipse.core/META-INF/MANIFEST.MF

  5.2) Open org.vcs.bazaar.eclipse.core.tests plugin overview
    Update dependencies for org.vcs.bazaar.eclipse.core
    Update version and save
    This modifies: org.vcs.bazaar.eclipse.core.tests/META-INF/MANIFEST.MF

  5.3) Open org.vcs.bazaar.eclipse.core.ui plugin overview
    Update dependencies for org.vcs.bazaar.eclipse.core
    Update version and save
    This modifies: org.vcs.bazaar.eclipse.core.ui/META-INF/MANIFEST.MF

  5.4) Open org.vcs.bazaar.eclipse.feature plugin overview
    Update version and save
    This modifies: org.vcs.bazaar.eclipse.feature/feature.xml

  5.5) Open org.vcs.bazaar.eclipse.tests-feature plugin overview
    Update version and save
    This modifies: org.vcs.bazaar.eclipse.tests-feature/feature.xml

  5.6) Open org.vcs.bazaar.eclipse.site Site Map
    Add a feature for the new version  (Synchronize didn't work for me)
    Remove the feature for the old version
    This modifies: org.vcs.bazaar.eclipse.site/site.xml


  5.7) Update the version in each of the pom.xml
    find . -name pom.xml | xargs sed -i 's/1.1.1-SNAPSHOT/1.2.0-SNAPSHOT/'
    This modifies all of the pom.xml -- check they are correct.