Giter VIP home page Giter VIP logo

blade.tools's Introduction

Blade Tools

Travis CI Build Status Gitter

Blade Tools is a set of modular developer tools for building Liferay 7.0 plugins, aka modules built with OSGi. The idea is that instead of many of the tools that would normally be developed and released only as a part of Liferay IDE can now be built in a re-usable way (i.e. modular, just like Liferay 7.0 Core itself) and can be used outside or in conjunction with Liferay IDE, making these tools available for non-Liferay IDE or non-Eclipse users.

Install

Right now the only installable tool is the blade CLI tool that provides a few commands. It can be installed using the following:

Install JPM

Install JPM (Mac, Linux)

$ curl http://www.jpm4j.org/install/script | sh

OR

Install JPM (Windows)

Visit the JPM4J [Windows installation](https://www.jpm4j.org/#!/md/windows) setup guide.

Build blade cli jar

Clone this repo, and then from the command line execute following command:

$ gradle build export.blade.cli

Install Blade Tools jar using JPM

$ jpm install -fl blade.cli/generated/distributions/executable/blade.cli.jar

Now you should have the blade executable in your path. Try it by running:

blade

Usage

Once you have the blade cli installed you can see the list of commands just type

blade

Or java -jar blade.cli.jar if not using JPM.

Current available commands

Create

The Create command allows you to create new Liferay 7 module projects based on gradle or maven build.

$ blade create helloworld 

This will create a new helloworld portlet module project that contains an OSGi component built by a gradle script. To see all the options of the create command just run $blade create -h for all options.

Deploy

First, start Liferay 7 Portal, once it is running you can build your Liferay 7 module and deploy it

helloworld $ gradle build
helloworld $ blade deploy build/libs/helloworld-1.0.jar

If you have Liferay 7 running the blade tool should connect to the Liferay Module Framework and install your newly built module jar file. You can check the OSGi shell of Liferay to verify

$ telnet localhost 11311

Then issue the command lb helloworld

Migrate

License

All source to this project is available under Apache 2.0 License

blade.tools's People

Contributors

gamerson avatar andywu2015 avatar lovettli avatar simonjhy avatar kameshsampath avatar gitter-badger avatar

Watchers

Jim Hinkey avatar James Cloos avatar

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.