Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
saref-pipeline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SAREF
saref-pipeline
Commits
e8c4ab0a
Commit
e8c4ab0a
authored
5 years ago
by
Maxime Lefrançois
Browse files
Options
Downloads
Patches
Plain Diff
copy diagrams
parent
86258aa6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/fr/emse/gitlab/saref/jobs/GeneratePortal.java
+7
-1
7 additions, 1 deletion
src/main/java/fr/emse/gitlab/saref/jobs/GeneratePortal.java
with
7 additions
and
1 deletion
src/main/java/fr/emse/gitlab/saref/jobs/GeneratePortal.java
+
7
−
1
View file @
e8c4ab0a
...
@@ -85,8 +85,8 @@ public class GeneratePortal extends JobRunner {
...
@@ -85,8 +85,8 @@ public class GeneratePortal extends JobRunner {
for
(
ResIterator
it
=
config
.
listResourcesWithProperty
(
RDF
.
type
,
EX
.
OntologyVersion
);
it
.
hasNext
();)
{
for
(
ResIterator
it
=
config
.
listResourcesWithProperty
(
RDF
.
type
,
EX
.
OntologyVersion
);
it
.
hasNext
();)
{
Resource
resource
=
it
.
next
();
// https://saref.etsi.org/core/master/
Resource
resource
=
it
.
next
();
// https://saref.etsi.org/core/master/
String
uri
=
resource
.
getURI
();
String
uri
=
resource
.
getURI
();
String
ontoDirPath
=
uri
.
substring
(
Constants
.
BASE
.
length
(),
uri
.
length
()
-
1
);
// core/master
try
{
try
{
String
ontoDirPath
=
uri
.
substring
(
Constants
.
BASE
.
length
(),
uri
.
length
()
-
1
);
// core/master
File
ontoDir
=
new
File
(
siteDir
,
ontoDirPath
);
File
ontoDir
=
new
File
(
siteDir
,
ontoDirPath
);
FileUtils
.
forceMkdir
(
ontoDir
);
FileUtils
.
forceMkdir
(
ontoDir
);
String
repoName
=
resource
.
getRequiredProperty
(
EX
.
repositoryName
).
getString
();
// saref-core
String
repoName
=
resource
.
getRequiredProperty
(
EX
.
repositoryName
).
getString
();
// saref-core
...
@@ -108,6 +108,12 @@ public class GeneratePortal extends JobRunner {
...
@@ -108,6 +108,12 @@ public class GeneratePortal extends JobRunner {
}
catch
(
Exception
ex
)
{
}
catch
(
Exception
ex
)
{
logger
.
error
(
String
.
format
(
"Unexpected exception while writing static files for %s"
,
resource
),
ex
);
logger
.
error
(
String
.
format
(
"Unexpected exception while writing static files for %s"
,
resource
),
ex
);
}
}
try
{
File
diagramDir
=
new
File
(
siteDir
,
ontoDirPath
+
File
.
separator
+
"diagrams"
);
FileUtils
.
copyDirectory
(
new
File
(
directory
,
"diagrams"
),
diagramDir
);
}
catch
(
IOException
ex
)
{
logger
.
warn
(
"Could not copy diagrams directory"
,
ex
);
}
}
}
if
(!
ignoreTerms
)
{
if
(!
ignoreTerms
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment