SLL_Weblogic Ant _Build_0_1.doc

Embed Size (px)

Citation preview

  • 8/14/2019 SLL_Weblogic Ant _Build_0_1.doc

    1/8

    Stockholms Lns Landsting BoP Weblogic Ant scriptsBAT och Portal Srinivas Murthy P Mphasis an HP Company

    201!11!0" #ersion$ 0%1

    SLL

    Weblogic Ant Buil& 'ocument

  • 8/14/2019 SLL_Weblogic Ant _Build_0_1.doc

    2/8

    Stockholms Lns Landsting BoP Weblogic Ant scriptsBAT och Portal Srinivas Murthy P Mphasis an HP Company

    201!11!0" #ersion$ 0%1

    Dokumentinformation

    Dokumentgare: Srinivas Murthy P HP Services

    Titel: BoP! Weblogic Ant buil& scripts

    Versionshistorik

    Ver. Datum Frfattare Beskrining

    0%1 2011!0!1" Srinivas Murthy P

    Mphasis an HPCompany

    (irst &ra)t

    2 *+,

  • 8/14/2019 SLL_Weblogic Ant _Build_0_1.doc

    3/8

    Stockholms Lns Landsting BoP Weblogic Ant scriptsBAT och Portal Srinivas Murthy P Mphasis an HP Company

    201!11!0" #ersion$ 0%1

    Content

    ! "ntroduction.................................................................................................................................................... #

    $ Background.................................................................................................................................................... #

    % Prere&uisite.................................................................................................................................................... #

    %1 A-. /%2 ' /% Weblogic or3shop%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /%/ S#- /%4 PA.H An& C5ASSPA.H settings%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /

    # 'heck out Scri(t............................................................................................................................................ )

    ) Building the a((lication *A+,s..................................................................................................................... -

    - aster Build................................................................................................................................................... /

    *+,

  • 8/14/2019 SLL_Weblogic Ant _Build_0_1.doc

    4/8

    Stockholms Lns Landsting BoP Weblogic Ant scriptsBAT och Portal Srinivas Murthy P Mphasis an HP Company

    201!11!0" #ersion$ 0%1

    ! "ntroduction

    .his &ocument &escribes about the steps to buil& ear )or S55 applications through Weblogic Ant script%

    $ Background

    Weblogic Ant scripts have been create& )or buil&ing the ear )iles )or Sll applications an& seamlessly integrating ith&eployment scripts ithout the ai& o) Weblogic Wor3shop%

    % Prere&uisite

    .he )olloing are necessary )or buil&ing the ear )iles using Weblogic Ant Scripts

    %.! A0T

    A-.6H7M8 shoul& be set via the e9port comman& an& it shoul& point to 1%"%4 provi&e& by eblogic% export ANT_HOME=/opt/bea/bea_10_3/modules/org.apache.at_1.!."#

    %.$ 1D2

    A#A6H7M8 shoul& be set via the e9port comman& an& it shoul& point to

    export $A%A_HOME=/opt/bea/bea_10_3/&roc'(t_1!0_0"

    %.% 3e4logic 5orksho(

    Weblogic Ant scripts shoul& be generate& )rom the eblogic or3shop: this shoul& be only &one once )or all

    application: a)ter that the S#- ill have these scripts chec3e& an& tagge&%

    %.# SV0

    ;e

  • 8/14/2019 SLL_Weblogic Ant _Build_0_1.doc

    5/8

    Stockholms Lns Landsting BoP Weblogic Ant scriptsBAT och Portal Srinivas Murthy P Mphasis an HP Company

    201!11!0" #ersion$ 0%1

    # 'heck out Scri(t(irst e nee& to chec3out the the co&e )rom S#-: )or this e have a separate ant buil& )ile:

    Ant (ile -ame$ chec3outbuil&%9mlComman& to e9ecute$ ant ) chec3outbuil&%9ml

    -ote$ Alrea&y e have chec3out the co&e in ?home?eblogic?sll!eblogic!scripts?chec3out?sllAuth % -o nee& tochec3 out again%

    4 *+,

  • 8/14/2019 SLL_Weblogic Ant _Build_0_1.doc

    6/8

    Stockholms Lns Landsting BoP Weblogic Ant scriptsBAT och Portal Srinivas Murthy P Mphasis an HP Company

    201!11!0" #ersion$ 0%1

    ) Building the a((lication *A+,s

    8ach application ill have one master buil& hich in turn ill call the sub pro=ects buil& )ile%

    89ample$ (or sllAuth the )olloing is the structure

    Chec3out )ol&er name )or sllAuth application $/home/weblogic/sll-weblogic-scripts/checkout/sllAuth

    Application Buil& $ Dnsi&e the sllAuth )ol&er 4uild.7mlcalls other buil& )iles )or sllAuth application *subpro=ects,%

    Pro=ects Buil&$ Dnsi&e the sllAuth )ol&er there are sub pro=ects li3e sllava: sllCon): sllProperties %:etc containsspeci)ic buil&%9ml )iles hich are responsible )or buil&ing those applications%

    Properties: Each application ear is dependent property file applicationname.properties, this property file is used for configuring jar/war files location.

    " *+,

  • 8/14/2019 SLL_Weblogic Ant _Build_0_1.doc

    7/8

    Stockholms Lns Landsting BoP Weblogic Ant scriptsBAT och Portal Srinivas Murthy P Mphasis an HP Company

    201!11!0" #ersion$ 0%1

    - aster Build

    .he master buil& ant )ile *masterbuil&%9ml, is locate& in/home/weblogic/sll-weblogic-scripts, it isresponsible for calling any of applications or all applications.

    Note :!his is the build script we need to call for building the ear"s.

    #ommand to run the $aster build file

    Properties: master.properties contains the application path, we can configure to the re%uired.

    $ ant f masterbuild.xml

    E *+,

  • 8/14/2019 SLL_Weblogic Ant _Build_0_1.doc

    8/8

    Stockholms Lns Landsting BoP Weblogic Ant scriptsBAT och Portal Srinivas Murthy P Mphasis an HP Company

    201!11!0" #ersion$ 0%1

    + *+,