Giter VIP home page Giter VIP logo

liferay-source-formatter's Introduction

Liferay Source Formatter

Liferay Source Formatter as a standalone project for easier development.

Setup

Requirements:

  • liferay-portal repository

This development environment relies on your Liferay Portal repository. It is important to keep your liferay-portal up-to-date when using this project.

To get started, create a gradle.properties file in the root directory and set the field liferay.portal.repo.dir:

liferay.portal.repo.dir=[insert path to your Liferay Portal repository]

Usage

This project provides several Gradle tasks for developing and running SF checks.

The pullCode task pulls Source Formatter code from your liferay-portal repository to this project. Make sure to save all local changes before running this command.

The pushCode task pushes local changes in this project to liferay-portal. This will overwrite and sync files in this project to the ones in your liferay-portal repository.

You can run Source Formatter code in this project by one of two ways:

  • Execute ./src/main/java/com/liferay/dev/SourceFormatterDev.java from an editor/IDE
  • Execute the Gradle task ./gradlew run

./gradlew run takes arguments args that configure Source Formatter. For example:

./gradlew run --args="source.base.dir=[path to directory to format]"

To see what you can configure through args, check the following documentation:

liferay-source-formatter's People

Contributors

kevhlee avatar

Watchers

 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.