You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Oleg Kalnichevski <ol...@apache.org> on 2006/08/16 00:02:49 UTC

Re: svn commit: r431182 - /jakarta/httpcomponents/httpcore/trunk/build.xml

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,

> 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