Jump to content

Writing Regular Expression In Ant ..


Recommended Posts

Posted

[quote name='tollywoodfan123' timestamp='1350662581' post='1302656452']
white spaces thesesa bhayya...
<?xml version="1.0"?>
<project name="Sample" default="sample">
<property name="build" value="DEV1_R2012.08.21.B2012.05.08.01.R2012.08.21.S2012.05.09.01" />
<propertyregex property="var1"
input="${build.value}"
regexp="\A(DEV)\d"
casesensitive="false" />
<propertyregex property="var2"
input="${build.value}"
regexp="\A*(R(\S*))"
casesensitive="false" />
</project>

C:\Users\u463440\Downloads\myproject>ant -f new.xml
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
Buildfile: C:\Users\u463440\Downloads\myproject\new.xml

BUILD FAILED
C:\Users\u463440\Downloads\myproject\new.xml:7: Problem: failed to create task or type propertyregex
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Total time: 0 seconds
[/quote]

anniya...propertyregex vadali ante ant-contrib library kavali kada anniya..
http://ant-contrib.sourceforge.net/ download from there and put it in <ant-install-dir>/libs and try

  • Replies 35
  • Created
  • Last Reply

Top Posters In This Topic

  • CQ5_DEV

    20

  • tollywoodfan123

    10

  • pikki

    2

  • cherlapalli_jailer

    2

Top Posters In This Topic

Posted

nenu kasepu offline unta db lo...regex matram ade bhayya..nuvvu fix avvu..inka help kavali ante pm cheyi..malli db open chesinapudu chusi reply ista.. S%Hi

Posted

Great job CQ5_DEV

helped others too

BTW CQ5 ela nadustunnadi

Posted

[quote name='cherlapalli_jailer' timestamp='1350664728' post='1302656780']
Great job CQ5_DEV

helped others too

BTW CQ5 ela nadustunnadi
[/quote]

[img]http://www.bewarsetalk.net/discus/movieanimated7/exactly.gif[/img]

baane nadustundi jailer garu...

Posted

[quote name='cherlapalli_jailer' timestamp='1350664728' post='1302656780']
Great job CQ5_DEV

helped others too

BTW CQ5 ela nadustunnadi
[/quote]

meeru cq5 nerchukunta annaru..ela nerchukuntaro cheppaledu..
adi free kadu kada..trainer ela training istadu mari (!(<

Posted

[color=#282828][font=helvetica, arial, sans-serif]Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]Buildfile: C:\Users\u463440\Downloads\myproject\sample.xml[/font][/color]


ant ki java build path correct ivvaledhu meeru
tools.jar is in Java or jre folders

either path class path of java is not set
If it is in eclipse and you run it you should not get this problem

U would have got this in cmd prmpt
then set path and aclasspath for java bro

Posted

[quote name='bujjulu' timestamp='1350665371' post='1302656880']
ant ki java build path correct ivvaledhu meeru
tools.jar is in Java or jre folders

either path class path of java is not set
If it is in eclipse and you run it you should not get this problem

U would have got this in cmd prmpt
then set path and aclasspath for java bro
[/quote]

babu eto poyadu bujjulu uncle..
threadu threadu tirigi vethukuna babu kosam :3D_Smiles_199:

Posted

tools.jar is in C:\Program Files\Java\jdk1.7.0_07\lib.....i did set these in environment variables..
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_07\bin
set CLASSPATH=C:\Program Files\Java\jdk1.7.0_07\lib
set ANT_HOME=C:\Users\U463440\Downloads\apache-ant-1.8.4-bin\apache-ant-1.8.4

inka em set cheyali bhayya...

Posted

[quote name='tollywoodfan123' timestamp='1350668337' post='1302657228']
tools.jar is in C:\Program Files\Java\jdk1.7.0_07\lib.....i did set these in environment variables..
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_07\bin
set CLASSPATH=C:\Program Files\Java\jdk1.7.0_07\lib
set ANT_HOME=C:\Users\U463440\Downloads\apache-ant-1.8.4-bin\apache-ant-1.8.4

inka em set cheyali bhayya...
[/quote]

avi chesav kada...ipudu build success aa mari?

Posted

[url="http://www.andhrafriends.com/user/25603-tollywoodfan123/"]tollywoodfan123[/url]

Posted

[quote name='pikki' timestamp='1350674715' post='1302658277']
CITI#H@ :4_12_13: :4_12_13: :4_12_13:
[/quote]

&C$F

Posted

aa issue alane undi kaani build work ayyindi.,...:)
thanks bhayya.....

Posted

[quote name='CQ5_DEV' timestamp='1350674794' post='1302658289']
&C$F
[/quote]

enduku congrats... sCo_^Y

Posted

[quote name='CQ5_DEV' timestamp='1350665318' post='1302656871']

meeru cq5 nerchukunta annaru..ela nerchukuntaro cheppaledu..
adi free kadu kada..trainer ela training istadu mari (!(<
[/quote]
CQ5 can down load free kada
i am very good in JAVA (I think so ) so i read some article etc..

Now kasta busy office lo ...Nov 3rd week lo start chesta

×
×
  • Create New...