Repository: ode Updated Branches: refs/heads/ode-1.3.x 9c90ecaaf -> 676d0a8a5
Replace the web-console version in urlrewrite.xml during the build Project: http://git-wip-us.apache.org/repos/asf/ode/repo Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/5aade74f Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/5aade74f Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/5aade74f Branch: refs/heads/ode-1.3.x Commit: 5aade74fc96ed50690e59e049c3f333f419f5524 Parents: 9c90eca Author: sathwik <[email protected]> Authored: Mon Apr 17 12:09:53 2017 +0530 Committer: sathwik <[email protected]> Committed: Mon Apr 17 12:09:53 2017 +0530 ---------------------------------------------------------------------- Rakefile | 9 +++++++++ axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ode/blob/5aade74f/Rakefile ---------------------------------------------------------------------- diff --git a/Rakefile b/Rakefile index 141a0d2..8917c0e 100644 --- a/Rakefile +++ b/Rakefile @@ -120,6 +120,15 @@ define "ode" do root.merge(artifact(AXIS2_WAR)).exclude("WEB-INF/*").exclude("META-INF/*") end + #specify version of web console in urlrewrite.xml + build do + cp _("src/main/webapp/WEB-INF/urlrewrite.xml"), _(:target) + text = File.read(_(:target, "urlrewrite.xml")) + changed_text = text.gsub(/\$\{version\}/, artifact(ODE_WEB_CONSOLE).version) + File.open(_(:target, "urlrewrite.xml"),'w') {|f| f.puts changed_text} + package(:war).path("WEB-INF").include(_(:target, "urlrewrite.xml")) + end + task("start"=>[package(:war), jetty.use]) do |task| class << task ; attr_accessor :url, :path ; end task.url = "http://localhost:8080/ode" http://git-wip-us.apache.org/repos/asf/ode/blob/5aade74f/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml ---------------------------------------------------------------------- diff --git a/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml b/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml index 1562d93..b6fb06e 100644 --- a/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml +++ b/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml @@ -39,6 +39,6 @@ <condition type="request-uri" operator="notequal">/*/services/**</condition> <condition type="request-uri" operator="notequal">/*/deployment/**</condition> <from>/**</from> - <to>/webjars/ode-console/0.1.0-SNAPSHOT/$1</to> + <to>/webjars/ode-console/${version}/$1</to> </rule> </urlrewrite>
