Build the samples classes too
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 2 Sep 2008 20:56:05 +0000 (20:56 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 2 Sep 2008 20:56:05 +0000 (20:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@691379 13f79535-47bb-0310-9956-ffa450edef68

extras.xml

index b7d7bbb..897b91f 100644 (file)
@@ -80,6 +80,7 @@
   <property name="cometd-api.jar" value="${tomcat.extras}/cometd-api.jar"/>
   <property name="tomcat-bayeux.jar" value="${tomcat.extras}/tomcat-bayeux.jar"/>
   <property name="cometd.war" value="${tomcat.extras}/cometd.war"/>
+  <property name="tomcat-bayeux-samples.jar" value="${tomcat.extras}/tomcat-bayeux-samples.jar"/>
 
        
   <!-- Classpath -->
       <include name="org/apache/tomcat/bayeux/**" />
       <include name="org/apache/cometd/**" />
     </javac>
+    
     <!-- Cometd API JAR File -->
     <jar jarfile="${cometd-api.jar}">
       <fileset dir="${tomcat.classes}">
       </fileset>
     </jar>
 
+    <!-- cometd samples application -->
+    <javac srcdir="test" destdir="${tomcat.classes}"
+           debug="${compile.debug}"
+           deprecation="${compile.deprecation}"
+           source="${compile.source}"
+           optimize="${compile.optimize}">
+      <classpath refid="tomcat.bayeux.classpath" />
+      <include name="org/apache/tomcat/bayeux/**" />
+      <include name="org/apache/cometd/**" />
+    </javac>
+    
+    <!-- Cometd samples JAR File -->
+    <jar jarfile="${tomcat-bayeux-samples.jar}">
+      <fileset dir="${tomcat.classes}">
+        <exclude name="**/package.html" />
+        <exclude name="**/LocalStrings_*" />
+        <include name="org/apache/cometd/bayeux/samples/**" />
+      </fileset>
+    </jar>
+    
     <zip zipfile="${cometd.war}">
       <fileset dir="${basedir}/webapps/cometd">
         <include name="**/**"/>
     </zip>
     <checksum file="${cometd-api.jar}" forceOverwrite="yes" fileext=".md5" />
     <checksum file="${tomcat-bayeux.jar}" forceOverwrite="yes" fileext=".md5" />
+    <checksum file="${tomcat-bayeux-samples.jar}" forceOverwrite="yes" fileext=".md5" />
     <checksum file="${tomcat.extras}/${json-lib.jar}" forceOverwrite="yes" fileext=".md5" />
     <echo>You've built the Tomcat Bayeux libraries, simply add the following libraries to your CATALINA_HOME/lib directory:
           ${cometd-api.jar}
           ${tomcat-bayeux.jar} 
+          ${tomcat-bayeux-samples.jar} 
           ${tomcat.extras}/${json-lib.jar}
 To run the sample application, copy the following applications into your CATALINA_BASE/webapps directory
           ${cometd.war}