Skip to content

Commit

Permalink
Update testBuildArtifacts.cfc
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jul 24, 2024
1 parent 6dace9a commit 4398947
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/testBuildArtifacts.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="data-provider-inte
}

private function dumpWarContents( zip, recurse=true ){
systemoutput( "dumpWarContents [#zip#] ", true );
var warDir = getTempDirectory() & "/build-war-#createUUID()#/";
if ( DirectoryExists( warDir ) )
directoryDelete( warDir, true );
Expand All @@ -85,13 +84,12 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="data-provider-inte
if ( arguments.recurse ) {
var wars = directoryList( path=warDir, recurse=true, listinfo="query", filter="*.war" );
for (var war in wars ){
systemOutput( war, true );
if ( listLast( war.name, ".") eq "war" ){
dumpWarContents( zip=(war.directory & "/" & war.name), recurse=false );
}
}
} else {
var warContents = directoryList( path=warDir, recurse=true, listinfo="query", filter="*.war" );
var warContents = directoryList( path=warDir, recurse=true, listinfo="query" );
for ( var f in warContents ){
systemOutput( "#chr(9)##chr(9)##f.name#, #numberFormat( f.size )#", true );
}
Expand Down

0 comments on commit 4398947

Please sign in to comment.