|
|
Line 1: |
Line 1: |
− | It is possible to build iDempiere without Eclipse.
| + | Moved to [http://wiki.idempiere.org/en/Building_iDempiere_without_Eclipse http://wiki.idempiere.org/en/Building_iDempiere_without_Eclipse] |
− | | |
− | This is possible thanks to the [http://wiki.eclipse.org/Buckminster_Headless Buckminster headless] functionality.
| |
− | | |
− | Instructions:
| |
− | | |
− | Following instructions from http://www.eclipse.org/buckminster/downloads.html
| |
− | * Download director_latest.zip from this [http://www.eclipse.org/downloads/download.php?file=/tools/buckminster/products/director_latest.zip 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 [[IDempiere/Download the Code|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' \
| |
− | -D product.features=org.idempiere.eclipse.platform.feature.group \
| |
− | -D product.profile=DefaultProfile \
| |
− | -D product.id=org.adempiere.server.product \
| |
− | '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
| |