Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-studio
Commits
c315a787
Commit
c315a787
authored
Nov 08, 2014
by
apupier
Browse files
Fix case of no MANIFEST in .bos to import which was broken with previous
refactor
parent
aeb27e94
Changes
1
Hide whitespace changes
Inline
Side-by-side
bundles/plugins/org.bonitasoft.studio.common.repository/src/org/bonitasoft/studio/common/repository/operation/ImportBosArchiveOperation.java
View file @
c315a787
...
...
@@ -213,10 +213,12 @@ public class ImportBosArchiveOperation {
protected
Set
<
String
>
getResourcesToOpen
(
final
IContainer
container
)
{
final
Properties
manifestProperties
=
getManifestInfo
(
container
);
final
String
toOpen
=
manifestProperties
.
getProperty
(
ExportBosArchiveOperation
.
TO_OPEN
);
if
(
toOpen
!=
null
)
{
final
String
[]
array
=
toOpen
.
split
(
","
);
return
new
HashSet
<
String
>(
Arrays
.
asList
(
array
));
if
(
manifestProperties
!=
null
)
{
final
String
toOpen
=
manifestProperties
.
getProperty
(
ExportBosArchiveOperation
.
TO_OPEN
);
if
(
toOpen
!=
null
)
{
final
String
[]
array
=
toOpen
.
split
(
","
);
return
new
HashSet
<
String
>(
Arrays
.
asList
(
array
));
}
}
return
Collections
.
emptySet
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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