Re: Filtering resources

2016-01-14 Thread Thomas Sundberg
gt;> That is the behaviour that I would like to see. And the behaviour I >> interpret the closed bug is refering to. >> https://issues.apache.org/jira/browse/MRESOURCES-70 >> >> Just doing a token replacement token by token is easy to implement. A >>

Re: Filtering resources

2016-01-14 Thread Stephen Connolly
y token is easy to implement. A > recursive resolution is more complicated to implement. > > Cheers > Thomas > > > > thanks, > > Robert > > > > Op Wed, 13 Jan 2016 14:58:29 +0100 schreef Thomas Sundberg : > > > > > >> Hi! > >> >

Re: Filtering resources

2016-01-14 Thread Thomas Sundberg
s easy to implement. A recursive resolution is more complicated to implement. Cheers Thomas > thanks, > Robert > > Op Wed, 13 Jan 2016 14:58:29 +0100 schreef Thomas Sundberg : > > >> Hi! >> >> Filtering resources that uses @ as delimiters works. >> &g

Re: Filtering resources

2016-01-13 Thread Robert Scholte
rt Op Wed, 13 Jan 2016 14:58:29 +0100 schreef Thomas Sundberg : Hi! Filtering resources that uses @ as delimiters works. This example works as expected: @Environment@ But my use case involves filtering nested resources. An example looks like this: @PoolSize.@Environment@@ There seem

Re: Filtering resources

2016-01-13 Thread Thomas Sundberg
Hi! Filtering resources that uses @ as delimiters works. This example works as expected: @Environment@ But my use case involves filtering nested resources. An example looks like this: @PoolSize.@Environment@@ There seem to exist a closed bug regarding nested variables. https

Re: Filtering resources

2016-01-13 Thread James Hutton
You could also look at DefaultMavenResourcesFiltering for an example. I think this is still using plexus so you'll have to have the component.xml iirc that is needed for co

Re: Filtering resources

2016-01-12 Thread Baptiste Mathus
In general, though it would surely work too, better avoid using maven-antrun-plugin. Maven is about standardizing your build process, using antrun is gonna add issues with IDEs and so on. Anyway, what you ask for doesn't seem to me to require custom filtering. '@' is a standard delimiter (see http

Re: Filtering resources

2016-01-12 Thread Matt Benson
If you just want to get it done, use the maven-antrun-plugin with Ant filtersets. Matt On Tue, Jan 12, 2016 at 4:14 PM, Thomas Sundberg wrote: > Hi! > > I need to be able to filter files where the values to replace are defind as > > @aPlaceHolderThatNeedToBeSubstituted@ > > Does anyone know of a

Filtering resources

2016-01-12 Thread Thomas Sundberg
Hi! I need to be able to filter files where the values to replace are defind as @aPlaceHolderThatNeedToBeSubstituted@ Does anyone know of a good, working example where a custom resource filter is implemented? I had a look at http://maven.apache.org/plugins/maven-resources-plugin/examples/custom

Re: Filtering resources with variables from build-helper-maven-plugin:reserve-network-port

2014-09-16 Thread Baptiste Mathus
Hi Martin, This should be totally feasible. Indeed, even the ITs of the plugin itself actually use the fact that properties are indeed defined to be able to print them out at some later point. Would you be able to expose some demo project somewhere on GitHub for example? Cheers 2014-09-16 13:45

Filtering resources with variables from build-helper-maven-plugin:reserve-network-port

2014-09-16 Thread Martin Todorov
Hi, I've been dealing with a bit of an odd scenario where i have number of projects running in Jenkins which all open ports for different things (Jetty, Derby, various other servers). So, in order for them to not clash, I am using the build-helper-maven-plugin's "reserve-network-port" goal attache

filtering resources in a war

2009-09-16 Thread Manuel Grau
Hi all, I'm trying to filter some jsp files in my war project. The jsp file I'm tyring to filter is located in src/main/webapp/WEB-INF/includes/ header.jsp. This is my pom.xml maven-war-plugin configuration: maven-war-plugin

filtering resources

2009-08-31 Thread Manuel Grau
I've generated a *maven-j2ee-simple application*. I'm deploying to OC4J 10.1.3, so, I've created in the ear module two files: * ear/src/main/application/META-INF/data-sources.xml ear/src/main/application/META-INF/orion-application.xml* I'm trying to apply filters in this files, but filtering isn't

Re: [SOLUTION] Filtering resources in the EAR artifact

2008-10-27 Thread mfs
n: >> >> We have to tell ear plugin to use ${basedir}/target/classes as the >> resource >> folder, since there are located properly filtered resources: >> >> >>maven-ear-plugin >> >> target/classes >> >&

Re: [SOLUTION] Filtering resources in the EAR artifact

2008-10-23 Thread mfs
target/classes > > > > Ofcourse, we are using now the standard ${basedir}/src/main/resources > folder > with filtering turned on. > > Regards, > Vanja > > -- View this message in context: http://

Re: maven-war-plugin (filtering resources)

2008-09-11 Thread walterw
Hi, Thanks for your quick response. That looks like exactly what I need. I have tried using the resources plugin to configure my JSPs but it does not appear to actually update them. If the maven-war-plugin is updated, then I think I'd be good to go. Thanks, Walter -- View this message in co

Re: maven-war-plugin (filtering resources)

2008-09-11 Thread Olivier Lamy
Hi, Currently no way to limit this. But you can certainly add an issue in http://jira.codehaus.org/browse/MSHARED under the component maven-filtering. As we have fixed http://jira.codehaus.org/browse/MRESOURCES-29 we can imagine having the same feature with the war plugin. -- Olivier 2008/9/11 wa

maven-war-plugin (filtering resources)

2008-09-11 Thread walterw
Hi all, I am having problems filtering my resources (.jsp, .xml, .sql). I configure the context path as well as URLs and so I would like to keep these as variables so I can update the property in a single place and everything will be updated automatically. The issue that I am having is that whe

RE: filtering resources - switching whole files

2008-04-09 Thread Bernhard David
om that profile will be copied. Any resources you declare outside of the profiles (regular ) will be copied for all profiles. David > -Original Message- > From: Nick Stolwijk [mailto:[EMAIL PROTECTED] > Sent: 10 April 2008 00:10 > To: Maven Users List > Subject: Re: filteri

Re: filtering resources - switching whole files

2008-04-09 Thread Nick Stolwijk
For different config files I often do it with an include. I.e. spring configuration for production, test, dev, make a main applicationContext.xml which includes database-${environment}.xml. Now you can switch config files between builds. (Or at runtime, if you don't filter. Hth, Nick S. Jan

filtering resources - switching whole files

2008-04-09 Thread Jan Zelenka
Hi, I have different config files for various build targets (dev, test, prod), but I cannot use standard resource filtering because whole portions of the files are diferrent, not just simple strings. In Ant I have a copy of the file for each target and just copy/rename them during build. What wo

Re: Filtering resources in Assembly plugin

2007-12-27 Thread Ryan Moquin
src/main/resources > > > >> / > > > >> > > > >> *.sh > > > >> > > > >> true > > > &

Re: Filtering resources in Assembly plugin

2007-12-27 Thread Mick Knutson
/ > > >> > > >> *.sh > > >> > > >> true > > >> > > >> > > >>

Re: Filtering resources in Assembly plugin

2007-12-27 Thread Ryan Moquin
gt; > >> *.sh > >> > >> true > >> > >> > >> > >> the resources are *not* filtered. This isn't intentio

Re: Filtering Resources : Maven Properties for username & builddat

2007-11-13 Thread Wayne Fay
EDIT: > > Ok, I've changed the properties file to: > > build.date=${build.date} > build.version=${project.parent.version} > build.author=${user.name} > build.javaversion=${java.version} > > Now I have everything but the build date, which I would like to format as a > timest

Filtering Resources : Maven Properties for username & builddate

2007-11-13 Thread zm
format the ${build.date} with something like '2007.11.13 15:05:30.123'. Any way of doing it? Also I could use an ANT task to create properties (). Is there a way of including an ant task, define a property then use it with filtering? Many thanks. -- View this message in context: http://www.

[SOLUTION] Filtering resources in the EAR artifact

2007-10-10 Thread Vanja Petreski
Hello, I lost couple of hours with this problem, so I am giving the solution (and would like to hear the better one, if there is a such). The problem: We have ear with couple of modules (ejb, war...) and META-INF with standard and proprietary descriptors (data-sources.xml, orion-application.xml,

Re: Filtering resources in Assembly plugin

2007-09-21 Thread Paul Austin
/ >> >> *.sh >> >> true >> >> >> >> the resources are *not* filtered. This isn't intentional, is it? >> &g

Re: Filtering resources in Assembly plugin

2007-09-21 Thread Mick Knutson
es are *not* filtered. This isn't intentional, is it? > > Dave > > On 9/21/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote: > > All, > > > > I'm having an issue filtering resources with the assembly plugin. > > > > In the documentation at: >

Re: Filtering resources in Assembly plugin

2007-09-21 Thread Dave Feltenberger
* filtered. This isn't intentional, is it? Dave On 9/21/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote: > All, > > I'm having an issue filtering resources with the assembly plugin. > > In the documentation at: > http://maven.apache.org/plugins/maven-assembly-plu

Filtering resources in Assembly plugin

2007-09-21 Thread Dave Feltenberger
All, I'm having an issue filtering resources with the assembly plugin. In the documentation at: http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/filtering-some-distribution-files.html there is an example of using the assembly plugin. Here is the part in the pom that

Re: Filtering resources into a directory other than classes for a webapp?

2007-06-28 Thread Jared Blitzstein
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Filtering- resources-into-a-directory-other-than-classes-for-a-webapp-- tf3658613s177.html#a10360724 Sent from the Ma

Re: filtering resources in maven-war-plugin

2007-06-14 Thread capira
ar > [INFO] Building war: > C:\Java\workspace\TestWARPlugin\target\WARTest-1.0.war > [INFO] [war:exploded {execution: default}] > WarExplodedMojo by DB > [INFO] Exploding webapp... > [INFO] Assembling webapp WARTest in > C:\Java\workspace\TestWARPlugin\target\WARTe > st-1.0 >

filtering resources in maven-war-plugin - further info

2007-06-11 Thread David Birch
I should note that all resources from the main/resources dir are filtered correctly, even when just a war:exploded is run, it is just the main/webapp files that nerver get filtered when only running a war:exploded goal. cheers david

filtering resources in maven-war-plugin

2007-06-11 Thread David Birch
Hi, i seem to be getting some strange behaviour with the war plugin (versions 2.0.2 & 2.0.3-SNAPSHOT), if i do a build with the goal "install", the resources are filtered properly, if i only go so far as war:exploded or war:war, they don't get filtered. I have debugged, and it looks like there a

Re: Specifying inclusions/exclusions from filtering resources

2007-06-04 Thread Kevin Stembridge
Hi Jo, Thanks for the advice. Works perfectly for me. Cheers, Kevin "Jo Vandermeeren" <[EMAIL PROTECTED]> 04/06/2007 16:30 Please respond to "Maven Users List" To "Maven Users List" cc Subject Re: Specifying inclusions/exclusions from filtering resou

Re: Specifying inclusions/exclusions from filtering resources

2007-06-04 Thread Jo Vandermeeren
Hi Kevin, You can define separate sets for resources that need to be filtered. More on includes/excludes here: http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html Example.. src/main/resources

Specifying inclusions/exclusions from filtering resources

2007-06-04 Thread Kevin Stembridge
Hi all, Is there a way to specify that only some files within a given directory hierarchy get filtered when resources are copied? And what about specifically including or excluding certain properties from being filtered? Cheers, Kevin --- This e-mail may contain confidential and/or privileged

Re: Filtering resources into a directory other than classes for a webapp?

2007-05-07 Thread stig.lau
WEB-INF/config > >true > > > > > > - Henry > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For addition

Re: Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Heinrich Nirschl
On Fri, 2007-04-27 at 15:17 -0400, Jared Blitzstein wrote: > Thanks, I've read that as well as http://maven.apache.org/guides/ > getting-started/index.html#How%20do%20I%20filter%20resource%20files > and it's basically the same thing as the WAR plugin...I believe. > Since I need this on both th

Re: Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Jared Blitzstein
Thanks, I've read that as well as http://maven.apache.org/guides/ getting-started/index.html#How%20do%20I%20filter%20resource%20files and it's basically the same thing as the WAR plugin...I believe. Since I need this on both the WAR and the exploded app for jetty, I'm not sure if the war plu

Re: Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Heinrich Nirschl
On 4/27/07, Jared Blitzstein <[EMAIL PROTECTED]> wrote: I'm using the webapp archetype and our apps are configured to have the properties files in /WEB-INF/config/ rather than /WEB-INF/ classes/ which maven defaults to for resource filtering. I see the "targetPath" tag in the resource tag but tha

Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Jared Blitzstein
I'm using the webapp archetype and our apps are configured to have the properties files in /WEB-INF/config/ rather than /WEB-INF/ classes/ which maven defaults to for resource filtering. I see the "targetPath" tag in the resource tag but that's only for packages, not directories outside clas

Re: Profiles, filtering resources and optional content

2007-03-14 Thread Mark Hobson
On 14/03/07, Piotr Bzdyl <[EMAIL PROTECTED]> wrote: Actually, I thought about this solution but unfortunately the common part of the conf.properties is so big that I would not like to keep it in two separate places and need to remember to change these common parts in two (or even more if I will n

Re: Profiles, filtering resources and optional content

2007-03-14 Thread Mark Hobson
ble.com/Profiles%2C-filtering-resources-and-optional-content-tf3402841s177.html#a9476847 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Profiles, filtering resources and optional content

2007-03-14 Thread Piotr Bzdyl
s. Thanks and regards, Piotr -- View this message in context: http://www.nabble.com/Profiles%2C-filtering-resources-and-optional-content-tf3402841s177.html#a9477378 Sent from the Maven - Users mailing list archive at Nabble.com. - T

Profiles, filtering resources and optional content

2007-03-14 Thread Piotr Bzdyl
value of dev.settings property? Any cleaner and more readable solution? Thanks and regards, Piotr -- View this message in context: http://www.nabble.com/Profiles%2C-filtering-resources-and-optional-content-tf3402841s177.html#a9476847 Sent from the Maven - Users mailing list archive at Nabble.com

Re: Filtering resources

2007-03-01 Thread Thomas Colin de Verdière
Thanks you very much it will be good this way. Thomas Brad Szabo a écrit : You can still do all of the Ant work inside of an Ant build file, just call the task, and before you do, you can specify any properties that you want to be available to Ant, such as:

Re: [m2] Filtering resources

2007-02-28 Thread Thierry Lach
http://www.nabble.com/Filtering-resources-tf3307730s177.html#a9225896 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [m2] Filtering resources

2007-02-28 Thread John J. Franey
en by values in settings.xml. For more details, see: http://maven.apache.org/guides/introduction/introduction-to-profiles.html Regards, John -- View this message in context: http://www.nabble.com/Filtering-resources-tf3307730s177.html#a9225896 Sent from the Maven - Users mailing list archiv

Re: Filtering resources

2007-02-28 Thread Brad Szabo
You can still do all of the Ant work inside of an Ant build file, just call the task, and before you do, you can specify any properties that you want to be available to Ant, such as: Note- Be sure inheritAll="true" or you will need to specify the propertie

Re: Filtering resources

2007-02-28 Thread Thomas Colin de Verdière
I was using it because i then want to extract files using Ant (you think it's ugly) and then merge some jars together. Suppress the version number. And also merge some files that have the same name into the jars. We thought about assemblies but they can't do the last file merging stuff. And in th

Re: Filtering resources

2007-02-28 Thread Thierry Lach
Actually settings properties not being available in filtering might cause us some problems in converting to M2. Each of our developers has their own oracle schema that they can do unit testing against (dbunit). In M1 we put the connection strings into build.properties. We copy unit test propert

Re: Filtering resources

2007-02-28 Thread Brad Szabo
Ah. The Maven Resources Plugin only supports filtering using system properties, project properties, and properties defined in filter resources. It does not appear that settings properties are available, which actually makes sense now that I think about it. I do not think that this is a bug. Settin

Re: Filtering resources

2007-02-28 Thread Thomas Colin de Verdière
It works.. it echoes the string. Here is the part for resources : buildproperties true And in the buildproperties directory here is the build.properties file to filter : MAVEN_REPO=${settings.mirrors} MAVEN_REPO=${project.class.name} MAVEN_REPO=${settings.local

Re: Filtering resources

2007-02-28 Thread Brad Szabo
Can you elaborate a little on where you are trying to use ${settings.localRepository}. If you add the following AntRun plugin to your pom.xml to echo the expression value, does it not display the proper path to your local repository? maven-antrun-plugin

Re: Filtering resources

2007-02-28 Thread Thomas Colin de Verdière
Yes i downloaded Maven 2.0.5 Brad Szabo a écrit : You are using Maven 2 right? On Wed, 2007-02-28 at 15:40 +0100, Thomas Colin de Verdière wrote: Thanks but i tried and it didn't work. You are right it is written in the document on the maven site. .. Brad Szabo a écrit : The localRe

Re: Filtering resources

2007-02-28 Thread Brad Szabo
You are using Maven 2 right? On Wed, 2007-02-28 at 15:40 +0100, Thomas Colin de Verdière wrote: > Thanks but i tried and it didn't work. You are right it is written in > the document on the maven site. .. > > Brad Szabo a écrit : > > The localRepository property is configured in settings.xml, th

Re: Filtering resources

2007-02-28 Thread Thomas Colin de Verdière
Thanks but i tried and it didn't work. You are right it is written in the document on the maven site. .. Brad Szabo a écrit : The localRepository property is configured in settings.xml, therefore you can access it using ${settings.localRepository}. (The default is ~/.m2/repository). Hope thi

Re: Filtering resources

2007-02-28 Thread Brad Szabo
The localRepository property is configured in settings.xml, therefore you can access it using ${settings.localRepository}. (The default is ~/.m2/repository). Hope this helps, -Brad References: http://maven.apache.org/guides/mini/guide-configuring-maven.html http://maven.apache.org/settings.html

Filtering resources

2007-02-28 Thread Thomas Colin de Verdière
Hello, i try to filter resources in my project to generate a build.properties file. I would like to have the path to the localRepository. So i use ${localRepository} as it is said in "BetterBuilds with Maven" but it doesn't work. I tried the following properties for testing : MAVEN_REPO=${proje

[m2] (Filtering Resources) adding timestamp to a property file during releasing

2006-11-23 Thread SoftwareEngineering Hauschel
Hi all, any idea how to add a non static property to a property file while build time? Thanks Fredy

Re: Filtering resources and timestamp?

2006-05-15 Thread Julian Wood
You can use the maven-buildnumber-plugin to do this. http://commons.ucalgary.ca/projects/maven-buildnumber-plugin J On 15-May-06, at 3:09 PM, Wayne Fay wrote: This has been asked before, a few times in the last few months, and no one has answered with a solution. Search the User archive to se

Re: Filtering resources and timestamp?

2006-05-15 Thread Wayne Fay
This has been asked before, a few times in the last few months, and no one has answered with a solution. Search the User archive to see this for yourself. So I'm inclined to think this is not currently possible. Wayne On 5/15/06, David Hay <[EMAIL PROTECTED]> wrote: I haven't seen this questio

Filtering resources and timestamp?

2006-05-15 Thread David Hay
I haven't seen this question addressed in the past. What I'd like to do is filter a properties file I have and place the timestamp of when the build occurred. That is, in src/main/resources, I would like to have a properties file with a line like: buildTime=${project.buildTime} and have it r

[m2] Filtering resources problem

2006-05-12 Thread Marcell Manfrin Barbacena
Hi, I'm following the started guide and when I try to replace ${pom.name} for ${settings.localRepository} when filtering a resource I got the string ${settings.localRepository} back. My settings.xml is placed in ~/.m2/settings.xml and working fine cause I can deploy using configurations there. Am

Filtering resources during assembly

2006-02-02 Thread brian . a . yoffe
I have a POM that creates an assembly (by using the mvn assembly:assembly command). Before assembling my directories, I want filtering to occur on some set of resources. I can achieve this if I execute: mvn resources:resources assembly:assembly Is there a way to get the resource fil

Re: filtering resources resources

2006-01-18 Thread Tom Joad
Hi, > > I have just installed mvn 2.0.2 on linux mandrake 10 and I follow > > getting started documentation to refresh my knowledges on maven > > possibility.I'm on filtering resources paragraph , and try to use java > > - D parameter . the command line on the documentation d

Re: filtering resources resources

2006-01-17 Thread Alexandre Poitras
ndrake 10 and I follow > getting started documentation to refresh my knowledges on maven > possibility.I'm on filtering resources paragraph , and try to use java > - D parameter . the command line on the documentation does not work. > because of the white space on parameter value. Mave

filtering resources resources

2006-01-17 Thread Tom Joad
Hi, I have just installed mvn 2.0.2 on linux mandrake 10 and I follow getting started documentation to refresh my knowledges on maven possibility.I'm on filtering resources paragraph , and try to use java - D parameter . the command line on the documentation does not work. because of the

Re: Filtering resources

2006-01-13 Thread dan tran
inside the jar), is there no way of achieving this at all? > > > > > > > > > > > > On 1/12/06, Brian E. Fox <[EMAIL PROTECTED]> wrote: > > > >> Isn't there an exclude sources setting in the compiler? > > > >> > > >

Re: Filtering resources

2006-01-13 Thread Karthik V
Fox <[EMAIL PROTECTED]> wrote: > > >> Isn't there an exclude sources setting in the compiler? > > >> > > >> -Original Message- > > >> From: Karthik V [mailto:[EMAIL PROTECTED] > > >> Sent: Thursday, January 12, 2006 11:12

Re: Filtering resources

2006-01-13 Thread Karthik V
On 1/12/06, Brian E. Fox <[EMAIL PROTECTED]> wrote: > >> Isn't there an exclude sources setting in the compiler? > >> > >> -Original Message----- > >> From: Karthik V [mailto:[EMAIL PROTECTED] > >> Sent: Thursday, January 12, 2006 11:12 AM > >&g

Re: Filtering resources

2006-01-13 Thread dan tran
. Fox <[EMAIL PROTECTED]> wrote: > >> Isn't there an exclude sources setting in the compiler? > >> > >> -Original Message- > >> From: Karthik V [mailto:[EMAIL PROTECTED] > >> Sent: Thursday, January 12, 2006 11:12 AM > >> To: Mav

Re: Filtering resources

2006-01-13 Thread John Casey
]> wrote: Isn't there an exclude sources setting in the compiler? -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 11:12 AM To: Maven Users List Subject: Re: Filtering resources can some one answer this please? On 1/11/06, Karthik V &

Re: Filtering resources

2006-01-13 Thread Karthik V
this at all? On 1/12/06, Brian E. Fox <[EMAIL PROTECTED]> wrote: > > Isn't there an exclude sources setting in the compiler? > > -Original Message- > From: Karthik V [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 12, 2006 11:12 AM > To: Maven Use

RE: Filtering resources

2006-01-12 Thread Brian E. Fox
Isn't there an exclude sources setting in the compiler? -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 11:12 AM To: Maven Users List Subject: Re: Filtering resources can some one answer this please? On 1/11/06, Karthik V &l

Re: Filtering resources

2006-01-12 Thread Karthik V
can some one answer this please? On 1/11/06, Karthik V <[EMAIL PROTECTED]> wrote: > > ok .. that 2nd question was silly .. i managed it ... pls help me wth the > 1st one. > > > On 1/11/06, Karthik V < [EMAIL PROTECTED]> wrote: > > > > In m2, how do I prevent some classes from being included to th

Re: Filtering resources

2006-01-11 Thread Karthik V
ok .. that 2nd question was silly .. i managed it ... pls help me wth the 1st one. On 1/11/06, Karthik V <[EMAIL PROTECTED]> wrote: > > In m2, how do I prevent some classes from being included to the final jar > file? > > Also, I need to add some files (like the xmls generated by xdoclet) to the

Filtering resources

2006-01-11 Thread Karthik V
In m2, how do I prevent some classes from being included to the final jar file? Also, I need to add some files (like the xmls generated by xdoclet) to the jar. These files go to the generated-sources directory and not to the src/main/resources. How do I add these to the final jar?

Re: [m2] Filtering resources and current time

2005-12-14 Thread Allan Ramirez
I think this is already filed.. See MNG-1832 -allan Wim Deblauwe wrote: I could use that too, so please file an issue. 2005/12/15, Edwin Punzalan <[EMAIL PROTECTED]>: AFAIK, there is no ${} expression with the current time as value. You may want to file a jira request for this feature th

Re: [m2] Filtering resources and current time

2005-12-14 Thread Wim Deblauwe
I could use that too, so please file an issue. 2005/12/15, Edwin Punzalan <[EMAIL PROTECTED]>: > > > AFAIK, there is no ${} expression with the current time as value. You > may want to file a jira request for this feature though. The Maven 2 > jira is here: http://jira.codehaus.org/browse/MNG >

Re: [m2] Filtering resources and current time

2005-12-14 Thread Edwin Punzalan
AFAIK, there is no ${} expression with the current time as value. You may want to file a jira request for this feature though. The Maven 2 jira is here: http://jira.codehaus.org/browse/MNG Piotr Bzdyl wrote: Hello, I would like to have something like this in my pom.xml src/

[m2] Filtering resources and current time

2005-12-12 Thread Piotr Bzdyl
Hello, I would like to have something like this in my pom.xml src/main/resources true and in src/main/resources/app.properties: app.buildTime=${currentTime} to get current time (the time when I call mvn package for example) in the place of ${currentTime}. Is there a ma

Re: ClassCastException on filtering resources

2005-11-15 Thread Brett Porter
AIL PROTECTED] > Envoyé : 15 novembre 2005 11:36 > À : users@maven.apache.org > Objet : ClassCastException on filtering resources > > > Hi, I'm trying to use filtering in my pom. > > > tembec > > src/main/filters/filter.properties >

RE: ClassCastException on filtering resources

2005-11-15 Thread Jean-Sebastien Bournival
I forgot to say I am using Maven 2, JDK 1.4.2_09. -Message d'origine- De : Jean-Sebastien Bournival [mailto:[EMAIL PROTECTED] Envoyé : 15 novembre 2005 11:36 À : users@maven.apache.org Objet : ClassCastException on filtering resources Hi, I'm trying to use filtering

ClassCastException on filtering resources

2005-11-15 Thread Jean-Sebastien Bournival
Hi, I'm trying to use filtering in my pom. tembec src/main/filters/filter.properties src\main\webapp-filtered true But when I try to use the ${basedir} property in any of my "src\main\webapp-filtered

Re: [M2] How does filtering resources work?

2005-08-23 Thread Brett Porter
I thinhk we should bounce this off the maven developer list first, but I'm thinking it is reasonable. - Brett On 8/23/05, Carsten Ziegeler <[EMAIL PROTECTED]> wrote: > If I'm not the only one who thinks that filters directly defined at the > resources is a good idea, I could try to develop a patc

Re: [M2] How does filtering resources work?

2005-08-23 Thread Ralph Pöllath
On 23.08.2005, at 07:53, Carsten Ziegeler wrote: If I'm not the only one who thinks that filters directly defined at the resources is a good idea, I could try to develop a patch. Interested? +1 Cheers, -Ralph. Carsten Carsten Ziegeler wrote: Hi Brett, Brett Porter wrote: There was so

Re: [M2] How does filtering resources work?

2005-08-22 Thread Carsten Ziegeler
If I'm not the only one who thinks that filters directly defined at the resources is a good idea, I could try to develop a patch. Interested? Carsten Carsten Ziegeler wrote: > Hi Brett, > > Brett Porter wrote: > >>There was some hesitation to adding filtering in the first place - we >>added it

Re: [M2] How does filtering resources work?

2005-08-20 Thread Carsten Ziegeler
Hi Brett, Brett Porter wrote: > There was some hesitation to adding filtering in the first place - we > added it as a parameter on the resources plugin because it was > uncertain it would be retained in the POM. It now looks like it will, > but we're wary of how it is used. > > It is important fo

Re: [M2] How does filtering resources work?

2005-08-20 Thread Carsten Ziegeler
Andrius Karpavicius schrieb: > Hi, > > I am almost an expert here, after trying to get filtering work for two > days :) > :) > > It seems like you can replace trwo things : > > 1. From a properties file in a format ${token} or @token@ > 2. From a POM.xml file ${project.version} > Ah, great

Re: [M2] How does filtering resources work?

2005-08-19 Thread Brett Porter
> > ../filtered-webapp-resources/WEB-INF/classes > ${basedir}/src/main/resources > > > > ${project.build.directory}/${project.build.finalName}/copiedwithresources > > ${basedir}/src/filters/filter.prope

Re: [M2] How does filtering resources work?

2005-08-19 Thread Andrius Karpavicius
urces ${project.build.directory}/${project.build.finalName}/copiedwithresources ${basedir}/src/filters/filter.properties true Carsten Ziegeler <[EMAIL PROTECTED]> 2005.08.19 15:20 Please respond to "Maven Us

[M2] How does filtering resources work?

2005-08-19 Thread Carsten Ziegeler
I'm a little confused how filtering of resources in M2 works. Now, I can define several resource sets in the build resources section (with include/exclude) patterns. But there is no way of defining filters there. (At least that's what I think). Now I can turn on filtering in the resources plugin.

File encoding used when filtering resources - unable to spesify encoding

2004-01-07 Thread kai lilleby
Help! Has anyone experienced problems with wrong character encoding beeing used when running java:jar-resources or test:test-resources ? It seems like the filtering target that is beeing used here (maven:copy-resources) uses default encoding returned by the OS, wich is different on win and Linux