Excluding unexistent package from API: '-excludesig java.net' - doesnt work.
Consider this sample:
--------------------------------------------------------------------------
java -cp binaries/lib/sigtestdev.jar:binaries/lib/exclude.jar com.sun.tdk.signaturetest.Setup -classpath /java/re/jdk/1.5.0/archive/fcs/binaries/solaris-i586/jre/lib/rt.jar -static -filename java.sig -package java.lang -package java.util
---------------------------------------------------------------------------
java -cp binaries/lib/sigtestdev.jar:binaries/lib/exclude.jar -Dexclude.plugin=com.sun.tdk.exclude.ExcludeList com.sun.tdk.signaturetest.SignatureTest -classpath /java/re/jdk/1.5.0/archive/fcs/binaries/solaris-i586/jre/lib/rt.jar -static -filename java.sig -package java.net -excludesig java.net
SignatureTest report
Tested version:
Check mode: src [throws normalized]
Constant checking: on
Added Classes
-------------
java.net.Authenticator
java.net.Authenticator$RequestorType
java.net.BindException
java.net.CacheRequest
java.net.CacheResponse
java.net.ConnectException
java.net.ContentHandler
java.net.ContentHandlerFactory
java.net.CookieHandler
java.net.DatagramPacket
java.net.DatagramSocket
java.net.DatagramSocketImpl
java.net.DatagramSocketImplFactory
java.net.FileNameMap
java.net.HttpRetryException
java.net.HttpURLConnection
java.net.Inet4Address
java.net.Inet6Address
java.net.InetAddress
java.net.InetSocketAddress
java.net.JarURLConnection
java.net.MalformedURLException
java.net.MulticastSocket
java.net.NetPermission
java.net.NetworkInterface
java.net.NoRouteToHostException
java.net.PasswordAuthentication
java.net.PortUnreachableException
java.net.ProtocolException
java.net.Proxy
java.net.Proxy$Type
java.net.ProxySelector
java.net.ResponseCache
java.net.SecureCacheResponse
java.net.ServerSocket
java.net.Socket
java.net.SocketAddress
java.net.SocketException
java.net.SocketImpl
java.net.SocketImplFactory
java.net.SocketOptions
java.net.SocketPermission
java.net.SocketTimeoutException
java.net.URI
java.net.URISyntaxException
java.net.URL
java.net.URLClassLoader
java.net.URLConnection
java.net.URLDecoder
java.net.URLEncoder
java.net.URLStreamHandler
java.net.URLStreamHandlerFactory
java.net.UnknownHostException
java.net.UnknownServiceException
STATUS:Failed.54 errors
-------------------------------------------------------------------------
Conclusion: it seems -excludesig option of exclude.plugin must have greater priority as -package option.
Consider this sample:
--------------------------------------------------------------------------
java -cp binaries/lib/sigtestdev.jar:binaries/lib/exclude.jar com.sun.tdk.signaturetest.Setup -classpath /java/re/jdk/1.5.0/archive/fcs/binaries/solaris-i586/jre/lib/rt.jar -static -filename java.sig -package java.lang -package java.util
---------------------------------------------------------------------------
java -cp binaries/lib/sigtestdev.jar:binaries/lib/exclude.jar -Dexclude.plugin=com.sun.tdk.exclude.ExcludeList com.sun.tdk.signaturetest.SignatureTest -classpath /java/re/jdk/1.5.0/archive/fcs/binaries/solaris-i586/jre/lib/rt.jar -static -filename java.sig -package java.net -excludesig java.net
SignatureTest report
Tested version:
Check mode: src [throws normalized]
Constant checking: on
Added Classes
-------------
java.net.Authenticator
java.net.Authenticator$RequestorType
java.net.BindException
java.net.CacheRequest
java.net.CacheResponse
java.net.ConnectException
java.net.ContentHandler
java.net.ContentHandlerFactory
java.net.CookieHandler
java.net.DatagramPacket
java.net.DatagramSocket
java.net.DatagramSocketImpl
java.net.DatagramSocketImplFactory
java.net.FileNameMap
java.net.HttpRetryException
java.net.HttpURLConnection
java.net.Inet4Address
java.net.Inet6Address
java.net.InetAddress
java.net.InetSocketAddress
java.net.JarURLConnection
java.net.MalformedURLException
java.net.MulticastSocket
java.net.NetPermission
java.net.NetworkInterface
java.net.NoRouteToHostException
java.net.PasswordAuthentication
java.net.PortUnreachableException
java.net.ProtocolException
java.net.Proxy
java.net.Proxy$Type
java.net.ProxySelector
java.net.ResponseCache
java.net.SecureCacheResponse
java.net.ServerSocket
java.net.Socket
java.net.SocketAddress
java.net.SocketException
java.net.SocketImpl
java.net.SocketImplFactory
java.net.SocketOptions
java.net.SocketPermission
java.net.SocketTimeoutException
java.net.URI
java.net.URISyntaxException
java.net.URL
java.net.URLClassLoader
java.net.URLConnection
java.net.URLDecoder
java.net.URLEncoder
java.net.URLStreamHandler
java.net.URLStreamHandlerFactory
java.net.UnknownHostException
java.net.UnknownServiceException
STATUS:Failed.54 errors
-------------------------------------------------------------------------
Conclusion: it seems -excludesig option of exclude.plugin must have greater priority as -package option.