Open jar file with verify off to improve performance

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@911061 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/common/core/src/org/apache/felix/sigil/core/repository/DirectoryHelper.java b/sigil/common/core/src/org/apache/felix/sigil/core/repository/DirectoryHelper.java
index d618ea2..047c774 100644
--- a/sigil/common/core/src/org/apache/felix/sigil/core/repository/DirectoryHelper.java
+++ b/sigil/common/core/src/org/apache/felix/sigil/core/repository/DirectoryHelper.java
@@ -59,7 +59,7 @@
                     JarFile jar = null;
                     try
                     {
-                        jar = new JarFile( f );
+                        jar = new JarFile( f, false );
                         ISigilBundle bundle = buildBundle( repository, jar.getManifest(), f );
                         if ( bundle != null )
                         {
diff --git a/sigil/ivy/resolver/src/org/apache/felix/sigil/ant/BundleInfoTask.java b/sigil/ivy/resolver/src/org/apache/felix/sigil/ant/BundleInfoTask.java
index 20791d2..9b53cee 100644
--- a/sigil/ivy/resolver/src/org/apache/felix/sigil/ant/BundleInfoTask.java
+++ b/sigil/ivy/resolver/src/org/apache/felix/sigil/ant/BundleInfoTask.java
@@ -45,9 +45,11 @@
         if ( header == null )
             throw new BuildException( "missing attribute: header" );
 
+        JarFile jar = null;
+        
         try
         {
-            JarFile jar = new JarFile( bundle );
+            jar = new JarFile( bundle, false );
             Manifest mf = jar.getManifest();
             String value = mf.getMainAttributes().getValue( header );
             if ( property == null )
@@ -77,6 +79,19 @@
         {
             throw new BuildException( "Failed to access bundle", e );
         }
+        finally {
+            if ( jar != null ) {
+                try
+                {
+                    jar.close();
+                }
+                catch (IOException e)
+                {
+                    // TODO Auto-generated catch block
+                    e.printStackTrace();
+                }
+            }
+        }
     }