You also could use the AntLib-Props.
There is no official release, but you could use the CI-build.
https://builds.apache.org/view/All/job/AntLib-props/lastSuccessfulBuild/artifact/distribution/binaries/

For usage you should have a look at the unit tests
https://git-wip-us.apache.org/repos/asf?p=ant-antlibs-props.git;a=blob;f=src/tests/antunit/stringops-test.xml;h=8b94f68e22b7c1ccea2bbaa64e963f1ab324550e;hb=HEAD

<propertyhelper>
  <props:stringops />
</propertyhelper>

<property name="testSubstring" value="testSubstring.value" />
<au:assertTrue>
  <equals arg1="${testSubstring:14:5}" arg2="value" />
</au:assertTrue>


Jan



> -----Ursprüngliche Nachricht-----
> Von: sflo...@nc.rr.com [mailto:sflo...@nc.rr.com]
> Gesendet: Sonntag, 16. August 2015 15:20
> An: Ant Users List
> Cc: Casillas Bayo, Sergio (ext)
> Betreff: Re: Question about my ant
> 
> Sergio,
> 
> You can do string manipulation either with a scripting language or Ant
> Contrib (http://ant-
> contrib.sourceforge.net/tasks/tasks/propertyregex.html)
> 
> Not sure this answers your question?
> 
> Flossy
> 
> ---- "Casillas Bayo wrote:
> > Hello,
> >
> > I'm using an ant file and I have a question. ¿It is possible to use a
> function like substring-before function (xpath)?.
> >
> > Thanks!.
> >
> > Sergio Casillas Bayo
> > SI Technological Solutions
> > sergio.casil...@atos.net<mailto:sergio.casil...@atos.net>
> > c/Albarracín, 25 1ªPlanta A 28037 Madrid, Spain atos.net
> > [cid:image001.gif@01D0C530.FBCB4850]
> >
> >
> >
> > This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive
> this e-mail in error, please notify the sender immediately and destroy
> it.
> > As its integrity cannot be secured on the Internet, the Atos group
> liability cannot be triggered for the message content. Although the
> sender endeavors to maintain a computer virus-free network, the sender
> does not warrant that this transmission is virus-free and will not be
> liable for any damages resulting from any virus transmitted.
> >
> > Este mensaje y los ficheros adjuntos pueden contener información
> confidencial destinada solamente a la(s) persona(s) mencionadas
> anteriormente y pueden estar protegidos por secreto profesional.
> > Si usted recibe este correo electrónico por error, gracias por
> informar inmediatamente al remitente y destruir el mensaje.
> > Al no estar asegurada la integridad de este mensaje sobre la red,
> Atos no se hace responsable por su contenido. Su contenido no
> constituye ningún compromiso para el grupo Atos, salvo ratificación
> escrita por ambas partes.
> > Aunque se esfuerza al máximo por mantener su red libre de virus, el
> emisor no puede garantizar nada al respecto y no será responsable de
> cualesquiera daños que puedan resultar de una transmisión de virus.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional
> commands, e-mail: user-h...@ant.apache.org



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

Reply via email to