commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <br...@apache.org>
Subject Re: svn commit: r149154 - jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java
Date Tue, 01 Feb 2005 22:41:45 GMT
Quoting Oleg Kalnichevski <olegk@apache.org>:

> On Mon, 2005-01-31 at 06:44 +0800, Brett Porter wrote:
> > Yuck :) Can we help fix this?
> > 
> > IIRC, other people having problems have corrected them by using
> > "/org/apache/commons/..." (note leading /). 
> 
> Brett,
> 
> Unfortunately this doesn't help. The trouble is that junit resource
> files do not seem to be copied to <HOME>/target/test-classes/

If you declare the resources inside your unit test element they should be:

<unitTest>
  <includes>
    ...
  </includes>
  <resources>
    <resource>
      <directory>src/test</directory>
      <includes>
        <include>**/*.properties</include>
      </includes>
    </resource>
  </resources>
</unitTest>


Does that help?

Cheers,
Brett

> 
> If I manually copy the required resources to <HOME>/target/test-classes/
> test cases perform as expected
> 
> Oleg
> 
> 
> > It's been a while since I read the
> > spec on this but it is because no / has a different classloader search
> criteria
> > which doesn't work inside Maven. I think another alternative is to fork the
> unit
> > tests.
> > 
> > If these resolutions are correct, its probably time for a FAQ entry...
> > 
> > - Brett
> > 
> > Quoting "olegk@apache.org" <olegk@apache.org>:
> > 
> > > Author: olegk
> > > Date: Sun Jan 30 13:02:40 2005
> > > New Revision: 149154
> > > 
> > > URL: http://svn.apache.org/viewcvs?view=rev&rev=149154
> > > Log:
> > > Maven workaround
> > > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message