Enable tools/retrace.py on windows

The module resource is not accessible on windows.

Bug: 148472880
Change-Id: I11167a0a16a38d1c3e7f719e8d4114f0b974b870
diff --git a/tools/archive.py b/tools/archive.py
index 8a9cf8c..3eb0200 100755
--- a/tools/archive.py
+++ b/tools/archive.py
@@ -8,6 +8,11 @@
 import jdk
 import optparse
 import os
+try:
+  import resource
+except ImportError:
+  # Not a Unix system. Do what Gandalf tells you not to.
+  pass
 import resource
 import shutil
 import subprocess
@@ -118,9 +123,10 @@
     raise Exception(options.dry_run_output
         + ' does not exist or is not a directory')
 
-  if utils.is_bot():
+  if utils.is_bot() and not utils.IsWindows():
     SetRLimitToMax()
-  PrintResourceInfo()
+  if not utils.IsWindows():
+    PrintResourceInfo()
 
   # Create maven release which uses a build that exclude dependencies.
   create_maven_release.generate_r8_maven_zip(utils.MAVEN_ZIP)