You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Steve Cohen <sc...@javactivity.org> on 2012/11/28 17:13:47 UTC

Create text file in maven?

Is there a way in maven to "echo" some text provided via a property in 
pom.xml into a text file at a given location?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Create text file in maven?

Posted by Jim McCaskey <ji...@pervasive.com>.
Steve,

You can use the antrun plugin for that just using ant echo statements.

http://maven.apache.org/plugins/maven-antrun-plugin/

There might be a plugin that can do just the echo, but I don't know what that would be.

-Jim

-----Original Message-----
From: Steve Cohen [mailto:scohen@javactivity.org]
Sent: Wednesday, November 28, 2012 10:14 AM
To: users@maven.apache.org
Subject: Create text file in maven?

Is there a way in maven to "echo" some text provided via a property in
pom.xml into a text file at a given location?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


NOTICE: All information in and attached to this email may be proprietary, confidential, privileged and otherwise protected from improper or erroneous disclosure. If you are not the sender's intended recipient, you are not authorized to intercept, read, print, retain, copy, forward, or disseminate this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Create text file in maven?

Posted by Jochen Wiedmann <jo...@gmail.com>.
Use the groovy-maven-plugin:

  http://groovy.codehaus.org/GMaven



On Wed, Nov 28, 2012 at 5:13 PM, Steve Cohen <sc...@javactivity.org> wrote:

> Is there a way in maven to "echo" some text provided via a property in
> pom.xml into a text file at a given location?
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org<us...@maven.apache.org>
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
The best argument for celibacy is that the clergy will sooner or later
become extinct.

Re: Create text file in maven?

Posted by "Mark H. Wood" <mw...@IUPUI.Edu>.
On Wed, Nov 28, 2012 at 10:13:47AM -0600, Steve Cohen wrote:
> Is there a way in maven to "echo" some text provided via a property in 
> pom.xml into a text file at a given location?

Perhaps [modest cough] http://mypage.iu.edu/~mwood/FileWeaver/

-- 
Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
I don't do "doorbusters".

Re: Create text file in maven?

Posted by Steve Cohen <sc...@javactivity.org>.
On 11/28/2012 10:13 AM, Steve Cohen wrote:
> Is there a way in maven to "echo" some text provided via a property in
> pom.xml into a text file at a given location?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
my simple yet ridiculously inelegant solution was to create a class in 
my project that can executed through the exec:java goal.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Create text file in maven?

Posted by Stephen Connolly <st...@gmail.com>.
Resource filtering!

On Wednesday, 28 November 2012, Steve Cohen wrote:

> Is there a way in maven to "echo" some text provided via a property in
> pom.xml into a text file at a given location?
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>