summaryrefslogtreecommitdiff
path: root/build.ant
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-05-12 11:21:32 +0300
committerLV-426 <lv-426@taproot.org.il>2015-05-12 14:59:08 +0300
commit7bea0fd4fe4016483f7af4a17c5a5e24e47b75bc (patch)
tree3c058ada12b2ea8f87f3434d904a1450ad8c1442 /build.ant
parentc82c9625568a2c3b758a7c9edb79d816d5d4b10f (diff)
app.js: support fragment path injection
Diffstat (limited to 'build.ant')
-rw-r--r--build.ant10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.ant b/build.ant
index ff5737b1..ec559d6f 100644
--- a/build.ant
+++ b/build.ant
@@ -163,6 +163,11 @@
excludes="template.d/" />
</copy>
+ <replaceregexp file="${deploy_target_dir}/static/js/app.js">
+ <regexp pattern="\$\{fragment_d_path\}" />
+ <substitution expression="/static/fragment.d" />
+ </replaceregexp>
+
</parallel>
</target>
@@ -243,6 +248,11 @@
<substitution expression="${package_name}" />
</replaceregexp>
+ <replaceregexp file="${build_dir__deb_pkg}/src/client/app.js">
+ <regexp pattern="\$\{fragment_d_path\}" />
+ <substitution expression="/fragment.d" />
+ </replaceregexp>
+
<!-- generate version fragment -->
<generate_version_tag outputdir="${build_dir__deb_pkg}/${default_fragmentd_src_path}/template.d" />