You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Casillas Bayo, Sergio (ext)" <se...@atos.net> on 2015/08/13 09:17:04 UTC

Question about my ant

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.casillas@atos.net<ma...@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.

AW: Question about my ant

Posted by "Jan Matèrne (jhm)" <ap...@materne.de>.
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: sfloess@nc.rr.com [mailto:sfloess@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.casillas@atos.net<ma...@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-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


Re: Question about my ant

Posted by sf...@nc.rr.com.
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.casillas@atos.net<ma...@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-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org