Asankha, I have Committed the code. BTW: Upul, can you change the unit tests for the ScriptMediator in a way that this functionality will also be tested on the go as Asankha suggested.
Thanks, Ruwan. On 9/5/07, Asankha C. Perera <[EMAIL PROTECTED]> wrote: > > Upul > > This looks like a useful enhancement - esp for Javascript and other > scripting languages and to reuse common scripts. Once Ruwan gives the go > ahead I would like to see this code go into Synapse. Also make sure to have > unit tests that validates this > > thanks > asankha > > Upul Godage (JIRA) wrote: > > [ > https://issues.apache.org/jira/browse/SYNAPSE-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525078 > ] > > Upul Godage commented on SYNAPSE-126: > ------------------------------------- > > <include /> only used for external scripts. That is when <script key="..." > > is used. > New syntax after this change, > > <script language="js" key="script/stockquoteTransform.js" > function="transformRequest"> > <include key="script/testInclude.js" /> > <include key="script/testInclude2.js" /> > </script> > > Including multipe script files in ScriptMediator > ------------------------------------------------ > > Key: SYNAPSE-126 > URL: https://issues.apache.org/jira/browse/SYNAPSE-126 > Project: Synapse > Issue Type: Improvement > Components: Extension Mediators > Reporter: Upul Godage > Priority: Minor > Attachments: patch-SYNAPSE-126.txt > > > Present implementation does not support including multiple script files in > ScriptMediator. > > > -- Ruwan Linton http://www.wso2.org - "Oxygenating the Web Services Platform"
