I wrote an ant task as part of
http://www.zeroc.com/labs/protobuf/index.html.
The task is part of the patch file for the download, which isn't all
that convenient. At any rate, you might want to check that out, and
see if it is useful for your project!
The files to look at are: java/demo/Ice/protobuf/ant/ProtocTask.java
for the task implemetation and java/demo/Ice/protobuf/build.xml for an
example.
Regards, Matthew
On Jul 8, 8:40 pm, anjanBacchu <
anjan....@gmail.com> wrote:
> " It sounds like
> betterantsupport would be a good thing to add as well. "
> +1
>
> On Jul 7, 6:11 pm, "Kenton Varda" <
tempo...@gmail.com> wrote:
>
> > For now, just use an <exec>task. I think something like this works:
>
> > <exec executable="protoc">
> > <arg value="--java_out=outdir" />
> > <arg value="--proto_path=srcdir" />
> > <arg value="srcdir/path/to/input.proto" />
> > </exec>
>
> > There are plans in the works for a Maven plugin for this. It sounds like
> > betterantsupport would be a good thing to add as well.
> > > I don't see anANTtaskin the distribution. What's the preferred way