blob: 71ec94afe379ca4b043029e849694ddf34a35f47 [file] [log] [blame]
<project default="java:jar" xmlns:j="jelly:core">
<!-- define the classpath used to run examples -->
<goal name="create-classpath" prereqs="java:compile, test:compile">
<path id="test.classpath">
<pathelement path="${maven.build.dest}"/>
<pathelement path="target/classes"/>
<pathelement path="target/test-classes"/>
<path refid="maven.dependency.classpath"/>
</path>
</goal>
<goal name="demo:swing" prereqs="create-classpath"
description="Runs a sample Swing demo, creating a Swing UI from Jelly script">
<java classname="org.apache.commons.jelly.Jelly" fork="yes">
<classpath refid="test.classpath"/>
<arg value="src/test/org/apache/commons/jelly/swing/example.jelly"/>
</java>
</goal>
<!-- move this into a Maven plugin -->
<goal name="jelly:runner" prereqs="create-classpath"
description="Runs the Jelly Runner which is a JellySwing script to run other Jelly scripts)">
<java classname="org.apache.commons.jelly.Jelly" fork="yes">
<classpath refid="test.classpath"/>
<sysproperty key="http.proxyHost" value="${maven.proxy.host}"/>
<sysproperty key="http.proxyPort" value="${maven.proxy.port}"/>
<arg value="src/test/org/apache/commons/jelly/swing/run.jelly"/>
</java>
</goal>
<goal name="jelly:runner2" prereqs="create-classpath"
description="Runs the Jelly Runner which is a JellySwing script to run other Jelly scripts)">
<j:include uri="file:///${user.dir}/src/test/org/apache/commons/jelly/swing/run.jelly"/>
<i:ask question="Hit Enter to terminate" answer="dummy" xmlns:i="jelly:interaction"/>
</goal>
<goal name="jelly:wizard" prereqs="create-classpath"
description="Runs the Jelly Runner which is a JellySwing script to run other Jelly scripts)">
<j:include uri="file:///${user.dir}/src/test/org/apache/commons/jelly/swing/wizard.jelly"/>
<i:ask question="Hit Enter to terminate" answer="dummy" xmlns:i="jelly:interaction"/>
</goal>
<!-- a simple example program to demonstrate the use of <tableModel> -->
<goal name="jelly:showvars" prereqs="create-classpath"
description="Displays the current variables in the Maven project">
<java classname="org.apache.commons.jelly.Jelly" fork="yes">
<classpath refid="test.classpath"/>
<sysproperty key="http.proxyHost" value="${maven.proxy.host}"/>
<sysproperty key="http.proxyPort" value="${maven.proxy.port}"/>
<arg value="src/test/org/apache/commons/jelly/swing/showVariables.jelly"/>
</java>
</goal>
</project>