Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
ff42d43a
Commit
ff42d43a
authored
Jun 07, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb command 'build all' added
parent
4114ccaa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
9 deletions
+31
-9
wb/lib/wb/src/wb_build.cpp
wb/lib/wb/src/wb_build.cpp
+5
-8
wb/lib/wb/src/wb_wnav_command.cpp
wb/lib/wb/src/wb_wnav_command.cpp
+26
-1
No files found.
wb/lib/wb/src/wb_build.cpp
View file @
ff42d43a
...
...
@@ -176,6 +176,11 @@ void wb_build::all( int no_export, int no_classvolumes, int no_flowfiles)
int
force
=
opt
.
force
;
opt
.
force
=
1
;
// Save directory volume
if
(
((
wb_session
*
)
m_wnav
->
ldhses
)
->
cid
()
==
pwr_eClass_DirectoryVolume
)
sts
=
lfu_SaveDirectoryVolume
(
m_wnav
->
ldhses
,
m_wnav
->
wow
,
1
);
// Import, export files and build directories
import_files
(
bld_ePass_BeforeNode
);
if
(
evenSts
())
sumsts
=
m_sts
;
...
...
@@ -210,14 +215,6 @@ void wb_build::all( int no_export, int no_classvolumes, int no_flowfiles)
sprintf
(
cmd
,
"create snapshot/file=
\"
$pwrp_db/%s.wb_load
\"
/out=
\"
$pwrp_load/%s.dbs
\"
"
,
cdh_Low
(
vol
[
i
].
name
),
cdh_Low
(
vol
[
i
].
name
));
m_wnav
->
command
(
cmd
);
if
(
!
no_flowfiles
)
{
sprintf
(
cmd
,
"wb_cmd -c %s create flow/templ/all"
,
cdh_Low
(
vol
[
i
].
name
));
sts
=
system
(
cmd
);
if
(
sts
!=
0
)
{
printf
(
"** Create flow for classvolume %s error
\n
"
,
vol
[
i
].
name
);
}
}
break
;
default:
;
}
...
...
wb/lib/wb/src/wb_wnav_command.cpp
View file @
ff42d43a
...
...
@@ -466,7 +466,8 @@ dcli_tCmdTable wnav_command_table[] = {
"BUILD"
,
&
wnav_build_func
,
{
"dcli_arg1"
,
"dcli_arg2"
,
"/FORCE"
,
"/DEBUG"
,
"/CROSSREFERENCE"
,
"/MANUAL"
,
"/NAME"
,
"/WINDOW"
,
"/NODE"
,
""
}
"/MANUAL"
,
"/NAME"
,
"/WINDOW"
,
"/NODE"
,
"/EXPORT"
,
"/NOCLASSVOLUMES"
,
"/FLOWFILES"
,
""
}
},
{
"CHECK"
,
...
...
@@ -5530,6 +5531,30 @@ static int wnav_build_func( void *client_data,
command_sts
=
build
.
sts
();
}
}
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"ALL"
,
strlen
(
arg1_str
))
==
0
)
{
// command is "BUILD ALL"
int
exp
,
noclassvolumes
,
flowfiles
;
// if ( !(CoLogin::privilege() & pwr_mPrv_DevConfig)) {
// wnav->message( 'E', "User is not authorized to build");
// return WNAV__NOTAUTHORIZED;
// }
if
(
((
wb_session
*
)
wnav
->
ldhses
)
->
cid
()
!=
pwr_eClass_DirectoryVolume
)
{
wnav
->
message
(
'E'
,
"Can only build all from Directory volume"
);
return
WNAV__SYNTAX
;
}
wb_build
build
(
*
(
wb_session
*
)
wnav
->
ldhses
,
wnav
);
build
.
opt
.
debug
=
ODD
(
dcli_get_qualifier
(
"/DEBUG"
,
0
,
0
));
exp
=
ODD
(
dcli_get_qualifier
(
"/EXPORT"
,
0
,
0
));
noclassvolumes
=
ODD
(
dcli_get_qualifier
(
"/NOCLASSVOLUMES"
,
0
,
0
));
flowfiles
=
ODD
(
dcli_get_qualifier
(
"/FLOWFILES"
,
0
,
0
));
build
.
all
(
!
exp
,
noclassvolumes
,
!
flowfiles
);
wnav
->
message
(
' '
,
wnav_get_message
(
build
.
sts
()));
command_sts
=
build
.
sts
();
}
else
{
wnav
->
message
(
'E'
,
"Syntax error"
);
return
WNAV__SYNTAX
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment