I have blogged about use of SubVersion repository for sharing ADF artifacts. You can read previous blog entries in this series at Part 1 and Part 2. In this blog post, I will describe use of FlexDeploy to automate generation of ADF Library JAR files.

We talked about using FlexDeploy to build ADF applications in Automate build process for fusion web application. I will expand that workflow to automatically commit ADF Library JAR files to SubVersion. Here is original workflow to build (compile) ADF application.

ADFBuildWorkflow

High Level Approach
  • Define workflow that is reusable and is not specific to single ADF application.
  • Define standard instance code naming scheme to derive SVN instance code for Library JAR files. In this case, I am using LIB prefix. So if SVN
  • Instance for Source is REPO1, then Library JAR will be stored in LIBREPO1 SVN Instance.
  • Using path matching to original Source for Library JAR folder. You definitely need some consistency for reusable automation processes.
  • Build ADF application using deployment profile.
  • Checkout SubVersion folder where ADF Library JAR files are stored.
  • Update checked out working copy with newly built JAR files.
  • Check-in changes done to JAR files.
  • Tag using same tag that was used for Source code, this will allow for debugging later if necessary.  

ADFBuildWorkflow-Updated

When buildADF workflow is executed, jar files will be generated in dependencies folder as shown below.

DependenciesFolder

Next step is to checkout library jar folder from SubVersion. We will use checkout plugin operation as shown below.

adflibjar_checkout

 

Now update new versions of JAR files in checked out working copy. We will use Shell plugin as shown below for copy.

adflibjar_updatejars

 

Now check in changes done in working copy to SubVersion. We will use checkin operation as shown below.

adflibjar_checkinjars

 

Now create tag matching source code, so that we can easily match library jars with corresponding source code.

adflibjar_tag

This completes workflow changes. Now when you run ADF build using FlexDeploy, ADF library jar files will be committed to SubVersion automatically and other projects can reuse ADF artifacts as described in this blog series.

Chandresh Patel

I have been working with Java EE technologies since 2000. After implementing IBM WebSphere and custom framework solutions, my past 10 years have been focused on Oracle Fusion Middleware such as WebLogic, ADF, WebCenter and Coherence. I have been part of many automation projects in the past and have a passion for automation capabilities to help our customers deliver software faster and with higher quality. In my current role as a Principal Architect at Flexagon, I am driving the FlexDeploy product strategy and development to build DevOps/CI/CD features that help our customers.

More posts by Chandresh Patel
    

Leave a Reply

Your email address will not be published. Required fields are marked *