db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r220017 - /incubator/derby/code/trunk/build.xml
Date Thu, 21 Jul 2005 07:20:52 GMT
Author: djd
Date: Thu Jul 21 00:20:51 2005
New Revision: 220017

URL: http://svn.apache.org/viewcvs?rev=220017&view=rev
Log:
DERBY-467 Seal most (as many as possible) packages in the derby jar files to
disallow application extending package protected classes or methods and 
thus deny direct calling of internal code.

Modified:
    incubator/derby/code/trunk/build.xml

Modified: incubator/derby/code/trunk/build.xml
URL: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/build.xml?rev=220017&r1=220016&r2=220017&view=diff
==============================================================================
--- incubator/derby/code/trunk/build.xml (original)
+++ incubator/derby/code/trunk/build.xml Thu Jul 21 00:20:51 2005
@@ -787,6 +787,38 @@
       <attribute name="Bundle-Vendor" value="Apache Software Foundation"/>
       <attribute name="Bundle-Name" value="Apache Derby ${major}.${minor}"/>
       <attribute name="Bundle-Version" value="${major}.${minor}.${maint}.${changenumber}"/>
+
+      	<attribute name="Sealed" value="true"/>
+    	<section name="org/apache/derby/impl/tools/sysinfo/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/iapi/services/info/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/jdbc/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/info/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/iapi/error/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/iapi/services/i18n/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    		<section name="org/apache/derby/impl/jdbc/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    		<section name="org/apache/derby/iapi/tools/i18n/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/loc/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+      	<section name="org/apache/derby/tools/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
     </manifest> 
 
     <jar destfile="${derby.jar.dir}/derby.jar"
@@ -807,6 +839,37 @@
       <attribute name="Bundle-Version" value="${major}.${minor}.${maint}.${changenumber}"/>
       <attribute name="DynamicImport-Package" value="*"/>
       <attribute name="Export-Package" value="org.apache.derby.authentication,org.apache.derby.database,org.apache.derby.io,org.apache.derby.jdbc,org.apache.derby.vti"/>

+      	<attribute name="Sealed" value="true"/>
+    	<section name="org/apache/derby/impl/tools/sysinfo/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/iapi/services/info/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/jdbc/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/info/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/iapi/error/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/iapi/services/i18n/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    		<section name="org/apache/derby/impl/jdbc/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    		<section name="org/apache/derby/iapi/tools/i18n/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/loc/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+      	<section name="org/apache/derby/tools">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
     </manifest> 
 
     <jar destfile="${derby.jar.dir}/derby.jar"
@@ -906,6 +969,13 @@
     <manifest file="${derby.jar.dir}/lists/smfnet.mf">
       <attribute name="Main-Class" value="org.apache.derby.drda.NetworkServerControl"/>
       <attribute name="Class-Path" value="derby.jar"/>
+      	<attribute name="Sealed" value="true"/>
+    	<section name="org/apache/derby/impl/drda/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    	<section name="org/apache/derby/impl/tools/sysinfo/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
     </manifest> 
 
     <delete file="${derby.jar.dir}/derbynet.jar"/>
@@ -951,13 +1021,21 @@
     <copy todir="${derby.jar.dir}/lists/META-INF">
       <fileset dir="${basedir}" includes="LICENSE*,NOTICE*,COPYRIGHT*"/>
     </copy>
-   
+ 	
+    <manifest file="${derby.jar.dir}/lists/smfclient.mf">
+      	<attribute name="Sealed" value="true"/>
+    	<section name="org/apache/derby/jdbc/">
+    	  <attribute name="Sealed" value="false"/>
+    	</section>
+    </manifest> 
+ 	
     <delete file="${derby.jar.dir}/derbyclient.jar"/>
 
     <jar destfile="${derby.jar.dir}/derbyclient.jar"
          compress="true"
          filesonly="true"
-         update="true">
+         update="true"
+    	 manifest="${derby.jar.dir}/lists/smfclient.mf">
       <fileset dir="${out.dir}"
                includes="org/apache/derby/client/**,
 			org/apache/derby/client/jdbc/Client**,org/apache/derby/jdbc/Client**,org/apache/derby/iapi/services/info/**



Mime
View raw message