So can you sum up the proposal in a coherent email...so far I've heard a few different things: - jarResources doesn't work - jarResources.basedir isn't obvious - we need test resources as well. -- dIon Gillard, Multitask Consulting Work: http://www.multitask.com.au Developers: http://adslgateway.multitask.com.au/developers
"Vincent Massol" <[EMAIL PROTECTED]> 05/31/02 06:33 PM Please respond to "Turbine Maven Developers List" To: "'Turbine Maven Developers List'" <[EMAIL PROTECTED]> cc: Subject: RE: [PROPOSAL] Including resources in compile paths (main jar and tests) > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 31 May 2002 04:07 > To: Turbine Maven Developers List > Subject: Re: [PROPOSAL] Including resources in compile paths (main jar and > tests) > > > Vincent, jarResources is used to copy resources to the target/classes > directory when doing a compile.....Or did last time I checked.... then it must have been changed ... it only packages the files in your jar. Thus, if you specify /src/java/**/*.xml for example you'll get /src/java/... entries in your jar ... ! Even if that were the case, we would still miss that feature for src/test and running the junit task. -Vincent > if this > is > not happening, it's because functionality has been removed. I'll look at > this this arvo and get back to you, but the jar resources are there for > this reason, so I'm -1 on any POM change for it. > -- > dIon Gillard, Multitask Consulting > Work: http://www.multitask.com.au > Developers: http://adslgateway.multitask.com.au/developers > > > > "Vincent > Massol" To: "'Turbine Maven > Developers List'" > <vmassol@octo. <turbine-maven- > [EMAIL PROTECTED]> > com> cc: > Subject: [PROPOSAL] Including > resources in compile paths (main jar > 05/31/02 07:06 and tests) > AM > Please respond > to "Turbine > Maven > Developers > List" > > > > > > > Hi, > > I have a problem with one problem I am mavenizing. It needs some > resources (properties and xml files) put in its generated jar. Also, the > junit test cases expect some resources files (xml, properties, etc) to > be in the test class directories. > > I have had a look at jarResources but it seems to be for a different use > (it simply copies resource file to the jar and not to the generated > class directory). > > I think this is a very common case ... Actually, so common, that I may > be missing something. Am I ? > > I would like to propose either : > > 1/ the addition to some (optional) elements in the POM, as in : > > <resourcePatterns> > <resourcePattern>include = **/*.properties</resourcePattern> > > <resourcePattern>include = **/*.xml</resourcePattern> > </resourcePatterns> > > <resourceTestPatterns> > <resourceTestPattern>include = > **/*.properties</resourceTestPattern> > <resourceTestPattern>include = **/*.xml</resourceTestPattern> > </resourceTestPatterns> > > (in the same spirit as <unitTestPatterns>) > > or > > 2/ the addition of some Ant properties, as in : > > maven.compile.resourcePatterns = **/*.properties,**/*.xml > maven.compile.resourceTestPatterns = **/*.properties,**/*.xml > > My preference goes to 1/. Please tell me what you prefer and I'll submit > a patch. > > Thanks > -Vincent > > > -- > To unsubscribe, e-mail: < > mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: < > mailto:[EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe, e-mail: <mailto:turbine-maven-dev- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:turbine-maven-dev- > [EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>