jstrachan 2003/01/21 11:02:49 Modified: jelly maven.xml Log: removed lots of cruft from the maven build; these goals have been moved into the jelly-tags builds Revision Changes Path 1.56 +16 -256 jakarta-commons-sandbox/jelly/maven.xml Index: maven.xml =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/jelly/maven.xml,v retrieving revision 1.55 retrieving revision 1.56 diff -u -r1.55 -r1.56 --- maven.xml 13 Jan 2003 16:10:18 -0000 1.55 +++ maven.xml 21 Jan 2003 19:02:49 -0000 1.56 @@ -1,7 +1,7 @@ <project default="java:jar" xmlns:j="jelly:core" xmlns:maven="jelly:maven" xmlns:util="jelly:util"> <!-- define the classpath used to run examples --> - <goal name="create-classpath" prereqs="java:compile, test:compile"> + <goal name="create-classpath" prereqs="java:compile,test:compile"> <path id="test.classpath"> <pathelement path="${maven.build.dest}"/> <pathelement path="target/classes"/> @@ -158,157 +158,34 @@ </echo> </goal> - <!-- demo programs --> - - - <goal name="demo:quartz" prereqs="create-classpath" - description="Runs the example quartz demo"> - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/quartz/example.jelly"/> - </java> - </goal> - - <goal name="demo:bean" prereqs="create-classpath" - description="Runs the example of binding beans to tags"> - - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/define/beanSample.jelly"/> - </java> - </goal> - <goal name="demo:jellybean" prereqs="create-classpath" - description="Runs the example of binding jelly beans to tags"> - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/define/jellyBeanSample.jelly"/> - </java> - </goal> - <goal name="demo:html" prereqs="create-classpath" - description="Runs the example of parsing HTML with jelly"> - - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/html/example.jelly"/> - </java> - </goal> - - <goal name="demo:text" prereqs="create-classpath" - description="Runs the example of parsing text with tags via jelly"> - - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/html/example2.jelly"/> - </java> - </goal> - - <goal name="demo:test" prereqs="create-classpath" - description="Runs a sample JUnit test suite via Jelly"> - - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/junit/testSuite.jelly"/> - </java> - </goal> - - <goal name="demo:junit" prereqs="create-classpath" - description="Runs the Jelly JUnit test suite"> - - <java classname="org.apache.commons.jelly.junit.TestJUnit" fork="yes"> - <classpath refid="test.classpath"/> - </java> - </goal> - - <goal name="demo:betwixt" prereqs="create-classpath" - description="Runs the betwixt test suite"> - - <java classname="org.apache.commons.jelly.betwixt.TestJelly" fork="yes"> - <classpath refid="test.classpath"/> - </java> - </goal> - - <goal name="demo:jeez" prereqs="create-classpath" - description="A demo of the jeez taglib"> - - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/jeez/example.jelly"/> - </java> - </goal> - - <goal name="demo:jeez2" prereqs="create-classpath" - description="A demo of the jeez taglib looks just like Ant"> - - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/jeez/filescanner.jelly"/> - </java> - </goal> - - <goal name="demo:fileset2" prereqs="create-classpath" - description="A demo of the fileScanner tag to walk Ant fileSets"> - - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/ant/filescanner.jelly"/> - </java> - </goal> - - <goal name="demo:werkz" prereqs="create-classpath" - description="A demo of the werkz tag library"> - - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/werkz/example.jelly"/> - </java> - </goal> - - <goal name="demo:jsl" prereqs="create-classpath" - description="Runs a simple demo of the JSL tags"> - - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/jsl/example.jelly"/> - </java> - - </goal> - - <goal name="demo:jsl2" prereqs="create-classpath" - description="Runs demo #2 of the JSL tags"> - - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/jsl/example2.jelly"/> - </java> - - - </goal> + <!-- demo programs --> - <goal name="demo:validate-rng" prereqs="create-classpath" - description="Runs a validation demo, with RelaxNG"> - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/validate/validateRNG.jelly"/> - </java> - </goal> - <goal name="demo:validate-dtd" prereqs="create-classpath" - description="Runs a validation demo, with DTD"> + <!-- a sample of using the command line interface to invoke Jelly --> + <goal name="demo:cmdline" prereqs="create-classpath" + description="Demonstrates how to use the command line interface to Jelly"> <java classname="org.apache.commons.jelly.Jelly" fork="yes"> <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/validate/validateDTD.jelly"/> + <arg value="src/test/org/apache/commons/jelly/testCmdLineOptions.jelly"/> + <arg value="-a"/> + <arg value="valueOfA"/> + <arg value="-b"/> + <arg value="valueOfB"/> + <arg value="-c"/> + <arg value="valueOfC"/> + <arg value="-Dtestsysprop=valueOfTestSystemProp"/> </java> </goal> - <goal name="demo:antjar" prereqs="create-classpath" - description="Runs a sample which creates a jar using the Ant tag library"> + <goal name="test:benchmark" prereqs="create-classpath" + description="A simple bit of Jelly script used as a benchmark to guage performance"> <java classname="org.apache.commons.jelly.Jelly" fork="yes"> <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/ant/example_jar.jelly"/> + <arg value="src/test/org/apache/commons/jelly/benchmark/benchmark.jelly"/> </java> </goal> @@ -319,81 +196,6 @@ </java> </goal> - <goal name="demo:sql" prereqs="create-classpath" - description="Runs an SQL demo"> - - <!-- Values used for testing --> - <property name="databaseUrl" value="jdbc:hsqldb:target/hsql"/> - <property name="databaseDriver" value="org.hsqldb.jdbcDriver"/> - <property name="databaseUser" value="sa"/> - <property name="databaseTable" value="SYSTEM_TABLES"/> - - <echo message="Running examples and outputting results to target directory"/> - - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <sysproperty key="databaseUrl" value="${databaseUrl}"/> - <sysproperty key="databaseDriver" value="${databaseDriver}"/> - <sysproperty key="databaseUser" value="${databaseUser}"/> - <sysproperty key="databaseTable" value="${databaseTable}"/> - <arg value="src/test/org/apache/commons/jelly/sql/example3.jelly"/> - </java> - - </goal> - - - - <goal name="demo:tagdef" prereqs="java:compile" - description="A demonstration of the use of tagdef inside a Maven build"> - - About to define the foo tag... - - <tagdef name="foo"> - <j:if test="${x == null}"> - <j:set var="x" value="${0}"/> - </j:if> - <echo>Called with ${name}. The value of x is ${x} and now will increment</echo> - <j:set var="x" value="${x + 1}"/> - <echo>Value is now ${x}</echo> - </tagdef> - - Now about to invoke the foo tag... - <foo name="a" x="1"/> - <foo name="b"/> - - Done - - </goal> - - - <goal name="demo:jellyunit" prereqs="create-classpath" - description="Runs the JellyUnit test cases using Jelly (rather than as part of the Maven/Ant junit task)"> - <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/jellyunit.jelly"/> - </java> - </goal> - - - <!-- a sample of using the command line interface to invoke Jelly --> - <goal name="demo:cmdline" prereqs="create-classpath" - description="Demonstrates how to use the command line interface to Jelly"> - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/testCmdLineOptions.jelly"/> - <arg value="-a"/> - <arg value="valueOfA"/> - <arg value="-b"/> - <arg value="valueOfB"/> - <arg value="-c"/> - <arg value="valueOfC"/> - <arg value="-Dtestsysprop=valueOfTestSystemProp"/> - </java> - </goal> - - <goal name="demo:async" description="An example of using asynchronous invocation of goals"> @@ -412,40 +214,6 @@ </goal> - <goal name="demo:soap" prereqs="create-classpath" - description="Runs a sample using Apache Axis to invoke a web service from inside Jelly"> - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/soap/example.jelly"/> - </java> - </goal> - - <goal name="demo:compactxml" prereqs="create-classpath"> - <mkdir dir="build/compactxml"/> - - <xslt basedir="." destdir="build/compactxml" - includes="*.xml" extension=".cml" style="src/script/asCompact.xsl"/> - </goal> - - - <goal name="demo:radio2pda" prereqs="create-classpath" - description="Converts the HTML news output of Radio Userland to simple HTML viewable on a PDA"> - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/html/radioToPDA.jelly"/> - <sysproperty key="outputFile" value="${pdaOutputFile}"/> - </java> - </goal> - - <goal name="test:benchmark" prereqs="create-classpath" - description="A simple bit of Jelly script used as a benchmark to guage performance"> - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/benchmark/benchmark.jelly"/> - </java> - </goal> - - <!-- NOTE that the following 2 postGoals can be removed when we can assume 1.0 Maven everywhere --> <!-- copies JAR resources stuff --> <postGoal name="java:compile"> @@ -470,13 +238,5 @@ </fileset> </copy> </postGoal> - - <goal name="demo:swt" prereqs="create-classpath" - description="Runs a JellySWT demo"> - <java classname="org.apache.commons.jelly.Jelly" fork="yes"> - <classpath refid="test.classpath"/> - <arg value="src/test/org/apache/commons/jelly/swt/example.jelly"/> - </java> - </goal> </project>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>