Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "JWT Automatic Build"

(New page: = Automatic build of JWT Features and Plugins = == Helpful resources == * http://wiki.eclipse.org/Building General information about building * [[http://www.eclipse.org/articles/Arti...)
 
(Automatic build of JWT Features and Plugins)
Line 3: Line 3:
 
== Helpful resources ==
 
== Helpful resources ==
  
* [[http://wiki.eclipse.org/Building General information about building]]
+
* [http://wiki.eclipse.org/Building General information about building]
* [[http://www.eclipse.org/articles/Article-PDE-Automation/automation.html Article from Markus Barchfeld about automatic building]]
+
* [http://www.eclipse.org/articles/Article-PDE-Automation/automation.html Article from Markus Barchfeld about automatic building]
* [[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.soc/ide4edu/org.eclipse.soc.ide4edu.releng/?root=Technology_Project Sample project]]
+
* [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.soc/ide4edu/org.eclipse.soc.ide4edu.releng/?root=Technology_Project Sample project]
  
 
== What we did ==
 
== What we did ==
Line 16: Line 16:
 
         cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse export -r HEAD org.eclipse.releng.eclipsebuilder
 
         cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse export -r HEAD org.eclipse.releng.eclipsebuilder
  
We set some system variables, e.g. the ECLIPSE_HOME-variable:
+
* We set some system variables, e.g. the ECLIPSE_HOME-variable:
  
         set ECLIPSE_HOME=C:\Programme\Eclipse34SR1\eclipse //adapt to your Eclipse home directory
+
         set ECLIPSE_HOME=C:\Programme\Eclipse //adapt to your Eclipse home directory
  
And also configured the Build target directory:
+
* And also configured the Build target directory:
  
 
         set BUILD_HOME=C:\Build\New //adapt to your Build directory
 
         set BUILD_HOME=C:\Build\New //adapt to your Build directory

Revision as of 09:56, 5 December 2008

Automatic build of JWT Features and Plugins

Helpful resources

What we did

Pre-requirements

  • First, we downloaded CVS support for the command line: [CVS]
  • Afterwards, we downloaded PDE Releng:
       cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse export -r HEAD org.eclipse.releng.eclipsebuilder
  • We set some system variables, e.g. the ECLIPSE_HOME-variable:
       set ECLIPSE_HOME=C:\Programme\Eclipse //adapt to your Eclipse home directory
  • And also configured the Build target directory:
       set BUILD_HOME=C:\Build\New //adapt to your Build directory


Startup the build process

  • Generate a build.xml from the feature using right-click, PDE Build -> Generate Ant Script (this creates a build.xml in the feature directory)
  • Go to the directory of the feature: cd ...\jwt-we-feature
  • Execute:
      java -cp %ECLIPSE_HOME%\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar 
         org.eclipse.core.launcher.Main -application org.eclipse.ant.core.antRunner 
        -buildfile build.xml -Dcomponent=sdk.examples 
        -Dconfigs="*,*,*" 
        -Dbaseos=win32 
        -Dbasews=win32 -Dbasearch=x86 -Djavacfailonerror=true 
        -Dpde.build.scripts=%ECLIPSE_HOME%/plugins/org.eclipse.pde.build_3.4.1.R34x_v20080805/scripts 
        -DbaseLocation=%ECLIPSE_HOME% 
        -DbuildDirectory=&BUILD_HOME%
  • This generates the JAR-file of the feature.

Back to the top