forked from liferay/liferay-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create.bat
33 lines (24 loc) · 990 Bytes
/
create.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
if "" == "%1" goto errorCreate
if "" == "%2" goto errorCreate
if "" == "%3" set PORTLET_FRAMEWORK=mvc
if not "" == "%3" set PORTLET_FRAMEWORK=%3
call ..\tools\gradle\gradlew.bat --build-file=..\sdk.gradle -PportletName=%1 -PportletDisplayName=%2 -PportletFramework=%PORTLET_FRAMEWORK% createPortlet
rem call ant deploy
goto end
:errorCreate
echo.
echo Usage: create.bat hello-world "Hello World"
echo.
echo The first hello-world is your portlet id. A new directory will be created based
echo on the portlet id.
echo.
echo The second "Hello World" is the portlet's display name. The quotation marks are
echo only needed because there is a space in the display name.
echo.
echo A third value can be passed to specify the portlet framework to use. Valid
echo values are "jsf", "icefaces", "liferay_faces_alloy", "mvc", "primefaces",
echo "richfaces", "spring_mvc", or "vaadin". The default value is "mvc". The
echo quotation marks are not needed.
goto end
:end