ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Plessers <tpless...@tiscali.be>
Subject Re: Apply m4 acts weird in Linux
Date Wed, 20 Aug 2003 12:03:59 GMT
Great, it works !!!
Thank you very very much.

Tim Plessers

On Monday 18 August 2003 00:59, you wrote:
> > On Thu, 14 Aug 2003, Tim Plessers <tplessers@tiscali.be> wrote:
> > > This is indeed the best solution, however, I'm not a shell script
> > > expert.
> >
> > Use the snippet I've posted and put it into a file named m4-wrapper.sh
> > - make it executable.
> >
> > Your original <apply> looked like this
> >
> > > <apply
> > >       executable="/usr/bin/m4"
> > >       dir="${build.dir}/com/zappware/${name}"
> > >       dest="${build.dir}/com/zappware/${name}"
> > >       relative="true"
> > >       vmlauncher="true"
> > >       os="Linux">
> > >
> > >               <arg value="-I${src.abs.dir}"/>
> > >               <srcfile/>
> > >               <arg value=">"/>
> > >               <targetfile/>
> > >
> > >               <fileset dir="com/zappware/${name}" includes="*.jm4"/>
> > >               <mapper type="glob" from="*.jm4" to="*.java"/>
> > >
> > > </apply>
> >
> > My script will use its first argument as the output file and pass all
> > subsequent parameters to m4, so all you'd have to do should be this
> >
> > <apply
> >         executable="m4-wrapper.sh"
> >         dir="${build.dir}/com/zappware/${name}"
> >         dest="${build.dir}/com/zappware/${name}"
> >         relative="true"
> >         vmlauncher="true"
> >         os="Linux">
> >
> >                 <targetfile/>
> >                 <arg value="-I${src.abs.dir}"/>
> >                 <srcfile/>
> >
> >                 <fileset dir="com/zappware/${name}" includes="*.jm4"/>
> >                 <mapper type="glob" from="*.jm4" to="*.java"/>
> >
> > </apply>
> >
> > and maybe use the full path to the script in the executable attribute.
> >
> > I have neither tested the script snippet nor run the <apply> task, but
> > I'm pretty confident that it will work.
> >
> > Stefan
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message