ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30093] New: - "available" task broken when getting resource from jar
Date Wed, 14 Jul 2004 06:59:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30093>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30093

"available" task broken when getting resource from jar

           Summary: "available" task broken when getting resource from jar
           Product: Ant
           Version: 1.6.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: hauser@acm.org


my build.xml should check whether the unrestricte policy is installed in java with
	  <property name="local_policy.jar" 
	      location="${env.JAVA_HOME}/jre/lib/security/local_policy.jar"/>
	  <echo>local_policy.jar is ${local_policy.jar} </echo>
	  <available file="${local_policy.jar}" property="local_policy.jar.present"/>
	  <echo>local_policy.jar.present is ${local_policy.jar.present} </echo>
      <available property="have.unrestr.policy" resource="JCE_DSA.DSA">
        <classpath>
          <pathelement location="${local_policy.jar}" />
        </classpath>
      </available>
	  <echo>have.unrestr.policy is ${have.unrestr.policy} </echo>

I get the following debug output:
Setting project property: local_policy.jar -> C:\j2sdk1.4.2_02\jre\lib\security\
local_policy.jar
     [echo] local_policy.jar is C:\j2sdk1.4.2_02\jre\lib\security\local_policy.j
ar
[available] Found: C:\j2sdk1.4.2_02\jre\lib\security\local_policy.jar
Setting project property: local_policy.jar.present -> true
     [echo] local_policy.jar.present is true
Couldn't load ResourceStream for JCE_DSA.DSA
[available] Unable to load resource JCE_DSA.DSA to set property have.unrestr.pol
icy
Property ${have.unrestr.policy} has not been set
     [echo] have.unrestr.policy is ${have.unrestr.policy}
Property ${have.unrestr.policy} has not been set
Property ${JAVA_HOME} has not been set
     [echo] Sun "Unlimited Strength" Jurisdiction Policy Files
     [echo]      missing (${JAVA_HOME}/jre/lib/security/local_policy.jar)!

but the file is in there!

C:\>C:\j2sdk1.4.2_02\bin\jar -tvf C:\j2sdk1.4.2_02\jre\lib\security\local_policy.jar
   169 Mon Jun 16 15:36:32 CEST 2003 META-INF/MANIFEST.MF
   194 Mon Jun 16 15:36:42 CEST 2003 META-INF/JCE_DSA.SF
  2207 Mon Jun 16 15:36:42 CEST 2003 META-INF/JCE_DSA.DSA
   194 Mon Jun 16 15:36:32 CEST 2003 META-INF/JCE_RSA.SF
  2022 Mon Jun 16 15:36:32 CEST 2003 META-INF/JCE_RSA.RSA
     0 Mon Jun 16 15:36:30 CEST 2003 META-INF/
   192 Mon Jun 16 15:36:28 CEST 2003 default_local.policy

the jar can be found in
http://java.sun.com/products/jce/index-14.html#UnlimitedDownload

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message