Skip to content

Commit a3a53d5

Browse files
authored
Merge pull request #261 from Edirom/be_port-mechanism
Initialize config.json from properties
2 parents bf4ccf9 + ed61559 commit a3a53d5

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

build.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@
7373

7474
<target name="inject-properties">
7575
<!-- copy app.js to build dir -->
76-
<copy file="${build.dir}/app.js" tofile="${build.dir}/app-temp.js" preservelastmodified="true">
76+
<copy file="${build.dir}/app.js" tofile="${build.dir}/app-temp.js" preservelastmodified="true"/>
77+
<copy file="${build.dir}/app-temp.js" tofile="${build.dir}/app.js" overwrite="true" preservelastmodified="true"/>
78+
<delete file="${build.dir}/app-temp.js"/>
79+
<!-- Copy CITATION.cff to resources -->
80+
<copy file="${basedir}/CITATION.cff" tofile="${build.dir}/resources/CITATION.cff" overwrite="true"/>
81+
<copy file="${basedir}/config.json" tofile="${build.dir}/config.json" overwrite="true">
7782
<filterset begintoken="@" endtoken="@">
7883
<filter token="backend.url" value="${backend.url}"/>
7984
<filter token="backend.path" value="${backend.path}"/>
8085
</filterset>
8186
</copy>
82-
<copy file="${build.dir}/app-temp.js" tofile="${build.dir}/app.js" overwrite="true" preservelastmodified="true"/>
83-
<delete file="${build.dir}/app-temp.js"/>
84-
<!-- Copy CITATION.cff to resources -->
85-
<copy file="${basedir}/CITATION.cff" tofile="${build.dir}/resources/CITATION.cff" overwrite="true"/>
86-
<copy file="${basedir}/config.json" tofile="${build.dir}/config.json" overwrite="true"/>
8787
</target>
8888

8989
<target name="copy-xar-resources">

config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"backendURL": "http://localhost:8080/exist/apps/Edirom-Online-Backend/",
3-
"backendPath": "/exist/apps/Edirom-Online-Backend/"
2+
"backendURL": "@backend.url@",
3+
"backendPath": "@backend.path@"
44
}

0 commit comments

Comments
 (0)