|
| 1 | +<!-- $Header$ --> |
| 2 | +<project name="PARADE" default="compile" basedir="."> |
| 3 | +<property file="parade.properties" /> |
| 4 | + |
| 5 | + <path id="project.class.path"> |
| 6 | + <pathelement path="../utilities"/> |
| 7 | + </path> |
| 8 | + |
| 9 | + <property name="project.class.path" refid="project.class.path" /> |
| 10 | + |
| 11 | + <target name="install" description="install the project. Attempt to install Tomcat from the bundle."> |
| 12 | + <available file="parade.properties" property="properties.copied" /> |
| 13 | + <copy file="parade.properties.example" toFile="parade.properties" /> |
| 14 | + <fail unless="properties.copied" message="Configure parade.properties and start ant install again!"/> |
| 15 | + <cvs command="checkout ${generics.cvs}" dest=".."/> |
| 16 | + <ant antfile="${generics.path}" target="installTomcat"/> |
| 17 | + <cvs command="update" dest="." /> |
| 18 | + <antcall target="getMakumba" /> |
| 19 | + |
| 20 | + <copy file="${webapp.path}/WEB-INF/classes/MakumbaDatabase.properties.example" |
| 21 | + toFile="${webapp.path}/WEB-INF/classes/MakumbaDatabase.properties" /> |
| 22 | + <copy file="servletContext.properties.example" |
| 23 | + toFile="servletContext.properties" /> |
| 24 | + <cvs command="checkout utilities/" dest=".." /> |
| 25 | + |
| 26 | + <ant antfile="../utilities/build.xml" target="compile" dir="../utilities"/> |
| 27 | + |
| 28 | + <cvs command="checkout karamba/public_html/WEB-INF/classes/dataDefinitions" dest=".." /> |
| 29 | + <antcall target="compile"/> |
| 30 | + <echo message="Installation finished. Execute 'ant -projecthelp' to see what commands are available." /> |
| 31 | + </target> |
| 32 | + |
| 33 | + |
| 34 | + <target name="applets" description="compiles applets and copies them to the webapp"> |
| 35 | + <antcall target="compile"/> |
| 36 | + <!-- copy applets to webapp/ --> |
| 37 | + <copy toDir="webapp/" overwrite="true"> |
| 38 | + <fileset dir="webapp/WEB-INF/classes"> |
| 39 | + <include name="org/makumba/parade/applets/*.class" /> |
| 40 | + <include name="org/makumba/parade/sourceedit/*.class" /> |
| 41 | + </fileset> |
| 42 | + </copy> |
| 43 | +<echo>Press x in the Java Plugin console to make it forget old applets. If you have no java console, hold Shift while pressing Refresh in the browser. |
| 44 | +</echo> |
| 45 | + </target> |
| 46 | + |
| 47 | + |
| 48 | + <target name="tomcat" description="start tomcat 4" > |
| 49 | + <antcall target="compile" /> |
| 50 | + <!-- copy util-java/lib to tomcat's common, for use by webapps and LoginFilter |
| 51 | + according to the tomcat classloader howto, should be copied to tomcat's share/classes, |
| 52 | + but i couldn't get them to work frmom there. |
| 53 | + --> |
| 54 | + <copy toDir="${catalina.home}/common/lib" overwrite="true" > |
| 55 | + <fileset dir="../../util-java/lib"> |
| 56 | + <include name="*.jar" /> |
| 57 | + <include name="*.zip" /> |
| 58 | + <exclude name="makumba.jar" /> |
| 59 | + <exclude name="antlr.jar" /> |
| 60 | + </fileset> |
| 61 | + </copy> |
| 62 | + <!-- copy utilities to tomcat's common, for use by webapps and LoginFilter |
| 63 | + according to the tomcat classloader howto, should be copied to tomcat's share/classes, |
| 64 | + but i couldn't get them to work frmom there. |
| 65 | + --> |
| 66 | + <copy toDir="${catalina.home}/common/classes/org" overwrite="true"> |
| 67 | + <fileset dir="../utilities/org/"> |
| 68 | + <include name="eu/best/tools/*.class" /> |
| 69 | + </fileset> |
| 70 | + </copy> |
| 71 | + |
| 72 | + |
| 73 | + <!-- copy dataDefinitions to parade's WEB-INF, for use by AccessServlet --> |
| 74 | + <copy toDir="webapp/WEB-INF/classes/dataDefinitions" overwrite="true"> |
| 75 | + <fileset dir="../karamba/public_html/WEB-INF/classes/dataDefinitions"> |
| 76 | + <include name="**/*.mdd" /> |
| 77 | + <include name="**/*.idd" /> |
| 78 | + </fileset> |
| 79 | + </copy> |
| 80 | + |
| 81 | + <!-- copy BestMemberAuthorizer to parade's WEB-INF, for use by AccessServlet --> |
| 82 | + <copy toDir="webapp/WEB-INF/classes/org" overwrite="true"> |
| 83 | + <fileset dir="../utilities/org/"> |
| 84 | + <include name="eu/best/BestMemberAuthorizer*.class" /> |
| 85 | + </fileset> |
| 86 | + </copy> |
| 87 | + |
| 88 | + <!-- copy applets to webapp/ --> |
| 89 | + <copy toDir="webapp/" overwrite="true"> |
| 90 | + <fileset dir="webapp/WEB-INF/classes"> |
| 91 | + <include name="org/makumba/parade/applets/*.class" /> |
| 92 | + <include name="org/makumba/parade/sourceedit/*.class" /> |
| 93 | + </fileset> |
| 94 | + </copy> |
| 95 | + |
| 96 | + <antcall target="applets" /> |
| 97 | + |
| 98 | + <ant antfile="${generics.path}" target="startTomcat" /> |
| 99 | + </target> |
| 100 | + |
| 101 | + <target name="stopTomcat" description="stop tomcat 4"> |
| 102 | + <ant antfile="${generics.path}" target="stopTomcat" /> |
| 103 | + </target> |
| 104 | + |
| 105 | + <target name="reload" > |
| 106 | + <antcall target="compile" /> |
| 107 | + <ant antfile="${generics.path}" target="reload" /> |
| 108 | + </target> |
| 109 | + |
| 110 | + <target name="getMakumba" description="get the lastest makumba JAR. Use this if you see makumba compilation errors!!!" > |
| 111 | + <ant antfile="${generics.path}" target="getMakumba" /> |
| 112 | + </target> |
| 113 | + |
| 114 | + <target name="compile" description="compile the java files"> |
| 115 | + <ant antfile="${generics.path}" target="compile" inheritRefs="true"/> |
| 116 | + </target> |
| 117 | + |
| 118 | + <target name="clean" description="delete all generated and backup files"> |
| 119 | + <ant antfile="${generics.path}" target="clean"/> |
| 120 | + </target> |
| 121 | + |
| 122 | + <target name="maktomcat" description="for Makumba development. Compiles makumba and starts tomcat." > |
| 123 | + <ant antfile="../makumba/build.xml" target="jar" dir="../makumba"/> |
| 124 | + <copy file="../makumba/lib/makumba.jar" tofile="webapp/WEB-INF/lib/makumba.jar" overwrite="true" /> |
| 125 | + <antcall target="tomcat" /> |
| 126 | + </target> |
| 127 | + |
| 128 | + <target name= "jcvstest" depends="compile"> |
| 129 | +<!-- use this with ant -Dcvspass=yourCVSPass |
| 130 | +it's work in progress, see org.makumba.parade.CvsJCVSTest --> |
| 131 | + <java classname="org.makumba.parade.CvsJCVSTest" fork="true" |
| 132 | + failonerror="true" |
| 133 | + > |
| 134 | + <arg value="${cvspass}" /> |
| 135 | + <jvmarg value="-Xdebug"/> |
| 136 | + <jvmarg value="-Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,suspend=n" /> |
| 137 | + <classpath> |
| 138 | + <pathelement path="${webapp.home}/WEB-INF/classes"/> |
| 139 | + <path refid="project.class.path" /> |
| 140 | + </classpath> |
| 141 | + </java> |
| 142 | + </target> |
| 143 | + |
| 144 | + <target name= "babylon" description="Start a babylon chat server"> |
| 145 | + <java classname="babylonServer" fork="true"> |
| 146 | + <arg value="-nographics" /> |
| 147 | + <classpath> |
| 148 | + <pathelement path="${webapp.home}/chat/babylon.jar"/> |
| 149 | + <pathelement path="${webapp.home}/WEB-INF/classes"/> |
| 150 | + <path refid="project.class.path" /> |
| 151 | + </classpath> |
| 152 | + </java> |
| 153 | + </target> |
| 154 | + |
| 155 | + <target name= "babylonStop" description="Stop babylon chat server"> |
| 156 | + <java classname="babylonServerShutdown" fork="true"> |
| 157 | + <arg value="-nographics" /> |
| 158 | + <classpath> |
| 159 | + <pathelement path="${webapp.home}/chat/babylon.jar"/> |
| 160 | + <pathelement path="${webapp.home}/WEB-INF/classes"/> |
| 161 | + <path refid="project.class.path" /> |
| 162 | + </classpath> |
| 163 | + </java> |
| 164 | + </target> |
| 165 | + |
| 166 | + |
| 167 | +</project> |
| 168 | + |
0 commit comments