diff --git a/download-latest-java-tomcat.cfm b/download-latest-java-tomcat.cfm index 2ae8897..dcce7d1 100644 --- a/download-latest-java-tomcat.cfm +++ b/download-latest-java-tomcat.cfm @@ -48,6 +48,10 @@ logger(" extracting [#arguments.src# ] into [#arguments.dest#]" ); extract( arguments.format, arguments.src, tmpDest ); + if ( arguments.format != "zip" ){ + applyPermissions(arguments.src, tmpDest); + } + var files = directoryList(tmpDest, true); if ( directoryExists( arguments.dest ) ) @@ -58,6 +62,13 @@ directoryDelete( tmpDest, true ); } + function applyPermissions( src, dest ){ + var files = directoryList( path="tgz://" & src, recurse=true, listinfo="query"); + systemOutput( files, true ); + throw "stop!"; + } + + function getTomcatVersion( required string version ){ var tomcat_metadata = "https://repo1.maven.org/maven2/org/apache/tomcat/embed/tomcat-embed-core/maven-metadata.xml"