Module 11 Setting up Customization Environment



Similar documents
Knappsack ios Build and Deployment Guide

Software Development Environment. Installation Guide

Understanding class paths in Java EE projects with Rational Application Developer Version 8.0

Using Microsoft Visual Studio API Reference

Version Control! Scenarios, Working with Git!

Informatics for Integrating Biology & the Bedside. i2b2 Workbench Developer s Guide. Document Version: 1.0 i2b2 Software Release: 1.3.

Eclipse installation, configuration and operation

NetBeans IDE Field Guide

Migrating helpdesk to a new server

EMC Documentum Composer

Lab 5 Using Remote Worklight Server

Technical Bulletin. SQL Express Backup Utility

Virtual Office Remote Installation Guide

Lab 0 (Setting up your Development Environment) Week 1

Follow these procedures for QuickBooks Direct or File Integration: Section 1: Direct QuickBooks Integration [Export, Import or Both]

DAVE Usage with SVN. Presentation and Tutorial v 2.0. May, 2014

Module 4 New Client Setup

Zoho CRM and Google Apps Synchronization

Synthetic Monitoring Scripting Framework. User Guide

SENDING S & MESSAGES TO GROUPS

Debugging Export Connectors With Visual Studio.NET

Deploying Physical Solutions to InfoSphere Master Data Management Server Advanced Edition v11

Workshop for WebLogic introduces new tools in support of Java EE 5.0 standards. The support for Java EE5 includes the following technologies:

How To Use Optimum Control EDI Import. EDI Invoice Import. EDI Supplier Setup General Set up

Using GitHub for Rally Apps (Mac Version)

SOLGARI CLOUD BUSINESS COMMUNICATION SERVICES CLOUD CONTACT CENTRE MICROSOFT DYNAMICS INTEGRATION

E-Notebook SQL 12.0 Desktop Database Migration and Upgrade Guide. E-Notebook SQL 12.0 Desktop Database Migration and Upgrade Guide

Listed below are the common process in creating a new content type, and listing a summary of all contents via view and/or panel custom page.

How to install and use the File Sharing Outlook Plugin

Updating Your Applied Account

MIS Export via the FEM transfer software

Snow Inventory. Installing and Evaluating

BEAJRockit Mission Control. Using JRockit Mission Control in the Eclipse IDE

Implementing a SAS 9.3 Enterprise BI Server Deployment TS-811. in Microsoft Windows Operating Environments

WA1791 Designing and Developing Secure Web Services. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc. 1

SHIPSTATION / MIVA MERCHANT SETUP GUIDE

Rational Application Developer Performance Tips Introduction

SharePoint List Filter Favorites Installation Instruction

Before you can use the Duke Ambient environment to start working on your projects or

PORTAL ADMINISTRATION

Introduction. Configurations. Installation. Vault Manufacturing Server

Set Up Setup with Microsoft Outlook 2007 using POP3

CPSC 491. Today: Source code control. Source Code (Version) Control. Exercise: g., no git, subversion, cvs, etc.)

Migrating MSDE to Microsoft SQL 2008 R2 Express

Recreating Your GroupWise Mailing Lists in Outlook Client

Getting Started Android + Linux. February 27 th, 2014

Quick Instructions Installing on a VPS (Virtual Private Server)

Tutorial: setting up a web application

Installing OneStop Reporting Products

MSI Admin Tool User Guide

Setting up a Scheduled task to upload pupil records to ParentPay

How to configure the DBxtra Report Web Service on IIS (Internet Information Server)

Basics of Automation and Overview of QTP. By, Anver Sathic Abdul Subhan

How to set up Outlook Anywhere on your home system

StarWind iscsi SAN Software: Using with Citrix XenServer

Exchange 2003 Mailboxes

WA2102 Web Application Programming with Java EE 6 - WebSphere RAD 8.5. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

Google App Engine f r o r J av a a v a (G ( AE A / E J / )

Beginning with SubclipseSVN

How to Open a Broker Account & Install MetaTrader4 on a Mac

StreamServe Persuasion SP4

How To Create A Microsoft.Com/Sql Server 2000 Instance For Act! (For A Powerpoint) For A Powerline.Com (For Microsoft) Or A Microscientific.Com Or A Windows

About This Guide Signature Manager Outlook Edition Overview... 5

Migrating XMap Between Computers

educ Office Remove & create new Outlook profile

ABAP Debugging Tips and Tricks

Fax and SMS Quickguide

Web based training for field technicians can be arranged by calling These Documents are required for a successful install:

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

Zoom Plug-ins for Adobe

CloudBerry Dedup Server

Test Automation Integration with Test Management QAComplete

Developing In Eclipse, with ADT

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

Using Git for Project Management with µvision

Getting Started using the SQuirreL SQL Client

How To Run A Hello World On Android (Jdk) On A Microsoft Ds.Io (Windows) Or Android Or Android On A Pc Or Android 4 (

E-Notebook SQL13.0 Desktop Migration and Upgrade Guide

Content. Development Tools 2(63)

This tutorial provides detailed instructions to help you download and configure Internet Explorer 6.0 for use with Web Commerce application.

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

HP Quality Center. Software Version: Version Control Add-in Guide

4cast Client Specification and Installation

Installing the Android SDK

Introduction to Android Development

HP Enterprise Integration module for SAP applications

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

Enterprise Service Bus

How to Configure an Example SAP Cloud Applications Studio (PDI) Solution for SAP Cloud for Customer

Deploying IronCAD Concurrent Licenses

Ingenious Testcraft Technical Documentation Installation Guide

Appendix F: Instructions for Downloading Microsoft Access Runtime

StreamServe Persuasion SP5 Control Center

Installing Cobra 4.7

Troubleshooting Guide. 2.2 Click the Tools menu on Windows Explorer 2.3 Click Folder Options. This will open a dialog box:

How To Backup In Cisco Uk Central And Cisco Cusd (Cisco) Cusm (Custodian) (Cusd) (Uk) (Usd).Com) (Ucs) (Cyse

CTERA Cloud Onramp for IBM Tivoli Storage Manager

Work. MATLAB Source Control Using Git

Setting up the Oracle Warehouse Builder Project. Topics. Overview. Purpose

Transcription:

Module 11 Setting up Customization Environment By Kitti Upariphutthiphong Technical Consultant, ecosoft kittiu@gmail.com ADempiere ERP 1

2 Module Objectives Downloading ADempiere Source Code Setup Development Environment Deploy new development

Module 8.1 Revision Control By Kitti Upariphutthiphong Technical Consultant, ecosoft kittiu@gmail.com ADempiere ERP 3

ADempiere HG Mercurial Repository 6

7 SVN Steps Checkout files from Central Make changes locally Commit file back to Central Pro Easy to understand at first Con Not store change history in local Merge always fail to merge SVN is working on Revision of files

8 HG Mercurial Steps Pull changeset from Central to local repository Update changes to local Make changes locally Commit changeset to local repo Push changes back to Central Pro More loosely couple Store history as changeset Easy to branch and merge Con Harder to understand at first, but easier once understand Mercurial is working on Changeset and apply to whole repository

9 Mercurial in real development environment Setting up a bunch of repositories that pull from each other. As each feature goes through testing and integration, it gets pulled up higher and higher in the tree until eventually the new code is in the main shipping repository where customers can get it:

10 ADempiere Development Environment ADempiere SourceForge HG Repository Project Source Code Dev 1 Development DB Test Server APP + DB Production Server APP + DB Local Clone of AD Source Code i.e., 360LTS Dev 2 2Pack 1001_xxx.zip 1002_yyy.zip 1003_zzz.zip Etc 2Pack 1001_xxx.zip 1002_yyy.zip 1003_zzz.zip Etc 2Pack 1001_xxx.zip 1002_yyy.zip 1003_zzz.zip Etc

11 Setup Development Environment 3. ADempiere Project 2. Patch Project 1. Customization Project Customization Project Overwrite Patch Project Overwrite Main ADempiere Project

12 Deploying new features / customization Adempeiere Precedence of JAR 1. Customization.jar 2. Patches.jar 3. <Package>.jar (i.e., LiberoHR.jar, LiberoManu.jar, etc ) 4. Adempiere.jar Deploying as a new JAR From eclipse Export the Development Project as JAR file Copy and Paste to Adempiere 1. As customization.jar in C:\Adempiere\lib 2. As <Package>.jar in C:\Adempiere\Packages\<Package>\<Package>.jar Execute Run_Setup.bat or RUN_SilentSetup.bat to include the new classes into the system runtime

WORKSHOP 13

14 Scenario Make customization to the login window so that the dropdown list show only Thai and English language

15 Setup Workspace Open program Eclipse Open Workspace C:\Training360LTS Create new Java Project MyCustomization From Menu, select File New Java Project Project Name: MyCustomization Click Finish Setup project dependency for MyCustomization Right click on MyCustomization project folder Select Property On Property dialog, set Java Build path and select 2 projects, Adempiere360lts and patches_360 Click on Order and Export tab, move patches_360 to higher priority than adempiere360lts (patches.jar overwrite ADempiere.jar) Click OK to close the dialog. Create Run Configurations With MyCustomization project selected, click on Run Configuration button, it will launch a dialog With Java Application selected, click New

Setup Workspace On Main tab Name: MyConfiguraton Project: MyCustomization Main class: org.compiere.adempiere Click Apply and close this dialog. We are now ready to run Adempeire from eclipse. Test run ADempiere Click on Run button for MyConfiguration ADempiere will start as normal. You will still see that the Language field in login page is now listing all available language. On Arguments tab fill VM Argument as follow, -DPropertyFile=${workspace_loc}/MyFirstProject.properties -Dorg.adempiere.server.embedded=true -Xms128M -Xmx256M org.compiere.adempiere act as entry point when run the code. MyFirstProject.properties is the adempiere.properties for this project. Next step we will modify the code so that it list only Thai and English. 16

Modify Source Code Modify Source Code The Source Code that control the list of Languages is located at org.compiere.util.language.java Create base/src folder in MyCustomizatoin project. Right click on base/src folder and create new package org.compiere.util Copy Language.java from adempiere360lts project and past it here. Look for method Language and modify the source code so that it only keep English (UK) and Thai language Save the file. It will compile automatically. That s all we have to change. Start Run Configuration MyConfiguration again. You should now see only Thai and English (UK) on Language dropdown. 17

18 Running the source code in Debug Mode Running in Debug mode is as simple as in the Run Configuration Mode As sample, setup break point in the main function of org.compiere.adempiere class Run Debug Configuration instead, and system will launch in debug mode. Use ADempiere as normal, system will break at specified Breakpoint Click on Eclipse: Menu > Run to see debugging (i.e., step into, step over and etc)

19 Test Your Knowledge 1. How to deploy JAR files in Production environment? 2. How to Debug Account Engine on Eclipse? 3. What is the precedence order of JAR in ADempiere? 4. What is migration script? And how it can be created?