You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andrew Pennebaker <ap...@42six.com> on 2013/09/12 17:09:41 UTC
How can I compile all .thrift files (*.thrift) as a Maven phase?
I'm using maven-antrun-plugin to execute a thrift shell command. I can
compile one file per <exec> with <arg value="...path/to/file.thrift" />,
but I would like to compile all .thrift files in a directory. How can I do
this?
I tried using <arg value="...path/to/*.thrift" />, but Maven rejected this
syntax.
Re: How can I compile all .thrift files (*.thrift) as a Maven phase?
Posted by Doug Douglass <do...@gmail.com>.
Google might help: http://www.google.com/search?q=thrift%2Bmaven%2Bplugin
I have no experience with this plugin, nor thrift.
HTH
On Thu, Sep 12, 2013 at 12:32 PM, Yuen-Chi Lian <me...@yclian.com> wrote:
> > I'm using maven-antrun-plugin to execute a thrift shell command. I can
> > compile one file per <exec> with <arg value="...path/to/file.thrift" />,
> > but I would like to compile all .thrift files in a directory. How can I
> do
> > this?
> >
> > I tried using <arg value="...path/to/*.thrift" />, but Maven rejected
> this
> > syntax.
> >
>
> I worked with Thrift (and just like you, using Ant-Run) but I don't
> remember my setup anymore. This doesn't look like a Maven/Ant question but
> whether thrift can understand your expression.
>
> From the Thrift homepage, it seems like the Thrift command consumes only 1
> Thrift file.
>
> --
> YC | about.me/yclian
>
> "A bit more curious, a lot more conscious."
>
Re: How can I compile all .thrift files (*.thrift) as a Maven phase?
Posted by Yuen-Chi Lian <me...@yclian.com>.
> I'm using maven-antrun-plugin to execute a thrift shell command. I can
> compile one file per <exec> with <arg value="...path/to/file.thrift" />,
> but I would like to compile all .thrift files in a directory. How can I do
> this?
>
> I tried using <arg value="...path/to/*.thrift" />, but Maven rejected this
> syntax.
>
I worked with Thrift (and just like you, using Ant-Run) but I don't
remember my setup anymore. This doesn't look like a Maven/Ant question but
whether thrift can understand your expression.
>From the Thrift homepage, it seems like the Thrift command consumes only 1
Thrift file.
--
YC | about.me/yclian
"A bit more curious, a lot more conscious."
Re: How can I compile all .thrift files (*.thrift) as a Maven phase?
Posted by Andrew Pennebaker <ap...@42six.com>.
Roger roger, works for me!
On Fri, Sep 13, 2013 at 12:57 PM, Jeff MAURY <je...@gmail.com> wrote:
> You should use an ant fileset in your ant script instead of a file
>
>
>
>
> Jeff
>
> —
> Sent from Mailbox for iPhone
>
> On Fri, Sep 13, 2013 at 6:10 PM, Andrew Pennebaker <ap...@42six.com>
> wrote:
>
> > When I use an asterisk (*) in arg, Maven complains:
> > [INFO] --- maven-antrun-plugin:1.3:run (generate-sources) @ sigacts ---
> > [INFO] Executing tasks
> > [exec]
> > [exec] [FAILURE:arguments:1] Could not open input file with
> realpath:
> > src/main/thrift/*.thrift
> > [exec] Result: 1
> > On Thu, Sep 12, 2013 at 3:41 PM, Michael-O <19...@gmx.net> wrote:
> >> Am 2013-09-12 17:09, schrieb Andrew Pennebaker:
> >>
> >> I'm using maven-antrun-plugin to execute a thrift shell command. I can
> >>> compile one file per <exec> with <arg value="...path/to/file.thrift"
> />,
> >>> but I would like to compile all .thrift files in a directory. How can
> I do
> >>> this?
> >>>
> >>> I tried using <arg value="...path/to/*.thrift" />, but Maven rejected
> this
> >>> syntax.
> >>>
> >>
> >> I have answered this already before: http://stackoverflow.com/a/**
> >> 6781742/696632 <http://stackoverflow.com/a/6781742/696632>
> >>
> >> HTH,
> >>
> >> Michael
> >>
> >>
> >>
> ------------------------------**------------------------------**---------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org<
> users-unsubscribe@maven.apache.org>
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
>
Re: How can I compile all .thrift files (*.thrift) as a Maven
phase?
Posted by Jeff MAURY <je...@gmail.com>.
You should use an ant fileset in your ant script instead of a file
Jeff
—
Sent from Mailbox for iPhone
On Fri, Sep 13, 2013 at 6:10 PM, Andrew Pennebaker <ap...@42six.com>
wrote:
> When I use an asterisk (*) in arg, Maven complains:
> [INFO] --- maven-antrun-plugin:1.3:run (generate-sources) @ sigacts ---
> [INFO] Executing tasks
> [exec]
> [exec] [FAILURE:arguments:1] Could not open input file with realpath:
> src/main/thrift/*.thrift
> [exec] Result: 1
> On Thu, Sep 12, 2013 at 3:41 PM, Michael-O <19...@gmx.net> wrote:
>> Am 2013-09-12 17:09, schrieb Andrew Pennebaker:
>>
>> I'm using maven-antrun-plugin to execute a thrift shell command. I can
>>> compile one file per <exec> with <arg value="...path/to/file.thrift" />,
>>> but I would like to compile all .thrift files in a directory. How can I do
>>> this?
>>>
>>> I tried using <arg value="...path/to/*.thrift" />, but Maven rejected this
>>> syntax.
>>>
>>
>> I have answered this already before: http://stackoverflow.com/a/**
>> 6781742/696632 <http://stackoverflow.com/a/6781742/696632>
>>
>> HTH,
>>
>> Michael
>>
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org<us...@maven.apache.org>
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
Re: How can I compile all .thrift files (*.thrift) as a Maven phase?
Posted by Andrew Pennebaker <ap...@42six.com>.
When I use an asterisk (*) in arg, Maven complains:
[INFO] --- maven-antrun-plugin:1.3:run (generate-sources) @ sigacts ---
[INFO] Executing tasks
[exec]
[exec] [FAILURE:arguments:1] Could not open input file with realpath:
src/main/thrift/*.thrift
[exec] Result: 1
On Thu, Sep 12, 2013 at 3:41 PM, Michael-O <19...@gmx.net> wrote:
> Am 2013-09-12 17:09, schrieb Andrew Pennebaker:
>
> I'm using maven-antrun-plugin to execute a thrift shell command. I can
>> compile one file per <exec> with <arg value="...path/to/file.thrift" />,
>> but I would like to compile all .thrift files in a directory. How can I do
>> this?
>>
>> I tried using <arg value="...path/to/*.thrift" />, but Maven rejected this
>> syntax.
>>
>
> I have answered this already before: http://stackoverflow.com/a/**
> 6781742/696632 <http://stackoverflow.com/a/6781742/696632>
>
> HTH,
>
> Michael
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org<us...@maven.apache.org>
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: How can I compile all .thrift files (*.thrift) as a Maven phase?
Posted by Michael-O <19...@gmx.net>.
Am 2013-09-12 17:09, schrieb Andrew Pennebaker:
> I'm using maven-antrun-plugin to execute a thrift shell command. I can
> compile one file per <exec> with <arg value="...path/to/file.thrift" />,
> but I would like to compile all .thrift files in a directory. How can I do
> this?
>
> I tried using <arg value="...path/to/*.thrift" />, but Maven rejected this
> syntax.
I have answered this already before:
http://stackoverflow.com/a/6781742/696632
HTH,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org