RE: filter plugin?

2007-09-25 Thread Brian E. Fox
The resource plugin does filtering as part of the normal lifecycle
(things in /src/main/resources by default). You can bind it to other
phases if you want.

-Original Message-
From: John Coleman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 25, 2007 6:15 AM
To: Maven Users List
Subject: filter plugin?

Hi,

 

We have a scenario where we want to build a WAR, but whereas the plugin
will copy in and filter additional web resources during the package
phase, we want to filter template source during an earlier source phase
so that we can then use these processed templates during the package
phase.

 

Is there a plain filter plugin we can use just to do replacements for
the templated code at a phase we designate earlier in the lifecycle?

 

TIA

John


Eurobase International Limited and its subsidiaries (Eurobase) are
unable to exercise control over the content of information in E-Mails.
Any views and opinions expressed may be personal to the sender and are
not necessarily those of Eurobase. Eurobase will not enter into any
contractual obligations in respect of any part of its business in any
E-mail. 

Privileged / confidential information may be contained in this message
and /or any attachments. This E-mail is intended for the use of the
addressee(s) only and may contain confidential information. If you are
not the / an intended recipient, you are hereby notified that any use or
dissemination of this communication is strictly prohibited.  If you
receive this transmission in error, please notify us immediately, and
then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any
defects of any kind either in or arising from this E-mail transmission.
E-Mail transmission cannot be guaranteed to be secure or error-free, as
messages can be intercepted, lost, corrupted, destroyed, contain
viruses, or arrive late or incomplete. Eurobase does not accept any
responsibility for viruses and it is your responsibility to scan any
attachments.

Eurobase Systems Limited is the main trading company in the Eurobase
International Group; registered in England and Wales as company number
02251162; registered address: Essex House, 2 County Place, Chelmsford,
Essex CM2 0RE, UK.


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



RE: filter plugin?

2007-09-25 Thread John Coleman
Hi,

How does an ant-run task perform filtering- can you share an example
pelase?

John

-Original Message-
From: Kevin Jackson [mailto:[EMAIL PROTECTED] 
Sent: 25 September 2007 11:16
To: Maven Users List
Subject: Re: filter plugin?

Hi,

> Is there a plain filter plugin we can use just to do replacements for
> the templated code at a phase we designate earlier in the lifecycle?

We use the ant-run plugin at the gen-sources phase to filter resources
before the package phase (when the war plugin executes)

Kev

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


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.


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



Re: filter plugin?

2007-09-25 Thread Tim Kettler

Sorry, I probably misread your post. Just ignore what I wrote.

-Tim

Tim Kettler schrieb:

Hi,

have you looked at the web-resources feature of the war plugin [1]?

Somthing like this should work:

  
org.apache.maven.plugins
maven-war-plugin

  

  
  target/${path.to.filtered.templates}

  

  

-Tim

[1] 
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html 



John Coleman schrieb:

Hi,

 


We have a scenario where we want to build a WAR, but whereas the plugin
will copy in and filter additional web resources during the package
phase, we want to filter template source during an earlier source phase
so that we can then use these processed templates during the package
phase.

 


Is there a plain filter plugin we can use just to do replacements for
the templated code at a phase we designate earlier in the lifecycle?

 


TIA

John


Eurobase International Limited and its subsidiaries (Eurobase) are 
unable to exercise control over the content of information in E-Mails. 
Any views and opinions expressed may be personal to the sender and are 
not necessarily those of Eurobase. Eurobase will not enter into any 
contractual obligations in respect of any part of its business in any 
E-mail.
Privileged / confidential information may be contained in this message 
and /or any attachments. This E-mail is intended for the use of the 
addressee(s) only and may contain confidential information. If you are 
not the / an intended recipient, you are hereby notified that any use 
or dissemination of this communication is strictly prohibited.  If you 
receive this transmission in error, please notify us immediately, and 
then delete this E-mail.
Neither the sender nor Eurobase accepts any liability whatsoever for 
any defects of any kind either in or arising from this E-mail 
transmission. E-Mail transmission cannot be guaranteed to be secure or 
error-free, as messages can be intercepted, lost, corrupted, 
destroyed, contain viruses, or arrive late or incomplete. Eurobase 
does not accept any responsibility for viruses and it is your 
responsibility to scan any attachments.


Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, 
Essex CM2 0RE, UK.






-
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]



Re: filter plugin?

2007-09-25 Thread Tim Kettler

Hi,

have you looked at the web-resources feature of the war plugin [1]?

Somthing like this should work:

  
org.apache.maven.plugins
maven-war-plugin

  

  
  target/${path.to.filtered.templates}

  

  

-Tim

[1] 
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html


John Coleman schrieb:

Hi,

 


We have a scenario where we want to build a WAR, but whereas the plugin
will copy in and filter additional web resources during the package
phase, we want to filter template source during an earlier source phase
so that we can then use these processed templates during the package
phase.

 


Is there a plain filter plugin we can use just to do replacements for
the templated code at a phase we designate earlier in the lifecycle?

 


TIA

John


Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited.  If you receive this transmission in error, please notify us immediately, and then delete this E-mail. 


Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.





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



Re: filter plugin?

2007-09-25 Thread Kevin Jackson
Hi,

> Is there a plain filter plugin we can use just to do replacements for
> the templated code at a phase we designate earlier in the lifecycle?

We use the ant-run plugin at the gen-sources phase to filter resources
before the package phase (when the war plugin executes)

Kev

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



filter plugin?

2007-09-25 Thread John Coleman
Hi,

 

We have a scenario where we want to build a WAR, but whereas the plugin
will copy in and filter additional web resources during the package
phase, we want to filter template source during an earlier source phase
so that we can then use these processed templates during the package
phase.

 

Is there a plain filter plugin we can use just to do replacements for
the templated code at a phase we designate earlier in the lifecycle?

 

TIA

John


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.



Re: [m2] Simple copy and filter plugin?

2007-02-07 Thread Sebastian Breit

Hello Franz,

i just use the resources-plugin but its not very useful.

OK, i will try to explain.

It's a simple webapp project as part of a bigger project. Later i need 
the war artifact to include it in a release zip. Some files in the war 
have to be filtered environment specific while building the release zip. 
So the war artifact is installed unfiltered in the repository.
But to simplify the development i want to filter the 
target/artifact-0.1-SNAPSHOT directory to 
target/artifact-0.1-SNAPSHOT.filterd (or somewhere else) after building 
the war. Then it's able to use the filterd directory to test the webapp 
locally without calling anymore commands.


At the moment i use this code in the pom:

   
 local-filter
 
   
 
   target/${project.build.finalName}
   true
   ${project.build.finalName}.filtered
 
   
   
 
   org.apache.maven.plugins
   maven-resources-plugin
   
 ${project.build.directory}
   
   
 
   filter files while package
   
 resources
   
   package
 
   
 
   
 
   

The disadvantage is that the resources goal runs twice. During building 
the war and after that. So the files will be copied twice - not very nice.



Sebastian


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



Re: [m2] Simple copy and filter plugin?

2007-02-07 Thread Sebastian Breit


takai schrieb:

for each profile do


   
   


that should work, shouldn't it?
  
Unfortunately not, because the profiles are environment specific (local, 
test server, development server) so i can't specify the needed file in 
the task.


Sebastian

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



Re: [m2] Simple copy and filter plugin?

2007-02-07 Thread takai

for each profile do


   
   


that should work, shouldn't it?


Sebastian Breit wrote:
> 
> takai schrieb:
>> I'd use the antrun plugin.
> OK, its no problem to copy files. But i have defined multiple profiles. 
> Every profile defines filter tokens read from a profile specific file. 
> How can i use these tokens while copying with the antrun-plugin?
> 
> Regards
> Sebastian
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-m2--Simple-copy-and-filter-plugin--tf3187244s177.html#a8847884
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] Simple copy and filter plugin?

2007-02-07 Thread franz see

Good day to you, Sebastian,

Actually you can with maven-resources-plugin ( though it may not be pretty
).

Something like...


  ...
  

  
../../some-path-from-the-basedir


  
  
../../some-path-from-the-basedir-2


  
  ...

  


Cheers,
Franz


Sebastian Breit wrote:
> 
> Hi,
> 
> often i need only to copy some files from one directory to another. 
> Sometimes the files must be filtered. Is there any simple plugin for this?
> 
> I tried two plugins to do the job:
> - The assemby-plugin doesn't filter filesets and i can't read 
> ${project.build.finalName} in the descriptor.
> - The resources-plugin isn't free to set source and destination 
> directory on each execution.
> 
> Regards
> Sebastian
> 
> -- 
> T-Systems Multimedia Solutions GmbH (T-Systems MMS)
> Sebastian Breit
> Softwareentwickler
> Hausanschrift: Riesaer Strasse 5, 01129 Dresden
> Postanschrift:  Postfach 10 02 24, 01072 Dresden
> Telefon: +49 351 28 20-29 27
> Telefax: +49 351 28 20-51 14
> E-Mail: mailto:[EMAIL PROTECTED]
> Internet: http://www.t-systems-mms.com 
> Aufsichtsrat: Helmut Binder (Vorsitzender) 
> Geschäftsführung: Dr. Klaus Radermacher, Peter Klingenburg
> Handelsregister: Amtsgericht Dresden (HRB 11433), Sitz der Gesellschaft
> Dresden
> Ust-IdNr.: DE 811 807 949
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-m2--Simple-copy-and-filter-plugin--tf3187244s177.html#a8847641
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] Simple copy and filter plugin?

2007-02-07 Thread Sebastian Breit

takai schrieb:

I'd use the antrun plugin.
OK, its no problem to copy files. But i have defined multiple profiles. 
Every profile defines filter tokens read from a profile specific file. 
How can i use these tokens while copying with the antrun-plugin?


Regards
Sebastian


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



Re: [m2] Simple copy and filter plugin?

2007-02-07 Thread takai

I'd use the antrun plugin.
-- 
View this message in context: 
http://www.nabble.com/-m2--Simple-copy-and-filter-plugin--tf3187244s177.html#a8846466
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[m2] Simple copy and filter plugin?

2007-02-07 Thread Sebastian Breit

Hi,

often i need only to copy some files from one directory to another. 
Sometimes the files must be filtered. Is there any simple plugin for this?


I tried two plugins to do the job:
- The assemby-plugin doesn't filter filesets and i can't read 
${project.build.finalName} in the descriptor.
- The resources-plugin isn't free to set source and destination 
directory on each execution.


Regards
Sebastian

--
T-Systems Multimedia Solutions GmbH (T-Systems MMS)
Sebastian Breit
Softwareentwickler
Hausanschrift: Riesaer Strasse 5, 01129 Dresden
Postanschrift:  Postfach 10 02 24, 01072 Dresden
Telefon: +49 351 28 20-29 27
Telefax: +49 351 28 20-51 14
E-Mail: mailto:[EMAIL PROTECTED]
Internet: http://www.t-systems-mms.com 
Aufsichtsrat: Helmut Binder (Vorsitzender) 
Geschäftsführung: Dr. Klaus Radermacher, Peter Klingenburg

Handelsregister: Amtsgericht Dresden (HRB 11433), Sitz der Gesellschaft Dresden
Ust-IdNr.: DE 811 807 949