diff --git a/jdk/test/sun/tools/jcmd/jcmd_Output1.awk b/jdk/test/sun/tools/jcmd/jcmd_Output1.awk index 986951dc178..5bf0403fa2d 100644 --- a/jdk/test/sun/tools/jcmd/jcmd_Output1.awk +++ b/jdk/test/sun/tools/jcmd/jcmd_Output1.awk @@ -8,10 +8,10 @@ BEGIN { current=1; } -# or match on a path name to a jar file followed by arbitraty arguments +# or match on a path name to a jar or war file followed by arbitraty arguments # - note, jar files ending with ".jar" is only a convention, not a requirement. #Theoretically, any valid file name could occur here. -/^[0-9]+ .*\.jar($| .*$)/ { +/^[0-9]+ .*\.(jar|war)($| .*$)/ { current=1; } diff --git a/jdk/test/sun/tools/jps/jps-l_Output1.awk b/jdk/test/sun/tools/jps/jps-l_Output1.awk index 5280197ed6b..08a48c17659 100644 --- a/jdk/test/sun/tools/jps/jps-l_Output1.awk +++ b/jdk/test/sun/tools/jps/jps-l_Output1.awk @@ -8,10 +8,10 @@ BEGIN { matched++; } -# or match on a jar file name - note, jar files ending with +# or match on a jar or war file name - note, jar files ending with # ".jar" is only a convention , not a requirement. Theoretically, # any valid file name could occur here. -/^[0-9]+ .*\.jar$/ { +/^[0-9]+ .*\.(jar|war)$/ { matched++; } diff --git a/jdk/test/sun/tools/jps/jps_Output1.awk b/jdk/test/sun/tools/jps/jps_Output1.awk index 1781bc560e3..c64b0f104f5 100644 --- a/jdk/test/sun/tools/jps/jps_Output1.awk +++ b/jdk/test/sun/tools/jps/jps_Output1.awk @@ -8,10 +8,10 @@ BEGIN { matched++; } -# or match on a path name to a jar file - note, jar files ending with +# or match on a path name to a jar or war file - note, jar files ending with # ".jar" is only a convention, not a requirement. Theoretically, # any valid file name could occur here. -/^[0-9]+ .*\.jar$/ { +/^[0-9]+ .*\.(jar|war)$/ { matched++; }