You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by dj...@apache.org on 2005/07/21 16:45:28 UTC
svn commit: r220099 - /incubator/derby/code/branches/10.1/build.xml
Author: djd
Date: Thu Jul 21 07:45:27 2005
New Revision: 220099
URL: http://svn.apache.org/viewcvs?rev=220099&view=rev
Log:
DERBY-467 Seal packages in jar files to disallow application access to package protected methods.
Merge of 220017 from trunk.
Modified:
incubator/derby/code/branches/10.1/build.xml
Modified: incubator/derby/code/branches/10.1/build.xml
URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.1/build.xml?rev=220099&r1=220098&r2=220099&view=diff
==============================================================================
--- incubator/derby/code/branches/10.1/build.xml (original)
+++ incubator/derby/code/branches/10.1/build.xml Thu Jul 21 07:45:27 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/**