diff --git a/download-latest-java-tomcat.cfm b/download-latest-java-tomcat.cfm index 4106007..95c82ad 100644 --- a/download-latest-java-tomcat.cfm +++ b/download-latest-java-tomcat.cfm @@ -45,11 +45,11 @@ if ( directoryExists( tmpDest ) ) directoryDelete( tmpDest ); directoryCreate( tmpdest ); - logger(" extracting [#arguments.src# ] into [#arguments.dest#]" ); + logger(" extracting [#arguments.src# ] into [#tmpDest#]" ); extract( arguments.format, arguments.src, tmpDest ); if ( arguments.format != "zip" ){ - applyPermissions(arguments.src, tmpDest); + applyPermissions( arguments.src, tmpDest ); } var files = directoryList(tmpDest, true); @@ -67,7 +67,13 @@ var files = directoryList( path="tgz://" & src, recurse=true, listinfo="query"); var dir =""; var file = ""; - systemOutput( files.columnlist, true ); + + systemOutput( dest, true ); + var destFiles = directoryList( path=dest, recurse=false, listinfo="query"); + for ( var d in destFiles ) { + systemOutput( d, true ); + } + loop query="files"{ dir = mid(files.directory, find( "!", files.directory) + 2 ); systemOutput( "#dir# #files.name# #files.size# #files.type# #files.mode#", true );