Browse Source

script doc: add judoscript example

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276865 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
4b7be3b84f
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      docs/manual/OptionalTasks/script.html

+ 5
- 1
docs/manual/OptionalTasks/script.html View File

@@ -55,7 +55,7 @@ Groups@Google: "Rhino, enum.js, JavaAdapter?"</a> by Norris Boyd in the newsgrou
</tr>
</table>
<h3>Examples</h3>
The following snippet shows use of three different languages:
The following snippet shows use of four different languages:
<blockquote><pre>
&lt;property name="message" value="Hello world"/&gt;

@@ -67,6 +67,10 @@ The following snippet shows use of three different languages:
System.out.println("message is " + message);
&lt;/script&gt;

&lt;script language="judoscript"&gt;
println 'message is ', message
&lt;/script&gt;

&lt;script language="jython"&gt;
print "message is %s" % message
&lt;/script&gt;


Loading…
Cancel
Save