Skip to content

Commit 8dd0176

Browse files
committed
-oxn option added to precommit config
Signed-off-by: mereolog <pawel.garbacz@makolab.com>
1 parent c463fd1 commit 8dd0176

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

etc/git-hook/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ __log_config__
175175
--target-format ${target_format} \
176176
--use-dtd-subset \
177177
--inline-blank-nodes \
178-
--infer-base-iri
178+
--infer-base-iri \
179+
--omit-xmlns-namespace
179180
rc=$?
180181
set +x
181182

etc/git-hook/pre-commit-unix

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,17 @@ __log_config__
133133

134134
log "Launching the rdf-toolkit with --input-file ${file}"
135135

136-
#set -x
137-
${java_exe} -Xmx1g -Dorg.clapper.avsl.config=${logcfg} -jar ${toolkit_jar} \
138-
--input-file ${file} \
139-
--output-file ${file} \
140-
--force \
141-
--base-dir ${base_dir} \
142-
--base-url "http://www.omg.org/spec/EDMC-FIBO/"
136+
set -x
137+
"${java_exe}" -Xmx1g "-Dorg.clapper.avsl.config=${logcfg}" -cp "${RDF_TOOLKIT_JAR}" org.edmcouncil.rdf_toolkit.RdfFormatter \
138+
--source "${file}" \
139+
--target "${file}X" \
140+
--target-format ${target_format} \
141+
--use-dtd-subset \
142+
--inline-blank-nodes \
143+
--infer-base-iri \
144+
--omit-xmlns-namespace
143145
rc=$?
144-
#set +x
146+
set +x
145147

146148
rm -f "${logcfg}" >/dev/null 2>&1
147149

0 commit comments

Comments
 (0)