forked from sbryzak/ticket-monster
-
Notifications
You must be signed in to change notification settings - Fork 13
/
admin_layer.fsh
41 lines (24 loc) · 1.14 KB
/
admin_layer.fsh
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
34
35
36
37
38
39
@/* Forge Script - Generates the administration view */;
@/* Clear the screen */;
clear;
@/* This means less typing. If a script is automated, or is not meant to be interactive, use this command */;
set ACCEPT_DEFAULTS true;
@/* Enable scaffolding from entities */;
scaffold setup;
@/* Enable RichFaces for wizzy widgets from entities */;
richfaces setup;
@/* Scaffold CRUD views for the entities that an admin would start drilling down into the data model from */;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.* --targetDir admin;
@/* Ask the user whether they want to patch in the changes described in the tutorial */;
set ACCEPT_DEFAULTS false;
if ( SHELL.promptBoolean("Apply manual changes described in tutorial?") ) {
echo Applying manual changes described in tutorial based on admin_layer.patch;
git apply admin_layer.patch;
}
if ( SHELL.promptBoolean("Deploy to JBoss AS 7?") ) {
@/* Deploy this to JBoss AS 7 to see the result */;
build clean package jboss-as:deploy;
echo Examine the app so far at http://localhost:8080/ticket-monster/faces/admin/index.xhtml;
} else {
build clean package;
}