You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2006/08/13 16:59:09 UTC
svn commit: r431182 - /jakarta/httpcomponents/httpcore/trunk/build.xml
Author: olegk
Date: Sun Aug 13 07:59:09 2006
New Revision: 431182
URL: http://svn.apache.org/viewvc?rev=431182&view=rev
Log:
Some minor fixes
Modified:
jakarta/httpcomponents/httpcore/trunk/build.xml
Modified: jakarta/httpcomponents/httpcore/trunk/build.xml
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/build.xml?rev=431182&r1=431181&r2=431182&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/build.xml (original)
+++ jakarta/httpcomponents/httpcore/trunk/build.xml Sun Aug 13 07:59:09 2006
@@ -19,7 +19,7 @@
<project name="HttpCore" basedir="." default="package-src">
<description>
-HttpAsync: Jakarta HttpComponents Core
+Jakarta HttpComponents Core
</description>
@@ -276,6 +276,9 @@
<pathelement location="${junit.jar}"/>
</classpath>
</javac>
+ <copy todir="${build.core.main.tests}" filtering="on">
+ <fileset dir="${comp.core.main.tests}" excludes="**/*.java" />
+ </copy>
</target>
<target name="clean-tests-main">
<delete dir="${build.core.main.tests}" quiet="true" />
@@ -302,6 +305,9 @@
<pathelement location="${junit.jar}"/>
</classpath>
</javac>
+ <copy todir="${build.core.nio.tests}" filtering="on">
+ <fileset dir="${comp.core.nio.tests}" excludes="**/*.java" />
+ </copy>
</target>
<target name="clean-tests-nio">
<delete dir="${build.core.nio.tests}" quiet="true" />
@@ -484,10 +490,6 @@
depends="build-init,compile-tests-main,compile-tests-nio"
description="runs unit tests on HttpCore classes"
>
- <copy todir="${build.core.tests}" filtering="on">
- <fileset dir="${comp.core.main.tests}" excludes="**/*.java" />
- <fileset dir="${comp.core.nio.tests}" excludes="**/*.java" />
- </copy>
<!-- don't use Ant optional JUnit tasks here -->
<java classname="junit.textui.TestRunner"
Re: svn commit: r431182 - /jakarta/httpcomponents/httpcore/trunk/build.xml
Posted by Roland Weber <ht...@dubioso.net>.
Hi Oleg,
> This is just to make sure all resources required by the test cases are
> available to the class loader when the tests are run. Maven2 actually
> encourages that resources be kept separate from java sources and be
> stored in a separate resource folder, but we might still want to make
> sure that resources stored along with the source code get copied to the
> target folder at compile time.
Sorry, I forgot that you might want to run tests from your IDE instead
of using the Ant target that would copy the properties before running.
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
Re: svn commit: r431182 -
/jakarta/httpcomponents/httpcore/trunk/build.xml
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sun, 2006-08-13 at 17:16 +0200, Roland Weber wrote:
> Hi Oleg,
>
> > <description>
> > -HttpAsync: Jakarta HttpComponents Core
> > +Jakarta HttpComponents Core
> > </description>
>
> oops :-)
>
> > @@ -302,6 +305,9 @@
> > </classpath>
> > </javac>
> > + <copy todir="${build.core.nio.tests}" filtering="on">
> > + <fileset dir="${comp.core.nio.tests}" excludes="**/*.java" />
> > + </copy>
> > </target>
> > @@ -484,10 +490,6 @@
> > description="runs unit tests on HttpCore classes"
> > >
> > - <copy todir="${build.core.tests}" filtering="on">
> > - <fileset dir="${comp.core.main.tests}" excludes="**/*.java" />
> > - <fileset dir="${comp.core.nio.tests}" excludes="**/*.java" />
> > - </copy>
>
> Let me guess. Maven copies the files when compiling the tests, and
> fails to run tests correctly when the compiling was done by Ant?
>
Roland,
This is just to make sure all resources required by the test cases are
available to the class loader when the tests are run. Maven2 actually
encourages that resources be kept separate from java sources and be
stored in a separate resource folder, but we might still want to make
sure that resources stored along with the source code get copied to the
target folder at compile time.
Oleg
> cheers,
> Roland
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
Re: svn commit: r431182 - /jakarta/httpcomponents/httpcore/trunk/build.xml
Posted by Roland Weber <ht...@dubioso.net>.
Hi Oleg,
> <description>
> -HttpAsync: Jakarta HttpComponents Core
> +Jakarta HttpComponents Core
> </description>
oops :-)
> @@ -302,6 +305,9 @@
> </classpath>
> </javac>
> + <copy todir="${build.core.nio.tests}" filtering="on">
> + <fileset dir="${comp.core.nio.tests}" excludes="**/*.java" />
> + </copy>
> </target>
> @@ -484,10 +490,6 @@
> description="runs unit tests on HttpCore classes"
> >
> - <copy todir="${build.core.tests}" filtering="on">
> - <fileset dir="${comp.core.main.tests}" excludes="**/*.java" />
> - <fileset dir="${comp.core.nio.tests}" excludes="**/*.java" />
> - </copy>
Let me guess. Maven copies the files when compiling the tests, and
fails to run tests correctly when the compiling was done by Ant?
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org