Skip to content

Instantly share code, notes, and snippets.

@orangexception
Created November 7, 2011 13:25
Show Gist options
  • Save orangexception/1344944 to your computer and use it in GitHub Desktop.
Save orangexception/1344944 to your computer and use it in GitHub Desktop.
Create list of java files in a directory
<cfdirectory directory= "#ExpandPath( "/src" )#"
name= "qFiles"
filter= "*.java"
recurse= "true" />
<cfset sOutput= "" />
<cfloop query= "qFiles">
<cfset sOutput&= directory & "/" & name & chr( 10 ) />
</cfloop>
<cfoutput>#sOutput#</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment