> > Next question:  I want to add a resource to the classpath for tests.
> 
> http://maven.apache.org/using/resources.html

I looked at this first, but didn't catch the part about embedding it
inside <unitTest>.  So, thanks for that.  That works fine, but I ran
into something I think is strange about using resources.

I wanted to do something like:

<resource>
    <directory>${basedir}/resources/WEB-INF</directory>
        <targetPath>${maven.build.dest}</targetPath>
        <includes>
            <include>applicationContext.xml</include>
        </includes>
</resource>

But I end up with a path that is a concatenation of ${maven.test.dest}
and ${maven.build.dest}.  So, it looks like the targetPath element does
not handle absolute references properly.  In this case, it's not a
problem, since I can put applicationContext.xml in ${maven.test.dest}
just the same as putting it in ${maven.build.dest}.

I'm just wondering if there are plans to check for absolute references
vs relative references within these tags.  If not, why set these
property values as absolute references instead of relative?


- Dave





> 
> > I'm trying to use Maven with as little Ant as possible.
> 
> That's definitely a good practice!
> 
> Cheers,
> Brett
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to