OFBiz Deployment and operation

Source: Internet
Author: User

Download and Deployment command: http://ofbiz.apache.org/download.html

The installation of OFBiz is based on ant , and the case of the official website is to perform Load-demo tasks and start tasks. The following analysis is in the case of the 12.04 version.

OFBiz 's ant Mission Interpretation

    • ./build.xml

"Load-demo"<-"build"<-" Ofbiz-init"

"ofbiz-init" setting the env variable

"build"

Framework/build.xml(framework library compilation and packaging, including SQL and server , and start and the Webtools , etc.)
Applications/build.xml( Compilation and packaging of ofbiz modules)
Specialpurpose/build.xml(module customization and encapsulation)
all build.xmlunder Hot-deploy(Directory is empty)

Antcall:clean-svninfo

"Load-demo"

Jar Ofbiz.jar Install

"start" Start Ofbiz.jar

Introduction to other tasks (only some of the more important ones are listed):

Target

Description

Refresh

Clean all and rebuild

Clean-all

Clean all DB, Catalina and caches data, logs, and runtime subdirectories and all specific files like. Rej,. Orig

Docs-all

For Committers:build all Javadoc to One tree for easier viewing by the community

Start

Start ofbiz

Start-batch

Start OFBiz as a separate process

Start-debug

Start ofbiz in debugging mode

Stop

Stop ofbiz

Status

Display Status of OFBiz

Load-demo

Load all data; Meant for generic ofbiz development, testing, demonstration, etc purposes

Load-demo-multitenant

Load all data needed for the Multi-tenancy demonstration. Caution:this creates three databases, with each one loaded with all demo data.

load-seed

Load only  the seed data  (not seed-initial, demo, ext* or anything  ELSE); meant for use after an update of the code to  reload the seed data as it is generally maintained along  With the code and needs to be in sync for operation

load-extseed

Load seed,  seed-initial and ext data; meant for manual/generic testing,  Development, or going into production with a derived system based  on stock ofbiz where the ext data basically replaces the  demo data

load-readers

Load data  using the command line argument data-readers that takes a  comma separated list of readers  (seed, seed-initial, demo, ext,  Ext-test, ext-demo) . on windows xp  (at least)  you need top  Wrap the parameters in double-quotes. for instance: ant load-readers   "-ddata-readers=seed,seed-initial,ext"

Load-file

Load data using the command line argument ' data-file ' to load data from a given file using the ' default ' delegator or a de Legator specified in the command line argument ' delegator '

Load-tenant

Load data using tenantId, Syntax eg:ant load-tenant-dtenantid=demo1 (needs multitenant=y in general.properties)

Load-all-tenants

Load data for all tenants, Syntax eg:ant load-all-tenants (needs multitenant=y in general.properties)

Run-tests

Run a single test suite, Syntax eg:ant run-test-suite-dtest.component=mycomponent-dtest.suitename=mytests

    • Common.xml

Final order, see macros.xml .

    • Macros.xml

Iterate traversing subdirectories to perform operations

JAVAC16(dependent Default-javac) specifies the java compiler

Default-javadoc generating Javadoc

Main-jar packaged as a running jar Package

Test-jar packaged as a test jar Package

DEFAULT-GROOVYC Compiler

OFBIZ-JAVACC Syntax Compiler

Ofbiz-jjtree Syntax Tree

Yuicompressor compression JS and other code resources

OFBiz Deployment and operation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.