Code Monkey home page Code Monkey logo

l7tech-policy-manager's Introduction

Layer 7 Technologies - Policy Manager

Layer 7 Technologies was acquired by CA Technologies in 2013.

Policy Manager as native Mac .app

CA (f.k.a. Layer 7 Technologies) does not ship a native Mac OS X app for the CA API Gateway Policy Manager. They only ship a folder with the jar file and also a shell script. As a Mac user you want a real Mac like .app for starting the app faster via your favorite app launcher.

There are different ways to package a native java app. The easiest one for for the non developer user is via javapackager in my mind. javapackager comes with your local java installation.

The fastest way is the following.

  • Unpack Manager-9.0.00.tar.gz
  • Change into the directory Manager-9.0.00
  • Place an icon file in the directory (l7tech.icns)
  • Build the app

Command to build the app

/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/javapackager -deploy \
  -native \
  -name "CA API Gateway Policy Manager" \
  -title "CA API Gateway Policy Manager" \
  -appclass com.l7tech.console.Main \
  -outdir . \
  -outfile "CA API Gateway Policy Manager.app" \
  -srcfiles Manager.jar \
  -srcfiles lib \
  -srcfiles logging.properties \
  -Bruntime="/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk" \
  -Bicon=l7tech.icns \
  -BappVersion=9.0.00 \
  -Bmac.CFBundleName="CA API Gateway Policy Manager" \
  -Bmac.CFBundleVersion=1.0

This process creates automatically an Info.plist with some default values. You can modify it later on with what you additionally want or need in it. I prefer the prepare an Info.plist file and let the build process use my file.

The following process shows the build with using customized files.

  • Unpack Manager-9.0.00.tar.gz
  • Change into the directory Manager-9.0.00
  • Create the directory structure package/macosx
  • Place an icon file in the package/macosx with the name CA API Gateway Policy Manager.icns
  • Place the Info.plist file in the package/macosx with the name Info.plist
  • Build the app

Command to build the app

/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/javapackager -deploy \
  -native \
  -name "CA API Gateway Policy Manager" \
  -title "CA API Gateway Policy Manager" \
  -appclass com.l7tech.console.Main \
  -outdir . \
  -outfile "CA API Gateway Policy Manager.app" \
  -srcfiles Manager.jar \
  -srcfiles lib \
  -srcfiles logging.properties \
  -Bruntime="/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk"

The resulting app is in the folder bundle and is called CA API Gateway Policy Manager.app. As a last thing place the file InfoPlist.strings inside the .app in the folder Contents/Resources.
The text from the InfoPlist.strings is shown when you click on About Main in the menu bar.

l7tech-policy-manager's People

Stargazers

Zafar Siddiqi avatar Erwann Robin avatar bitsofinfo avatar

Watchers

James Cloos avatar Marco Schirrmeister avatar  avatar

Forkers

cunvoas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.