Jump to content

Ant---- Help Please


Recommended Posts

Posted

I'm running the ANT to delete directories and sub directories.....I've got 4lakhs files to delete, getting java heap space error...

google lo search chesthey told me to add ANT_ops in batch file......same error vastha undi......Environmetal variables kooda memory size marcha mannaru same error

some body told me to add below attribute in target/.....but i'm getting E [Xerces] Attribute "memorymaximumsize" must be declared for element type "target" ERROR...
[background=transparent] memoryinitialsize[/background][background=transparent]=[/background][color=#800000][background=transparent]"512m"[/background][/color]
[background=transparent] memorymaximumsize[/background][background=transparent]=[/background][color=#800000][background=transparent]"1024m"[/background][/color]


[color=#800000][background=transparent]here is my script[/background][/color]


<target name="delete-directories">
<fileset id="fileset-folder"
dir="${ftk-store}"
casesensitive="false"
>

<include name="Prod\**"/>

</fileset>

<delete includeemptydirs="true">
<fileset refid="fileset-folder"/>
</delete>
</target>


and inkooti 4000 files delete cheidaaniki 30mins thiskunindii.....endha performance issue resolve cheiyadaaniki help





-

Posted

[size=5][color=#000000][font=Verdana, Geneva, Helvetica, Arial, sans-serif]cheema kuda (adhee ANT) Java pi nee kadha run ayedhi mari ee [/font][/color][color=#282828][font=helvetica, arial, sans-serif]memoryinitialsize endhi ??? use -Xmx or -Xms options like [/font][/color][font=Verdana, Geneva, Helvetica, Arial, sans-serif][color=#000000] ANT_OPTS=-Xmx1024m .... run that command before u run ant build command and see any improvements [/color][/font][/size]

Posted

use set [font="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif"][color="#000000"] [/color][/font][color=#000000][font=Verdana, Geneva, Helvetica, Arial, sans-serif][size=5]ANT_OPTS=-Xmx1024m in command prompt , then immediatly run ant build in same command window ............. or declare [/size][/font][/color][color=#000000][font=Verdana, Geneva, Helvetica, Arial, sans-serif][size=5]ANT_OPTS=-Xmx1024m in windows PATH [/size][/font][/color]

Posted

evaroo chepparu ani ekkada padithy akkada attribute add chestha vaa mama ..... memorymaximumsize is attribute for javac task not for delete or other tasks in ANT

[quote name='bombaypriyudu' timestamp='1376349076' post='1304105907']
I'm running the ANT to delete directories and sub directories.....I've got 4lakhs files to delete, getting java heap space error...

google lo search chesthey told me to add ANT_ops in batch file......same error vastha undi......Environmetal variables kooda memory size marcha mannaru same error

[b][color=#ff0000]some body told me to add below attribute in target[/color]/[/b].....but i'm getting E [Xerces] Attribute "[color=#ff0000][b]memorymaximumsize[/b][/color]" must be declared for element type "target" ERROR...
[background=transparent] memoryinitialsize[/background][background=transparent]=[/background][color=#800000][background=transparent]"512m"[/background][/color]
[background=transparent] memorymaximumsize[/background][background=transparent]=[/background][color=#800000][background=transparent]"1024m"[/background][/color]


[color=#800000][background=transparent]here is my script[/background][/color]


<target name="delete-directories">
<fileset id="fileset-folder"
dir="${ftk-store}"
casesensitive="false"
>

<include name="Prod\**"/>

</fileset>

<delete includeemptydirs="true">
<fileset refid="fileset-folder"/>
</delete>
</target>


and inkooti 4000 files delete cheidaaniki 30mins thiskunindii.....endha performance issue resolve cheiyadaaniki help





-
[/quote]

Posted

[quote name='Java01' timestamp='1376349570' post='1304105950']
use set [font="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif"][color="#000000"] [/color][/font][color=#000000][font=Verdana, Geneva, Helvetica, Arial, sans-serif][size=5]ANT_OPTS=-Xmx1024m in command prompt , then immediatly run ant build in same command window ............. or declare [/size][/font][/color][color=#000000][font=Verdana, Geneva, Helvetica, Arial, sans-serif][size=5]ANT_OPTS=-Xmx1024m in windows PATH [/size][/font][/color]
[/quote]

Thanks boss..already cheppa kada, batch file Xms option use Chesaa.....


Anyways 4000 files delete cheidaaniki, 30mins thiskuntundi....idhiki emanna sol..?

×
×
  • Create New...