ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "glenn opdycke-hansen" <glenn...@gmail.com>
Subject Re: How to Configure batch file in Ant?
Date Thu, 18 Sep 2008 13:14:33 GMT
I think that John was asking was why are you trying to run a .bat file on
linux..bat files are usually run on windows.  You state that you are on
linux.

Other questions include: Do you want to install ActiveMQ with Ant?
I would try out the commands needed for your stated requirements.
Then you can decide what you want to do with Ant.

--glenn

On Thu, Sep 18, 2008 at 7:42 AM, Jan K <janokb@symbiountech.com> wrote:

>
> You are correct.Is there ayy command available in ant to configure
> activemq.bat file in Ant build.xml?
> My requirement is :
>  1. Setup ANT build
> 2. ANT deploy to install ActiveMQ
> 3. ANT deploy to install the Hub and the web based testing app including
> the
> database
> 4. README and installation document
> i need to know how accomplish these?please help me.
>
> John5342 wrote:
> >
> > I think your getting linux and windows confused. You say you are using
> > linux
> > but cmd is the windows shell and .bat files are again windows batch
> files.
> > That is why you get a "cmd: not found" error (because cmd doesnt exist on
> > linux). If you want a linux equivalent to cmd and batch files read up on
> > bash scripts.
> >
> > 2008/9/18 Jan K <janokb@symbiountech.com>
> >
> >>
> >> I am a new bee to Ant.I need to know how to configure batch file in
> Ant.I
> >> am
> >> using Ant 1.6.5 and Linux(ubuntu)platform.I tried using
> >> <target name="test">
> >> <exec dir="." executable="cmd" spawn="true">
> >> <arg line="/c start activemq.bat"/>
> >> </exec>
> >> </target>
> >> <target name="default">
> >> <antcall target="test" />
> >> </target>
> >> I really dont know what i am doing is correct.I browsed through google
> >> and
> >> got this exec command.I am geting an error as Execute failed:
> >> java.io.IOException: java.io.IOException: cmd: not found
> >> Please help me to solve this.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/How-to-Configure-batch-file-in-Ant--tp19551111p19551111.html
> >> Sent from the Ant - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> For additional commands, e-mail: user-help@ant.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-Configure-batch-file-in-Ant--tp19551111p19552002.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message