You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Richard Bounds <ri...@richardbounds.co.uk> on 2003/02/14 12:31:11 UTC
How to specify in beta-8?
I see from the documentation that in Beta 8 the <resources> element in
project.xml has been replaced by <jarResources>, but I can't seem to get it
to copy the resources into target/classes. My resources element looked like
this:
<resources>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
<exclude>**/*.template.xml</exclude>
</excludes>
</resources>
I've tried a few variations, but my jarResources element currently looks
like this:
<jarResources>
<jarResource>
<include>**</include>
<exclude>**/*.java</exclude>
<exclude>**/*.template.xml</exclude>
</jarResource>
</jarResources>
Could somebody tell me what I'm doing wrong, or should I just use a postgoal
to copy things into the build directory?
Richard
Re: answer: How to specify in beta-8?
Posted by Martin van den Bemt <ml...@mvdb.net>.
On Mon, 2003-02-17 at 09:23, Rafal Krzewski wrote:
> Jason van Zyl wrote:
>
> >><resources>
> >> <directory name="src">
> >> <include>**</include>
> >> <exclude>**/*.java</exclude>
> >> <exclude>**/*.template.xml</exclude>
> >> </directory>
> >></resources>
> >
> > Attributes aren't used in the POM which makes things a lot simpler using
> > betwixt for the xml <--> java transformations.
>
> Using XML without attribues seems a bit like using shoes without
> shoelaces. It's certainly better than going barefoot....
> I don't know Betwixt, but I have a feeling that I don't like it :)
Betwixt can handle attributes just fine.. So your feeling is based on
not reading correctly. It was just stated that it made it simpler, it
didn't say it was difficult :).
Mvgr,
Martin
Re: answer: How to specify in beta-8?
Posted by Rafal Krzewski <Ra...@caltha.pl>.
Jason van Zyl wrote:
>><resources>
>> <directory name="src">
>> <include>**</include>
>> <exclude>**/*.java</exclude>
>> <exclude>**/*.template.xml</exclude>
>> </directory>
>></resources>
>
> Attributes aren't used in the POM which makes things a lot simpler using
> betwixt for the xml <--> java transformations.
Using XML without attribues seems a bit like using shoes without
shoelaces. It's certainly better than going barefoot....
I don't know Betwixt, but I have a feeling that I don't like it :)
R.
Re: answer: How to specify in beta-8?
Posted by Jason van Zyl <ja...@zenplex.com>.
On Fri, 2003-02-14 at 06:44, Rafal Krzewski wrote:
>
> Gosh, is this awkward... Why not have:
>
> <resources>
> <directory name="src">
> <include>**</include>
> <exclude>**/*.java</exclude>
> <exclude>**/*.template.xml</exclude>
> </directory>
> </resources>
Attributes aren't used in the POM which makes things a lot simpler using
betwixt for the xml <--> java transformations.
> Just my 2c, I have no idea how would that align with current POM
> machinery, but the above seems so needlessly verebose...
>
> R.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-maven-user-help@jakarta.apache.org
--
jvz.
Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
Re: answer: How to specify in beta-8?
Posted by Rafal Krzewski <Ra...@caltha.pl>.
Richard Bounds wrote:
> <resources>
> <resource>
> <directory>src</directory>
> <includes>
> <include>**</include>
> </includes>
> <excludes>
> <exclude>**/*.java</exclude>
> <exclude>**/*.template.xml</exclude>
> </excludes>
> </resource>
> <resource>
> <directory>test</directory>
> <includes>
> <include>**</include>
> </includes>
> <excludes>
> <exclude>**/*.java</exclude>
> <exclude>**/*.template.xml</exclude>
> </excludes>
> </resource>
> </resources>
Gosh, is this awkward... Why not have:
<resources>
<directory name="src">
<include>**</include>
<exclude>**/*.java</exclude>
<exclude>**/*.template.xml</exclude>
</directory>
</resources>
Just my 2c, I have no idea how would that align with current POM
machinery, but the above seems so needlessly verebose...
R.
answer: How to specify in beta-8?
Posted by Richard Bounds <ri...@richardbounds.co.uk>.
OK - ignore me, I found it:
<resources>
<resource>
<directory>src</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
<exclude>**/*.template.xml</exclude>
</excludes>
</resource>
<resource>
<directory>test</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
<exclude>**/*.template.xml</exclude>
</excludes>
</resource>
</resources>
Richard
-----Original Message-----
From: Richard Bounds [mailto:richard@richardbounds.co.uk]
Sent: 14 February 2003 11:31
To: Turbine Maven Users List
Subject: How to specify <resources> in beta-8?
I see from the documentation that in Beta 8 the <resources> element in
project.xml has been replaced by <jarResources>, but I can't seem to get it
to copy the resources into target/classes. My resources element looked like
this:
<resources>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
<exclude>**/*.template.xml</exclude>
</excludes>
</resources>