Skip to content

How to build

Andre Bossert edited this page Nov 13, 2017 · 2 revisions

Dependencies

Get LogViewer plugin sources

  • Clone LogViewer from https://github.com/anb0s/LogViewer.git to new directory LogViewer
  • switch to master branch
  • Import all projects to Eclipse and add them to new "Working Set" LogViewer
    • LogViewer: root project, needed only for readme, headless build etc.
    • de.anbos.eclipse.logviewer.feature: feature project
    • de.anbos.eclipse.logviewer.platform: platform definition
    • de.anbos.eclipse.logviewer.plugin: plugin with main sources
    • de.anbos.eclipse.logviewer.site: update site

Get LogViewer web-site (gh-pages)

  • Clone LogViewer from https://github.com/anb0s/LogViewer.git to new directory LogViewer-gh-pages
  • switch to gh-pages branch
  • Import the project to Eclipse and add it to "Wortking Set" LogViewer
    • LogViewer-gh-pages: root project, needed for web- and update-site

Running and debugging in Eclipse

  • select target platform you want to test LogViewer against:
    • go to project de.anbos.eclipse.logviewer.platform
    • open wanted platform definition file, e.g. for Eclipse 4.6 Neon use Eclipse-4.6.target
    • use Set as Target Platform and wait until the platform defition is loaded from Eclipse mirrors
  • now there should be no build errors anymore
  • use Run | Debug As | Eclipse Application and wait until the new Eclipse instance is opened
  • use LogViewer, set breakpoint etc. :)

Building LogViewer plugin with update site for testing

  • go to project LogViewer
  • build
    • from Eclipse: run launch configuration LogViewer-Testing-Build
    • from commandline / headless / CI server: mvn clean verify with parameter site.dir=testing
  • go to project de.anbos.eclipse.logviewer.site and use one of:
    • directory target\repository OR
    • zip file e.g. target\de.anbos.logviewer.logviewer.site-0.9.9-SNAPSHOT.zip OR
    • last version from updates\testing
  • deploy
    • synchronize the directory updates\testing to project LogViewer-gh-pages directory testing
    • commit and push project LogViewer-gh-pages to GitHub and check the new version from site http://anb0s.github.io/LogViewer/testing

Building LogViewer plugin with update site for releasing

  • go to project LogViewer
  • build
    • from Eclipse: run launch configuration LogViewer-Release-Build
    • from commandline / headless / CI server: mvn clean verify with parameter site.dir=release
  • go to project de.anbos.eclipse.logviewer.site and use one of:
    • directory target\repository OR
    • zip file e.g. target\de.anbos.eclipse.logviewer.site-0.9.9-SNAPSHOT.zip OR
    • last version from directory updates\release
  • deploy
    • synchronize the directory updates\release to project LogViewer-gh-pages directory release
    • commit and push project LogViewer-gh-pages to GitHub and check the new version from site http://anb0s.github.io/LogViewer