Issue #182 has been updated by Raphaël Ouazana.

Status changed from Assigned to Feedback
Assigned to changed from Raphaël Ouazana to Clément OUDOT
% Done changed from 0 to 60

Thank for the idea. I have rewritten this feature to work with LSC 2.1 (new 
configuration engine, different scripting engine).

Now you can use something like this:
<pre>
<lsc>...<tasks><task>...<scriptInclude><string>myScript.js</string><string>mySecondStript.js</string</scriptInclude>...
</pre>

The script is loaded relatively to the configuration directory.
If its extension is .js, it is assumed to be a javascript file.
It its extension is .groovy, .gvy .gy or .gsh, it is assumed to be a groovy 
file.

Still to do:
- if OK, merge into branch 2.1
- redeploy xsd ans lsc.episode files where needed
- document the feature (and in the same time the hidden parameter customLibrary 
^^)
----------------------------------------
Feature #182: Separated JS
http://tools.lsc-project.org/issues/182

Author: Quentin Raynaud
Status: Feedback
Priority: Normal
Assigned to: Clément OUDOT
Category: Core
Target version: 2.1


It would be great to have the possibility to add for each tasks and maybe 
globally too a JS file in which we can define things that would be present for 
every syncoptions.

Let me give some exemples :

etc/lib.js:
<pre>
function myFct1()
{
  return "myFct1";
}
</pre>

etc/libtask1.js:
<pre>
function myFct2()
{
  return "FyFct2";
}
</pre>


etc/lsc.properties:

<pre>
#...
lsc.java.tasks = "src/lib.js"
#...
lsc.tasks = task1, task2
lsc.tasks.task1.java = "src/libtask1.js"
#...
lsc.syncoptions.task1.property.force_value = myFct1() + myFct2() # OK
#...
lsc.syncoptions.task2.property.force_value = myFct1() + myFct2() # Not OK 
myFct1 is available but not myFct2 that is only included for task1
</pre>




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to