Skip to content

Instantly share code, notes, and snippets.

View 65's full-sized avatar

Duncan Isaksen-Loxton 65

View GitHub Profile
@65
65 / build.number
Created March 10, 2012 07:41
Using the ANT build.number file
<target name="buildnumber">
<buildnumber/>
<echo message="ANT Build number ${build.number}" />
</target>
@65
65 / application.xml
Created March 10, 2012 07:46
How to get the SVN revision number for use in ANT
<target name="revisionnumber">
<!-- get the svn revision number -->
<svn>
<status path="application.cfm" revisionProperty="svn.revision" />
</svn>
<echo>
Sandbox Revision: ${svn.revision}
</echo>
</target>
@65
65 / exportcurrent.xml
Created March 10, 2012 09:44
Exporting a SVN Working Copy with ANT
<!-- export current head revision -->
<echo message="exporting to ${buildDir}" />
<property name="buildDir" value="c:/export/${projectName}" />
<svn username="username" password="password">
<export srcUrl="http://localhost/svn/testrepository" destPath="${buildDir}" revision="HEAD" />
</svn>
@65
65 / exec.xml
Created March 10, 2012 09:49
Installing SVNAnt into Eclipse
<exec executable="svn">
<arg line="co ${svn.projecturl} ${build.temp} -r ${svn.revision} --username ${svn.username} --password ${svn.password}"/>
</exec>
@65
65 / username.xml
Created March 10, 2012 09:59
Keeping the private stuff out of ANT config files
<input message="Please enter svn username:" addproperty="svn.username" defaultvalue="" />
<input message="Please enter svn password:" addproperty="svn.password" defaultvalue="" />
<!-- update working copy to make sure -->
<echo message="updating working copy at ${svn.wc}" />
<svn username="${svn.username}" password="${svn.password}">
<update dir="${svn.wc}"/>
</svn>
@65
65 / getproductlist.js
Created March 10, 2012 10:22
customising ajaxCFC JQuery - Error Handler
$.AjaxCFC({
url: "/ajax/ecom.cfc",
method: "getProductList",
data: {"CategoryID":0},
success: function(r) {
sDumper(r);
}
});
@65
65 / coldfusion8.cfm
Created March 10, 2012 10:32
ColdFusion 8 operator syntax && and AND!
<cfif isDefined("client.safe") && Len(client.safe)>
#client.safe#
</cfif>
@65
65 / blcokmessage.js
Created March 10, 2012 10:59
customising ajaxCFC JQuery - BlockUI Messages
blockMessage: "Fetching Products...",
@65
65 / login failed.txt
Created March 10, 2012 11:13
SQL Login failed because the account is currently locked out
[Macromedia][SQLServer JDBC Driver][SQLServer]Login failed for user 'databasename01' because the account is currently locked out.
The system administrator can unlock it.
@65
65 / cfrender.cfm
Created March 10, 2012 17:51
Cross Site Scripting (CSS/XSS) Gotcha when using cfform
<form action="/this/folder/path/index.cfm?SumNum=1594481679" name="thisform" method="post">