From a441b378b5b831538a3657608ad49f5b664f0ead Mon Sep 17 00:00:00 2001 From: cdujeu Date: Sat, 7 Nov 2015 13:29:04 +0100 Subject: [PATCH] Add a custom source_path parameter to package.json to trigger recompilation during upgrade process. --- core/src/plugins/gui.ajax/package.json | 1 + dist/phing/build-pydio.xml | 89 ++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/core/src/plugins/gui.ajax/package.json b/core/src/plugins/gui.ajax/package.json index a9300678ab..63bc9850d6 100644 --- a/core/src/plugins/gui.ajax/package.json +++ b/core/src/plugins/gui.ajax/package.json @@ -3,6 +3,7 @@ "version": "6.2.0", "description": "", "main": "index.js", + "source_path":"res/js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/dist/phing/build-pydio.xml b/dist/phing/build-pydio.xml index c6d746c8a8..eb72e3788e 100644 --- a/dist/phing/build-pydio.xml +++ b/dist/phing/build-pydio.xml @@ -147,9 +147,15 @@ + + + + + @@ -181,6 +187,15 @@ + + + + + + + + + @@ -499,6 +515,79 @@ + + + + + + + + + file = $file; + } + function main(){ + $content = file_get_contents($this->file); + $data = json_decode($content, true); + if(isSet($data["source_path"])){ + $this->project->setProperty('js_source_path', $data["source_path"]); + }else{ + $this->project->setProperty('js_source_path', '__NOT_FOUND__'); + } + } + } + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +