hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r437366 - in /jakarta/httpcomponents/httpcore/trunk: build.xml module-nio/build.xml
Date Sun, 27 Aug 2006 11:07:32 GMT
Author: rolandw
Date: Sun Aug 27 04:07:32 2006
New Revision: 437366

URL: http://svn.apache.org/viewvc?rev=437366&view=rev
Log:
added NIO examples

Modified:
    jakarta/httpcomponents/httpcore/trunk/build.xml
    jakarta/httpcomponents/httpcore/trunk/module-nio/build.xml

Modified: jakarta/httpcomponents/httpcore/trunk/build.xml
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/build.xml?rev=437366&r1=437365&r2=437366&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/build.xml (original)
+++ jakarta/httpcomponents/httpcore/trunk/build.xml Sun Aug 27 04:07:32 2006
@@ -145,10 +145,12 @@
 />
 
 <target name="compile-examples"
-     depends="HttpCoreMain.compile-examples"
+     depends="HttpCoreMain.compile-examples,
+              HttpCoreNIO.compile-examples"
 />
 <target name="clean-examples"
-     depends="HttpCoreMain.clean-examples"
+     depends="HttpCoreMain.clean-examples,
+              HttpCoreNIO.clean-examples"
 />
 
 <target name="run-tests"
@@ -320,6 +322,9 @@
           <packageset dir="${comp.core.main.xmpls}">
             <include name="org/apache/http/**" />
           </packageset>
+          <packageset dir="${comp.core.nio.xmpls}">
+            <include name="org/apache/http/**" />
+          </packageset>
           <packageset dir="${comp.core.main.contr}">
             <include name="org/apache/http/**" />
           </packageset>
@@ -340,6 +345,7 @@
           </group>
           <group title="Examples">
             <package name="org.apache.http.examples*" />
+            <package name="org.apache.http.nio.examples*" />
           </group>
           <group title="Contributions (unsupported)">
             <package name="org.apache.http.contrib*" />

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/build.xml
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/build.xml?rev=437366&r1=437365&r2=437366&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/build.xml (original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/build.xml Sun Aug 27 04:07:32 2006
@@ -48,6 +48,8 @@
       location="${comp.core.nio.home}/src/main/java"/>
 <property name="comp.core.nio.tests"
       location="${comp.core.nio.home}/src/test/java"/>
+<property name="comp.core.nio.xmpls"
+      location="${comp.core.nio.home}/src/examples"/>
 
 <!-- need HttpCoreMain, import the build file -->
 <property name="comp.core.main.home"
@@ -64,6 +66,8 @@
       location="${build.core.nio.home}/classes"/>
 <property name="build.core.nio.tests"
       location="${build.core.nio.home}/tests"/>
+<property name="build.core.nio.xmpls"
+      location="${build.core.nio.home}/examples"/>
 
 
 <!-- compiler and javadoc setup -->
@@ -87,6 +91,7 @@
 Source Tree
   src       ${comp.core.nio.src}
   tests     ${comp.core.nio.tests}
+  examples  ${comp.core.nio.xmpls}
 
 Dependencies
   JUnit     ${junit.jar}
@@ -153,6 +158,30 @@
 </target>
 <target name="clean-tests">
 	<delete dir="${build.core.nio.tests}" quiet="true" />
+</target>
+
+
+<target name="compile-examples" depends="build-init">
+	<mkdir dir="${build.core.nio.xmpls}" />
+        <javac destdir     ="${build.core.nio.xmpls}"
+               debug       ="${compile.debug}"
+               deprecation ="${compile.deprecation}"
+               optimize    ="${compile.optimize}"
+               source      ="${compile.source}"
+               target      ="${compile.target}"
+               sourcepath  =""
+        >
+          <src>
+            <pathelement path="${comp.core.nio.xmpls}"/>
+          </src>
+          <classpath>
+            <pathelement location="${build.core.main.classes}"/>
+            <pathelement location="${build.core.nio.classes}"/>
+          </classpath>
+        </javac>
+</target>
+<target name="clean-examples">
+	<delete dir="${build.core.main.xmpls}" quiet="true" />
 </target>
 
 



Mime
View raw message