Changeset 1541:ed28b7d643b9
- Timestamp:
- 10/26/10 17:22:06 (3 years ago)
- Author:
- Jean-Guilhem Rouel <jean-gui@…>
- Branch:
- default
- Message:
-
Added a task to build a command-line version of Unicorn (related to tickets #147 and #150)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1491
|
r1541
|
|
| 1 | 1 | Manifest-Version: 1.0 |
| | 2 | Ant-Version: Apache Ant 1.8.0 |
| | 3 | Created-By: 1.6.0_22-b04 (Sun Microsystems Inc.) |
| 2 | 4 | Main-Class: org.w3c.unicorn.UnicornClient |
| | 5 | Class-Path: conf/ |
| | 6 | lib/activation-1.1.jar |
| | 7 | lib/ant-1.6.jar |
| | 8 | lib/antlr-2.7.2.jar |
| | 9 | lib/avalon-framework-4.1.3.jar |
| | 10 | lib/commons-beanutils-1.7.0.jar |
| | 11 | lib/commons-chain-1.1.jar |
| | 12 | lib/commons-collections-3.2.1.jar |
| | 13 | lib/commons-digester-1.8.jar |
| | 14 | lib/commons-fileupload-1.2.1.jar |
| | 15 | lib/commons-io-1.4.jar |
| | 16 | lib/commons-lang-2.5.jar |
| | 17 | lib/commons-logging-1.1.1.jar |
| | 18 | lib/commons-validator-1.3.1.jar |
| | 19 | lib/dom4j-1.1.jar |
| | 20 | lib/icu4j-4_4_1_1.jar |
| | 21 | lib/jdom-1.0.jar |
| | 22 | lib/log4j-1.2.12.jar |
| | 23 | lib/logkit-2.0.jar |
| | 24 | lib/mail-1.4.1.jar |
| | 25 | lib/oro-2.0.8.jar |
| | 26 | lib/portlet-api-1.0.jar |
| | 27 | lib/servlet-api-2.5.jar |
| | 28 | lib/sslext-1.2-0.jar |
| | 29 | lib/stax-api-1.0.1.jar |
| | 30 | lib/struts-core-1.3.8.jar |
| | 31 | lib/struts-taglib-1.3.8.jar |
| | 32 | lib/struts-tiles-1.3.8.jar |
| | 33 | lib/unicorn-response.jar |
| | 34 | lib/unicorn-tasklist.jar |
| | 35 | lib/velocity-1.6.4.jar |
| | 36 | lib/velocity-tools-2.0.jar |
| | 37 | lib/werken-xpath-0.9.4.jar |
| | 38 | lib/xmlbeans-2.4.0.jar |
| | 39 | lib/yuicompressor-2.3.6.jar |
-
-
|
r1532
|
r1541
|
|
| 5 | 5 | |
| 6 | 6 | <task id="conformance" default="true"> |
| | 7 | <conds> |
| | 8 | <cond id="is_input_uri" result="passed" type="method"> |
| | 9 | <value>uri</value> |
| | 10 | </cond> |
| | 11 | </conds> |
| 7 | 12 | |
| 8 | 13 | <routine> |
| … |
… |
|
| 13 | 18 | <exec id="css1" value="css1-validator" type="observation" /> |
| 14 | 19 | <exec id="feed" value="feed" type="observation" /> |
| | 20 | <if test="is_input_uri"> |
| | 21 | <then><exec id="http" value="http" type="observation" /></then> |
| | 22 | </if> |
| 15 | 23 | </routine> |
| 16 | 24 | |
| … |
… |
|
| 39 | 47 | <group> |
| 40 | 48 | <observation>feed</observation> |
| | 49 | <observation>http</observation> |
| 41 | 50 | </group> |
| 42 | 51 | </output> |
| … |
… |
|
| 333 | 342 | </output> |
| 334 | 343 | </task> |
| 335 | | |
| | 344 | <!-- |
| 336 | 345 | <task id="i18n"> |
| 337 | 346 | <routine> |
| … |
… |
|
| 348 | 357 | </output> |
| 349 | 358 | </task> |
| 350 | | |
| | 359 | --> |
| 351 | 360 | <!-- This task allows developers to test their Unicorn output easily. It should removed in production. --> |
| 352 | 361 | <task id="test"> |
-
|
r1527
|
r1541
|
|
| 74 | 74 | </target> |
| 75 | 75 | |
| | 76 | <target name="cli" depends="jar" description="--> use configuration files to run Unicorn from the command line"> |
| | 77 | <mkdir dir="${dist.dir}/cli"/> |
| | 78 | <mkdir dir="${dist.dir}/cli/conf"/> |
| | 79 | <mkdir dir="${dist.dir}/cli/tmp"/> |
| | 80 | |
| | 81 | <copy todir="${dist.dir}/cli/conf"> |
| | 82 | <fileset dir="WebContent/WEB-INF/conf/cli"/> |
| | 83 | </copy> |
| | 84 | |
| | 85 | <copy todir="${dist.dir}/cli"> |
| | 86 | <fileset dir="."> |
| | 87 | <include name="lib/*"/> |
| | 88 | </fileset> |
| | 89 | <fileset dir="WebContent/WEB-INF"> |
| | 90 | <include name="languages/**"/> |
| | 91 | <include name="resources/**"/> |
| | 92 | </fileset> |
| | 93 | <fileset dir="${dist.dir}" includes="unicorn.jar"/> |
| | 94 | </copy> |
| | 95 | |
| | 96 | </target> |
| | 97 | |
| 76 | 98 | <target name="jar" depends="compile" description="--> compile and package Unicorn as a jar"> |
| 77 | 99 | <mkdir dir="${dist.dir}"/> |