tracker issue : CF-3036970

select a category, or use search below
(searches all categories and all time range)


| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/

Reporter/Name(from Bugbase): Jared Rypka-Hauer / Jared Rypka-Hauer (Jared Rypka-Hauer)

Created: 12/04/2008

Components: Language, Tags

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 12



I believe if you have SvnAnt available you have all (or most) of the svnadmin commands available.

I really want to see the major CF Admin commands implemented as ANT tasks... imagine:

<cfset appPath = expandPath("/myAppFolder/")>
<cfant defaultTarget="init">
	<target name="init">
		<available property="isUpdaterInstall" file="#appPath#" type="dir" />
	<cfloop collection="props" item="i">
		<property name="#i#" value="#props[i]#" />
		<mkdir dir="#appPath#" />

	<target name="setupserver" depends="init">
		<coldfusion adminpassword="myCfAdminPwd">
			<debug activated="false" extended="false" />
			<trustedcache mode="on" clear="true" />
			<datasource actions="addIfMissing,verify" name="MyAppsDSN" drivertype="SQLServer" server="localhost" user="sa" ... />

	<target name="updateFromSvn" depends="setupServer" if="isUpdaterInstall">
		<svn ...>
			<checkout .../>

	<target name="deployFromSvn" depends="setupServer" unless="isUpdaterInstall">
		<svn ...>
			<update .../>


<cfset appPath = expandPath("/myAppFolder/")>
<cfif NOT User.hasSvnRepo()>
		<svn ...>
			<!-- create user's repo for versioning uploaded documents! -->
			<createRespository .../>


	properties struct creates these properties before executing the first target
	target specifies the first target to be examined
	result captures at least stdOut, possibly exec times, result codes, etc., something parsable is best
<cfant properties="#{foo="bar",dir=expandPath("/appDir")}#" source="myBuild.xml" target="myTarget" result="antOut />
<cfdump var="#antOut#" />


	<cfinclude template="myBuildFile" />


<cfxml variable="antXml">


There's about 10 million ways this could be done (and even more combinations of the above). Regardless of the ways, it MUST be done. Not having it is evil. Personally I prefer a combination of the first and second ideas, where I can actually leverage cf tag attributes to dynamically affect both the contents and the execution of my ANT script, i.e. specifying the initial target, or adding properties dynamically via the tag.

Being able to specify sourcePath, xml in the tag body, cfinclude the XML or output a variable are all valid and relatively important... at the very least supporting xml in the tag body and #xmlSource#. This will be used with dynamically constructed XML more often than not.

Treating the cfant tag like a cfoutput context is also important, think CFMAIL... anything in #...# is output automatically.

Has to at least support:
	default tasks
	svn tasks
	FTP, Java* and jarlib* tasks
	custom tasks for the CF Admin
	The ability to add new tasks/libraries via the CF Administrator

If we can't get all or most of this, we'd be better off to drop into Java and just use the ANT libraries that are (currently) baked into CF. Hell, even cfexecute could be enough if CF can't give us all this stuff. This, THIS, is CF making hard things easy and bringing the power to the people! :D

Just my £10...

Pleeeeeeeeeez? :D



Error: I can't do what I need to (ok, fine... _want_ to) do without this bit of technology.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3036970

External Customer Info:
External Company:  
External Customer Name: Jared Rypka-Hauer
External Customer Email: 08C411A143BC38A7992016B6
External Test Config: 12/04/2008



This bug has been voted..
Vote by External U.
24481 | November 10, 2011 07:07:11 PM GMT
It's absolutely no-where *near* critical, but it certainly would be a "nice to have" if it was no trouble to integrate it. +1 tentative votes.
Vote by External U.
24482 | November 10, 2011 07:07:13 PM GMT
This would be appreciated by many of us. We could build some more progressive third party tools with this.
Vote by External U.
24483 | November 10, 2011 07:07:15 PM GMT
yes, please document (authorise) CFAnt and extend the ANT features available to ColdFusion
Vote by External U.
24484 | November 10, 2011 07:07:16 PM GMT
This an excellent idea allows CF developers to easily take advantage of a lot of the integration work already done for ANT and expose a lot of functionality.
Vote by External U.
24485 | November 10, 2011 07:07:17 PM GMT
This bug has been voted..
Vote by External U.
24486 | November 10, 2011 07:07:19 PM GMT
This bug has been voted..
Vote by External U.
24487 | November 10, 2011 07:07:21 PM GMT
Looking forward to the ANT and especially the SVN managment tags... :-)
Vote by External U.
24488 | November 10, 2011 07:07:22 PM GMT
This bug has been voted..
Vote by External U.
24489 | November 10, 2011 07:07:23 PM GMT
I didn't pay much attention to the urgency level... did I mark it critical? It's definitely not critical, unless you need the functionality. Then again dropping back into Java to run ANT scripts really isn't too hard. I see it as extremely important for enabling a whole bunch of things that we could be doing, but not critical to the platform as a whole. Then again, neither was Hibernate integration. :)
Vote by External U.
24490 | November 10, 2011 07:07:24 PM GMT
While I feel Jared is a little aggressive in filing this as critical, it would certainly be a very helpful and useful addition to the platform
Vote by External U.
24491 | November 10, 2011 07:07:25 PM GMT
I agree with what Adam Cameron said.
Vote by External U.
24492 | November 10, 2011 07:07:27 PM GMT