| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <!DOCTYPE project [<!ENTITY buildfile SYSTEM "./build-user.xml">]> |
|---|
| 3 | <!-- WARNING: Eclipse autogenerated file. |
|---|
| 4 | Any modifications will be overwritten. |
|---|
| 5 | Please edit build-user.xml instead. |
|---|
| 6 | --> |
|---|
| 7 | <project name="unicorn" default="build" basedir="."> |
|---|
| 8 | &buildfile; |
|---|
| 9 | <property name="unicorn.location" value="."/> |
|---|
| 10 | |
|---|
| 11 | <!-- Configure properties to access the Manager application --> |
|---|
| 12 | <property name="url" value="http://flyingman.sophia.w3.org:8180/manager"/> |
|---|
| 13 | <property name="username" value="manager"/> |
|---|
| 14 | <property name="password" value="******"/> |
|---|
| 15 | |
|---|
| 16 | <path id="project.classpath"> |
|---|
| 17 | <pathelement location="build"/> |
|---|
| 18 | <pathelement location="${unicorn.location}/lib/activation.jar"/> |
|---|
| 19 | <pathelement location="${unicorn.location}/lib/commons-collections-3.1.jar"/> |
|---|
| 20 | <pathelement location="${unicorn.location}/lib/commons-fileupload-1.1.1.jar"/> |
|---|
| 21 | <pathelement location="${unicorn.location}/lib/commons-io-1.2.jar"/> |
|---|
| 22 | <pathelement location="${unicorn.location}/lib/commons-logging-1.1.jar"/> |
|---|
| 23 | <pathelement location="${unicorn.location}/lib/icu4j_3_4.jar"/> |
|---|
| 24 | <pathelement location="${unicorn.location}/lib/iri.jar"/> |
|---|
| 25 | <pathelement location="${unicorn.location}/lib/jena.jar"/> |
|---|
| 26 | <pathelement location="${unicorn.location}/lib/jsr173_1.0_api.jar"/> |
|---|
| 27 | <pathelement location="${unicorn.location}/lib/log4j-1.2.12.jar"/> |
|---|
| 28 | <pathelement location="${unicorn.location}/lib/servlet.jar"/> |
|---|
| 29 | <pathelement location="${unicorn.location}/lib/velocity-1.5-dev.jar"/> |
|---|
| 30 | <pathelement location="${unicorn.location}/lib/xercesImpl.jar"/> |
|---|
| 31 | <pathelement location="${unicorn.location}/lib/catalina-ant.jar"/> |
|---|
| 32 | <pathelement location="${unicorn.location}/lib/observationresponse.jar"/> |
|---|
| 33 | <pathelement location="${unicorn.location}/lib/tasklist.jar"/> |
|---|
| 34 | <pathelement location="${unicorn.location}/lib/xbean.jar"/> |
|---|
| 35 | <pathelement location="${unicorn.location}/lib/xbean_xpath.jar"/> |
|---|
| 36 | <pathelement location="${unicorn.location}/lib/xmlbeans-qname.jar"/> |
|---|
| 37 | <pathelement location="${unicorn.location}/lib/xmlpublic.jar"/> |
|---|
| 38 | <pathelement location="${unicorn.location}/lib/saxon8.jar"/> |
|---|
| 39 | <pathelement location="${unicorn.location}/lib/saxon8-dom.jar"/> |
|---|
| 40 | <pathelement location="${unicorn.location}/lib/saxon8-jdom.jar"/> |
|---|
| 41 | <pathelement location="${unicorn.location}/lib/saxon8-xpath.jar"/> |
|---|
| 42 | </path> |
|---|
| 43 | |
|---|
| 44 | <!-- Configure the custom Ant tasks for the Manager application --> |
|---|
| 45 | <taskdef classpath="${unicorn.location}/lib/catalina-ant.jar" name="deploy" classname="org.apache.catalina.ant.DeployTask"/> |
|---|
| 46 | <taskdef classpath="${unicorn.location}/lib/catalina-ant.jar" name="list" classname="org.apache.catalina.ant.ListTask"/> |
|---|
| 47 | <taskdef classpath="${unicorn.location}/lib/catalina-ant.jar" name="reload" classname="org.apache.catalina.ant.ReloadTask"/> |
|---|
| 48 | <taskdef classpath="${unicorn.location}/lib/catalina-ant.jar" name="resources" classname="org.apache.catalina.ant.ResourcesTask"/> |
|---|
| 49 | <taskdef classpath="${unicorn.location}/lib/catalina-ant.jar" name="roles" classname="org.apache.catalina.ant.RolesTask"/> |
|---|
| 50 | <taskdef classpath="${unicorn.location}/lib/catalina-ant.jar" name="start" classname="org.apache.catalina.ant.StartTask"/> |
|---|
| 51 | <taskdef classpath="${unicorn.location}/lib/catalina-ant.jar" name="stop" classname="org.apache.catalina.ant.StopTask"/> |
|---|
| 52 | <taskdef classpath="${unicorn.location}/lib/catalina-ant.jar" name="undeploy" classname="org.apache.catalina.ant.UndeployTask"/> |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | <target name="init"> |
|---|
| 57 | <mkdir dir="build"/> |
|---|
| 58 | </target> |
|---|
| 59 | <target name="clean"> |
|---|
| 60 | <delete dir="build"/> |
|---|
| 61 | </target> |
|---|
| 62 | <target name="build" depends="init"> |
|---|
| 63 | <echo message="${ant.project.name}: ${ant.file}"/> |
|---|
| 64 | <javac destdir="build"> |
|---|
| 65 | <src path="."/> |
|---|
| 66 | <exclude name="lib/"/> |
|---|
| 67 | <classpath refid="project.classpath"/> |
|---|
| 68 | </javac> |
|---|
| 69 | </target> |
|---|
| 70 | <target name="Test (1)"> |
|---|
| 71 | <java fork="yes" classname="org.w3c.unicorn.generated.tasklist.Test" failonerror="true"> |
|---|
| 72 | <classpath refid="project.classpath"/> |
|---|
| 73 | </java> |
|---|
| 74 | </target> |
|---|
| 75 | <target name="CallParameter"> |
|---|
| 76 | <java fork="yes" classname="org.w3c.unicorn.contract.methods.CallParameter" failonerror="true"> |
|---|
| 77 | <classpath refid="project.classpath"/> |
|---|
| 78 | </java> |
|---|
| 79 | </target> |
|---|
| 80 | <target name="DigesterDriver"> |
|---|
| 81 | <java fork="yes" classname="bordel.DigesterDriver" failonerror="true"> |
|---|
| 82 | <classpath refid="project.classpath"/> |
|---|
| 83 | </java> |
|---|
| 84 | </target> |
|---|
| 85 | <target name="WADLUnmarshallerXPath"> |
|---|
| 86 | <java fork="yes" classname="org.w3c.unicorn.contract.wadl.WADLUnmarshallerXPath" failonerror="true"> |
|---|
| 87 | <classpath refid="project.classpath"/> |
|---|
| 88 | </java> |
|---|
| 89 | </target> |
|---|
| 90 | <target name="WADLUnmarshallerXPath (1)"> |
|---|
| 91 | <java fork="yes" classname="org.w3c.unicorn.contract.wadl.WADLUnmarshallerXPath" failonerror="true"> |
|---|
| 92 | <classpath refid="project.classpath"/> |
|---|
| 93 | </java> |
|---|
| 94 | </target> |
|---|
| 95 | <target name="TaskListUnmarshallerBeans"> |
|---|
| 96 | <java fork="yes" classname="org.w3c.unicorn.tasklist.TaskListUnmarshallerBeans" failonerror="true"> |
|---|
| 97 | <classpath refid="project.classpath"/> |
|---|
| 98 | </java> |
|---|
| 99 | </target> |
|---|
| 100 | <target name="IndexGenerator"> |
|---|
| 101 | <java fork="yes" classname="org.w3c.unicorn.index.IndexGenerator" failonerror="true"> |
|---|
| 102 | <classpath refid="project.classpath"/> |
|---|
| 103 | </java> |
|---|
| 104 | </target> |
|---|
| 105 | <target name="ListFiles"> |
|---|
| 106 | <java fork="yes" classname="org.w3c.unicorn.util.ListFiles" failonerror="true"> |
|---|
| 107 | <classpath refid="project.classpath"/> |
|---|
| 108 | </java> |
|---|
| 109 | </target> |
|---|
| 110 | |
|---|
| 111 | <target name="deploy" description="Install web application" depends="war"> |
|---|
| 112 | <deploy url="${url}" username="${username}" password="${password}" path="/unicorn" |
|---|
| 113 | war="unicorn.war"/> |
|---|
| 114 | </target> |
|---|
| 115 | |
|---|
| 116 | <target name="reload" description="Reload web application"> |
|---|
| 117 | <reload url="${url}" username="${username}" password="${password}" path="/unicorn"/> |
|---|
| 118 | </target> |
|---|
| 119 | |
|---|
| 120 | <target name="undeploy" description="Remove web application"> |
|---|
| 121 | <undeploy url="${url}" username="${username}" password="${password}" path="/unicorn"/> |
|---|
| 122 | </target> |
|---|
| 123 | |
|---|
| 124 | </project> |
|---|