Difference between revisions of "IDempiere/Building iDempiere without Eclipse"
From WikiQSS
CarlosRuiz (talk | contribs) (adding info about resulting file) |
CarlosRuiz (talk | contribs) (tested) |
||
Line 4: | Line 4: | ||
Instructions: | Instructions: | ||
− | |||
− | |||
Following instructions from http://www.eclipse.org/buckminster/downloads.html | Following instructions from http://www.eclipse.org/buckminster/downloads.html |
Revision as of 21:18, 6 June 2012
It is possible to build iDempiere without Eclipse.
This is possible thanks to the Buckminster headless functionality.
Instructions:
Following instructions from http://www.eclipse.org/buckminster/downloads.html
- Download director_latest.zip from this link
- Unzip it into $DIRECTOR_HOME folder (you decide which folder)
cd $DIRECTOR_HOME # replace DIRECTOR_HOME with your preferred folder for this unzip director_latest.zip
- Using director download buckminster headless into $BUCKMINSTER_HOME folder (you decide which folder)
director -r http://download.eclipse.org/tools/buckminster/headless-3.7/ -d $BUCKMINSTER_HOME -p Buckminster -i org.eclipse.buckminster.cmdline.product # Note: replace $BUCKMINSTER_HOME with your preferred folder for this
- Install the prerequisites (Core, PDE, Maven) into buckminster
cd $BUCKMINSTER_HOME buckminster install http://download.eclipse.org/tools/buckminster/headless-3.7/ org.eclipse.buckminster.core.headless.feature buckminster install http://download.eclipse.org/tools/buckminster/headless-3.7/ org.eclipse.buckminster.pde.headless.feature buckminster install http://download.eclipse.org/tools/buckminster/headless-3.7/ org.eclipse.buckminster.maven.headless.feature
- Clone the repository you downloaded on Download the Code step (you can also use your actual installation, but I prefer to clone it to avoid mixing environments)
cd $HOME/sources # Or use the folder where you downloaded the idempiere project hg clone idempiere testheadless
- Create the target platform (replace below $HOME/sources with the folder where you have your cloned repositories)
cd $BUCKMINSTER_HOME buckminster -data $HOME/sources/testheadless importtargetdefinition -A '$HOME/sources/testheadless/org.adempiere.sdk-feature/build-target-platform.target'
- Materialize the project
buckminster -L DEBUG -consoleLog -data $HOME/sources/testheadless import '$HOME/sources/testheadless/org.adempiere.sdk-feature/adempiere.cquery'
- Build
buckminster -L DEBUG -consoleLog -data $HOME/sources/testheadless build -t
- Perform site.p2 action
buckminster -L DEBUG -consoleLog -data $HOME/sources/testheadless perform \ -D 'qualifier.replacement.*=generator:buildTimestamp' \ -D "generator.buildTimestamp.format='v'yyyyMMdd-HHmm" \ -D 'target.os=*' \ -D 'target.ws=*' \ -D 'target.arch=*' \ 'org.adempiere.server:eclipse.feature#site.p2'
- Perform create.product.zip action for linux x86_64
buckminster -L DEBUG -consoleLog -data $HOME/sources/testheadless perform \ -D 'qualifier.replacement.*=generator:buildTimestamp' \ -D "generator.buildTimestamp.format='v'yyyyMMdd-HHmm" \ -D 'target.os=linux' \ -D 'target.ws=gtk' \ -D 'target.arch=x86_64' \ 'org.adempiere.server:eclipse.feature#create.product.zip'
- After this step the server installer must be found at:
/tmp/buckminster/build/org.adempiere.server_1.0.0-eclipse.feature/idempiereServer.gtk.linux.x86_64.zip