You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Chris Berry <ch...@gmail.com> on 2006/10/06 01:58:28 UTC

maven-ant-script and bash scripts

Greetings,
I need to call a bash script -- from an Ant script -- that I want to
roll into a Maven plugin based on maven-ant-script. Sound convoluted
;-) It is, but this is the path of least resistance. I have an
existing Ant build to convert.

My question; Can one do this from maven-ant-script?? It seems not,
since maven-ant-script appears to rely upon finding its resources
using the CLASSPATH and these resources are rolled into a JAR
(downloaded into the repository). And, AFAIK, one must execute the
bash script as a file on the file system??

Does anyone know if this is doable??
Is there another maven plugin that one can use to call shell scripts like this??
Thanks,
-- Chris

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


Re: maven-ant-script and bash scripts

Posted by Chris Berry <ch...@gmail.com>.
Thanks Dan.

The maven-exec plugin would work to call a script, and could actually
solve my problem. But it doesn't really answer the fundamental problem
with the maven-ant-script plugin, which works out of a JAR, and thus,
just isn't flexible enough. It really needs to unpack the JAR (or
pieces of it) into /target so that it can actually use those resources
as files.

Ultimately, as people convert Ant builds into maven, they will have
specialized tasks that are easiest to just call as-is. In general,
with Ant this means that it will look for files and not JAR resources.
A general build might have a bit of everything in it, a little Ant, a
little bash, a little Perl -- whatever it takes to get the job done.
We just need a way to deliver the pieces and execute them. The
maven-ant-script plugin is almost there. It can package up build
pieces into a JAR, and deliver it to a repo, but until that JAR is
unpacked, it can only solve a subset of problems.

Of course, I could be missing something...
Cheers,
-- Chris

On 10/5/06, dan tran <da...@gmail.com> wrote:
> exec-maven-plugin ?
>
>
>
> On 10/5/06, Chris Berry <ch...@gmail.com> wrote:
> >
> > Greetings,
> > I need to call a bash script -- from an Ant script -- that I want to
> > roll into a Maven plugin based on maven-ant-script. Sound convoluted
> > ;-) It is, but this is the path of least resistance. I have an
> > existing Ant build to convert.
> >
> > My question; Can one do this from maven-ant-script?? It seems not,
> > since maven-ant-script appears to rely upon finding its resources
> > using the CLASSPATH and these resources are rolled into a JAR
> > (downloaded into the repository). And, AFAIK, one must execute the
> > bash script as a file on the file system??
> >
> > Does anyone know if this is doable??
> > Is there another maven plugin that one can use to call shell scripts like
> > this??
> > Thanks,
> > -- Chris
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>

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


Re: maven-ant-script and bash scripts

Posted by dan tran <da...@gmail.com>.
exec-maven-plugin ?



On 10/5/06, Chris Berry <ch...@gmail.com> wrote:
>
> Greetings,
> I need to call a bash script -- from an Ant script -- that I want to
> roll into a Maven plugin based on maven-ant-script. Sound convoluted
> ;-) It is, but this is the path of least resistance. I have an
> existing Ant build to convert.
>
> My question; Can one do this from maven-ant-script?? It seems not,
> since maven-ant-script appears to rely upon finding its resources
> using the CLASSPATH and these resources are rolled into a JAR
> (downloaded into the repository). And, AFAIK, one must execute the
> bash script as a file on the file system??
>
> Does anyone know if this is doable??
> Is there another maven plugin that one can use to call shell scripts like
> this??
> Thanks,
> -- Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>