Skip to content

Instantly share code, notes, and snippets.

@noahcampbell
Created October 26, 2010 18:02
Show Gist options
  • Save noahcampbell/647437 to your computer and use it in GitHub Desktop.
Save noahcampbell/647437 to your computer and use it in GitHub Desktop.
Example Javascript of options
[ {name: 'foobar', value: 'foobar-value'},
{name: 'barbaz', value: 'barbaz-value'},
{name: 'bazfoo', value: 'bazfoo-value'}, ]
[ {name: 'foobar', value: 'foobar-value'},
{name: 'barbaz', value: 'barbaz-value2'},
{name: 'barbaz', value: 'barbaz-value1'},
{name: '', value: 'barbaz-value1'},
{name: 'bazfoo', value: 'bazfoo-value'}, ]
<joblist>
<job>
<name>new_format</name>
<description>New Format Test Job</description>
<additional />
<loglevel>INFO</loglevel>
<group>test</group>
<context>
<project>test</project>
<options>
<option name='Inlinelist' enforcedvalues='true' required='false' values='1,2,3' />
<option name='inlinelistwithdefault' value='2' enforcedvalues='true' required='false' values='0,10,2,4,6,8' />
<option name='list' enforcedvalues='true' required='false' valuesUrl='file:/tmp/rdl/projects/test/etc/list.options' />
<option name='listwithdefault' value='a' enforcedvalues='true' required='true' valuesUrl='file:/tmp/rdl/projects/test/etc/list.options' />
<option name='new_style' enforcedvalues='true' required='false' valuesUrl='file:/tmp/rdl/projects/test/etc/newformat.options' />
<option name='new_style_withdefault' value='barbaz-value' enforcedvalues='true' required='false' valuesUrl='file:/tmp/rdl/projects/test/etc/newformat.options' />
<option name='newformatplus' enforcedvalues='true' required='false' valuesUrl='file:/tmp/rdl/projects/test/etc/newformatplus.options' />
</options>
</context>
<sequence threadcount='1' keepgoing='false' strategy='node-first'>
<command>
<exec>uname -a </exec>
</command>
</sequence>
<dispatch>
<threadcount>1</threadcount>
<keepgoing>false</keepgoing>
</dispatch>
</job>
</joblist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment