Enable building services for target entity only

Description

Using service builder regulary, on small changes, may not be so efficient, because:

  • it takes too much time to build all portal services when developer needs to do only a small change (e.g. add one/few new methods),

  • there is that regular expression problem that breaks service building process in the middle, not reaching the rest of the entities.

The idea is to add an optional argument for service builder: target entity. now developer can pass single entity name; like 'User' and only user files are (re)generated (plus few common files).

Benefits:

  1. much faster - for example, rebuilding just user service takes 40 secs for me.

  2. much, much less changed files - as said above, only user related files are changed.

Activity

Show:

Miles Huang July 4, 2012 at 11:28 AM

This breaks the latest liferay-maven-support project build on trunk and 6.1.x branch

Brian Chan June 14, 2012 at 1:14 PM

I changed it to "service.target.entity.name":

ant build-service-portlet-blogs -Dservice.target.entity.name=BlogsStatsUser

Igor Spasic June 7, 2012 at 12:48 AM

With latest commit I've fixed the problem #2. For #1, Im not sure if it is a problem, as i see that these methods are explicitly skipped.

Igor Spasic June 6, 2012 at 8:04 AM

found possible problems with this:

  1. service.js - missing getBeanIdentifier and setBeanIdentifier

  2. portal-orm.xml - missing transient information

Igor Spasic June 6, 2012 at 6:06 AM

usage:

Fixed

Details

Assignee

Reporter

Labels

Branch Version/s

6.1.x

Backported to Branch

Committed

Epic/Theme

Git Pull Request

Components

Affects versions

Priority

Zendesk Support

Created June 6, 2012 at 5:50 AM
Updated June 26, 2023 at 6:19 AM
Resolved June 14, 2012 at 1:21 PM
Loading...