ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markusin" <>
Subject RE: Implementing ant task which extends ExecTask
Date Fri, 09 Jun 2006 17:12:44 GMT
Hello Scot

I will be awy for 2 weeks. I hope it is ok, if I will answer you when I am
back again.


<-----Original Message-----
<From: Scot P. Floess [] 
<Sent: Freitag, 9. Juni 2006 12:58
<To: Markusin
<Cc: 'Ant Users List'
<Subject: Re: Implementing ant task which extends ExecTask
<Well you can certainly do all the finds and string compares 
<within ant.  
<In fact, you can probably  do your sql work as well from ant as well.
<I'm not clear as to what isn't working.  You mention using the 
<Exec task...  Are you using ant to call out to the OS to find 
<all files and do some kind of work using shp2pgsql ?  Or, are 
<you using ant for most of your work (meaning finding, etc) and 
<then taking the results and "handing" those to shp2pgsql ?
<Anyway can I get a copy of your build.xml so I might 
<understand better?  
<I might not be able to help you today...but usually Saturday 
<and Sunday mornings are my "tinker time" at I can 
<probably devote some time to it then...
<Markusin wrote:
<> Hi Scot
<> Ok, sorry for the small description.
<> My intention is to execute shp2pgsql as an ant target.
<> So first I tried to do this using the existing ant target exec, but 
<> because of small functionality in stringparsing (need to pass as 
<> arguments the name of the file (shapefile), the name of the 
<> target-table (which is the name of the file without path and 
<suffix) and the schemaname).
<> So I start to write my own ant task, which has as input:
<> 1) input path
<> 2) schema name
<> The input path will be scanned recursivly, finding all files 
<with the 
<> suffix *.shp, than starts the stringparsing, which creates 
<the name of 
<> the table and after that for each found shape will there should be 
<> calles shp2pgsql <shapefile> <tablename> <schemaname> .
<> So this I am actually trying (by using the ExecTask class), but 
<> without success.
<> ___________________________________________________________
<> Telefonate ohne weitere Kosten vom PC zum PC: 
<Scot P. Floess
<27 Lake Royale
<Louisburg, NC  27549
<252-478-8087 (Home)
<919-754-4592 (Work)
<Chief Architect JPlate
<Chief Architect JavaPIM
<To unsubscribe, e-mail: For 
<additional commands, e-mail:


Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message