We were talking a bit after last night's meeting (and playing golf on the
Wii) and I mention the undocumented tag in coldfusion called cfant. If you
ever want to run an ANT task with CF, the cfant tag is the way to go. Some
try using cfexecute, but I'll just say don't go there ;)

Naturally, bare in mind this is undocumented tag and not supported by Adobe,
but it's a really nice tag and works well for me. CF actually uses this tag
to install itself, so I can't imagine it going away anytime soon. It works
on CF 7 and 8, it might also run on 6 but I'm not sure. I figure I throw
this out there incase anyone needs it..

<cfant buildFile="completePathToBuildFile"
 defaultDirectory="seemsTobeIgnoredButMustBePresent" 
 anthome="alsoSeemsToBeIgnoredButMayNeedToHaveAnEnvironmentVariableSetup"
 messages="coldFusionVariableToHoldOutPutMessages"
 target="defaultTarget"
/>

So far example..

<cfant buildFile="C:\PathToYourBuildFile\build.xml"
 defaultDirectory=""    
 anthome=""
 messages="antResult"
 target="main"
/>

<cfdump var="#antResult#">


John Mason
[EMAIL PROTECTED]
770.337.8363
 
www.FusionLink.com - ColdFusion and Flex hosting
Now offering ColdFusion 8 Enterprise hosting
FREE Subversion hosting




-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------



Reply via email to