package init
This commit is contained in:
parent
192f422f48
commit
114fcb7ea1
61
CatalogManager.properties
Normal file
61
CatalogManager.properties
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
########################################################################
|
||||||
|
# CatalogManager provides an interface to the catalog properties.
|
||||||
|
# Properties can come from two places: from system properties or
|
||||||
|
# from a CatalogManager.properties file. This class provides a
|
||||||
|
# transparent interface to both, with system properties preferred
|
||||||
|
# over property file values.
|
||||||
|
|
||||||
|
#######################################################################
|
||||||
|
# Catalog Files:
|
||||||
|
# The semicolon-delimited list of catalog files.
|
||||||
|
# Example: catalogs=./xcatalog;/share/doctypes/catalog
|
||||||
|
|
||||||
|
catalogs=/etc/xml/catalog;/etc/sgml/catalog
|
||||||
|
|
||||||
|
#######################################################################
|
||||||
|
# Relative Catalogs:
|
||||||
|
# If false, relative catalog URIs are made absolute with respect to the
|
||||||
|
# base URI of the CatalogManager.properties file. This setting only
|
||||||
|
# applies to catalog URIs obtained from the catalogs property in the
|
||||||
|
# CatalogManager.properties file
|
||||||
|
# Example: relative-catalogs = [yes|no]
|
||||||
|
|
||||||
|
relative-catalogs=yes
|
||||||
|
|
||||||
|
#######################################################################
|
||||||
|
# Verbosity:
|
||||||
|
# If non-zero, the Catalog classes will print informative and debugging
|
||||||
|
# messages. The higher the number, the more messages.
|
||||||
|
# Example: verbosity = [0..99]
|
||||||
|
|
||||||
|
verbosity=0
|
||||||
|
|
||||||
|
#######################################################################
|
||||||
|
# Prefer:
|
||||||
|
# Which identifier is preferred, "public" or "system"?
|
||||||
|
# Example: xml.catalog.prefer = [public|system]
|
||||||
|
|
||||||
|
prefer=system
|
||||||
|
|
||||||
|
#######################################################################
|
||||||
|
# Static-catalog:
|
||||||
|
# Should a single catalog be constructed for all parsing, or should a
|
||||||
|
# different catalog be created for each parser?
|
||||||
|
# Example: static-catalog = [yes|no]
|
||||||
|
|
||||||
|
static-catalog=yes
|
||||||
|
|
||||||
|
#######################################################################
|
||||||
|
# Allow-oasis-xml-catalog-pi
|
||||||
|
# If the source document contains "oasis-xml-catalog" processing
|
||||||
|
# instructions, should they be used?
|
||||||
|
# Example: allow-oasis-xml-catalog-pi = [yes|no]
|
||||||
|
|
||||||
|
allow-oasis-xml-catalog-pi=yes
|
||||||
|
|
||||||
|
#######################################################################
|
||||||
|
# catalog-class-name
|
||||||
|
# If you're using the convenience classes
|
||||||
|
# org.apache.xml.resolver.tools.*, this setting allows you to specify
|
||||||
|
# an alternate class name to use for the underlying catalog.
|
||||||
|
# Example: catalog-class-name=org.apache.xml.resolver.Resolver
|
||||||
BIN
mx4j-3.0.1-src.tar.gz
Normal file
BIN
mx4j-3.0.1-src.tar.gz
Normal file
Binary file not shown.
57
mx4j-3.0.1.patch
Normal file
57
mx4j-3.0.1.patch
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
*** src/core/mx4j/remote/resolver/iiop/Resolver.java.orig 2005-05-12 12:13:28.000000000 -0400
|
||||||
|
--- src/core/mx4j/remote/resolver/iiop/Resolver.java 2005-05-13 14:38:21.000000000 -0400
|
||||||
|
***************
|
||||||
|
*** 33,36 ****
|
||||||
|
--- 33,37 ----
|
||||||
|
|
||||||
|
private ORB orb;
|
||||||
|
+ private static final String ORB_KEY = "java.naming.corba.orb";
|
||||||
|
|
||||||
|
|
||||||
|
***************
|
||||||
|
*** 111,127 ****
|
||||||
|
if (orb == null)
|
||||||
|
{
|
||||||
|
! Properties props = new Properties();
|
||||||
|
! // Using putAll() on a Properties is discouraged, since it expects only Strings
|
||||||
|
! for (Iterator i = environment.entrySet().iterator(); i.hasNext();)
|
||||||
|
! {
|
||||||
|
! Map.Entry entry = (Map.Entry)i.next();
|
||||||
|
! Object key = entry.getKey();
|
||||||
|
! Object value = entry.getValue();
|
||||||
|
! if (key instanceof String && value instanceof String)
|
||||||
|
! {
|
||||||
|
! props.setProperty((String)key, (String)value);
|
||||||
|
! }
|
||||||
|
! }
|
||||||
|
! orb = ORB.init((String[])null, props);
|
||||||
|
}
|
||||||
|
return orb;
|
||||||
|
--- 112,138 ----
|
||||||
|
if (orb == null)
|
||||||
|
{
|
||||||
|
! Object candidateORB = environment.get(ORB_KEY);
|
||||||
|
! if (candidateORB != null)
|
||||||
|
! {
|
||||||
|
! // Throw as required by the spec
|
||||||
|
! if (!(candidateORB instanceof ORB)) throw new IllegalArgumentException("Property " + ORB_KEY + " must specify a " + ORB.class.getName() + ", not " + candidateORB.getClass().getName());
|
||||||
|
! orb = (ORB)candidateORB;
|
||||||
|
! }
|
||||||
|
! else
|
||||||
|
! {
|
||||||
|
! Properties props = new Properties();
|
||||||
|
! // Using putAll() on a Properties is discouraged, since it expects only Strings
|
||||||
|
! for (Iterator i = environment.entrySet().iterator(); i.hasNext();)
|
||||||
|
! {
|
||||||
|
! Map.Entry entry = (Map.Entry)i.next();
|
||||||
|
! Object key = entry.getKey();
|
||||||
|
! Object value = entry.getValue();
|
||||||
|
! if (key instanceof String && value instanceof String)
|
||||||
|
! {
|
||||||
|
! props.setProperty((String)key, (String)value);
|
||||||
|
! }
|
||||||
|
! }
|
||||||
|
! orb = ORB.init((String[])null, props);
|
||||||
|
! }
|
||||||
|
}
|
||||||
|
return orb;
|
||||||
6
mx4j-3.0.1.pom
Normal file
6
mx4j-3.0.1.pom
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>mx4j</groupId>
|
||||||
|
<artifactId>mx4j</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
</project>
|
||||||
127
mx4j-build.patch
Normal file
127
mx4j-build.patch
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
--- ./build/build.xml.sav 2005-03-01 05:14:37.000000000 -0500
|
||||||
|
+++ ./build/build.xml 2006-08-24 16:07:11.000000000 -0400
|
||||||
|
@@ -55,6 +55,9 @@
|
||||||
|
<property name="rjmx.jar.file" value="${dist.lib.dir}/${name}-rjmx.jar"/>
|
||||||
|
<property name="rimpl.jar.file" value="${dist.lib.dir}/${name}-rimpl.jar"/>
|
||||||
|
<property name="rmx4j.jar.file" value="${dist.lib.dir}/${name}-remote.jar"/>
|
||||||
|
+ <property name="rjmx-boa.jar.file" value="${dist.lib.dir}/boa/${name}-rjmx-boa.jar"/>
|
||||||
|
+ <property name="rimpl-boa.jar.file" value="${dist.lib.dir}/boa/${name}-rimpl-boa.jar"/>
|
||||||
|
+ <property name="rmx4j-boa.jar.file" value="${dist.lib.dir}/boa/${name}-remote-boa.jar"/>
|
||||||
|
|
||||||
|
<property name="tools.jar.file" value="${dist.lib.dir}/${name}-tools.jar"/>
|
||||||
|
|
||||||
|
@@ -224,6 +227,7 @@
|
||||||
|
<target name="compile.jmx" description="Compiles the JMX (JSR 3) classes" depends="flags">
|
||||||
|
<mkdir dir="${core.classes.dir}"/>
|
||||||
|
<mkdir dir="${dist.lib.dir}"/>
|
||||||
|
+ <mkdir dir="${dist.lib.dir}/boa"/>
|
||||||
|
|
||||||
|
<javac srcdir="${core.src.dir}" destdir="${core.classes.dir}" debug="on" deprecation="on" encoding="US-ASCII">
|
||||||
|
<patternset refid="mx4j.classes"/>
|
||||||
|
@@ -270,8 +274,29 @@
|
||||||
|
</javac>
|
||||||
|
<rmic base="${core.classes.dir}" classname="javax.management.remote.rmi.RMIServerImpl" classpathref="classpath" debug="yes" stubversion="1.2"/>
|
||||||
|
<rmic base="${core.classes.dir}" classname="javax.management.remote.rmi.RMIConnectionImpl" classpathref="classpath" debug="yes" stubversion="1.2"/>
|
||||||
|
+
|
||||||
|
+ <jar jarfile="${rjmx-boa.jar.file}" manifest="${etc.dir}/MANIFEST.MF">
|
||||||
|
+ <fileset dir="${core.classes.dir}">
|
||||||
|
+ <patternset refid="rjmx.classes"/>
|
||||||
|
+ </fileset>
|
||||||
|
+ </jar>
|
||||||
|
+
|
||||||
|
+ <jar jarfile="${rimpl-boa.jar.file}" manifest="${etc.dir}/MANIFEST.MF">
|
||||||
|
+ <fileset dir="${core.classes.dir}">
|
||||||
|
+ <patternset refid="rimpl.classes"/>
|
||||||
|
+ </fileset>
|
||||||
|
+ </jar>
|
||||||
|
+
|
||||||
|
+ <jar jarfile="${rmx4j-boa.jar.file}" manifest="${etc.dir}/MANIFEST.MF">
|
||||||
|
+ <fileset dir="${core.classes.dir}">
|
||||||
|
+ <patternset refid="rmx4j.classes"/>
|
||||||
|
+ </fileset>
|
||||||
|
+ </jar>
|
||||||
|
+
|
||||||
|
<antcall target="rmic.iiop"/>
|
||||||
|
+<!--
|
||||||
|
<antcall target="rmic.iiop.poa"/>
|
||||||
|
+-->
|
||||||
|
|
||||||
|
<jar jarfile="${rjmx.jar.file}" manifest="${etc.dir}/MANIFEST.MF">
|
||||||
|
<fileset dir="${core.classes.dir}">
|
||||||
|
@@ -423,8 +448,7 @@
|
||||||
|
author="true"
|
||||||
|
version="true"
|
||||||
|
use="true"
|
||||||
|
- windowtitle="MX4J API"
|
||||||
|
- classpathref="classpath">
|
||||||
|
+ windowtitle="MX4J API">
|
||||||
|
<package name="mx4j.*"/>
|
||||||
|
|
||||||
|
<bottom><![CDATA[<center><small>Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.</small></center>]]></bottom>
|
||||||
|
@@ -437,8 +461,6 @@
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="docs" description="Builds the MX4J documentation">
|
||||||
|
- <unzip src="${docbook.dtd.zip.file}" dest="${docs.src.dir}/docbook"/>
|
||||||
|
- <unzip src="${docbook.xsl.zip.file}" dest="${docs.src.dir}/docbookx"/>
|
||||||
|
<mkdir dir="${dist.docs.dir}"/>
|
||||||
|
|
||||||
|
<style processor="trax"
|
||||||
|
@@ -447,11 +469,13 @@
|
||||||
|
force="yes"
|
||||||
|
style="${docs.src.dir}/xsl/mx4j-chunk.xsl"
|
||||||
|
includes="${root.document.name}"
|
||||||
|
- classpathref="lib.classpath"
|
||||||
|
- />
|
||||||
|
-
|
||||||
|
- <delete dir="${docs.src.dir}/docbook" quiet="true"/>
|
||||||
|
- <delete dir="${docs.src.dir}/docbookx" quiet="true"/>
|
||||||
|
+ classpathref="lib.classpath">
|
||||||
|
+ <xmlcatalog>
|
||||||
|
+ <catalogpath>
|
||||||
|
+ <pathelement location="/etc/xml/catalog"/>
|
||||||
|
+ </catalogpath>
|
||||||
|
+ </xmlcatalog>
|
||||||
|
+ </style>
|
||||||
|
|
||||||
|
<!-- Bug in Ant forces this move, since destdir of the style task does not work -->
|
||||||
|
<move todir="${dist.docs.dir}">
|
||||||
|
@@ -583,7 +607,8 @@
|
||||||
|
<include name="wsdl4j.jar"/>
|
||||||
|
<include name="commons-discovery.jar"/>
|
||||||
|
<include name="org.mortbay.jetty.jar"/>
|
||||||
|
- <include name="hessian-3.0.8.jar"/>
|
||||||
|
+ <include name="hessian3.jar"/>
|
||||||
|
+ <include name="burlap3.jar"/>
|
||||||
|
<!-- Also jars downloaded apart -->
|
||||||
|
<include name="servlet.jar"/>
|
||||||
|
<include name="jython.jar"/>
|
||||||
|
@@ -612,7 +637,9 @@
|
||||||
|
|
||||||
|
<target name="single-test" description="Executes the test class defined by the system property 'testname'" depends="tests">
|
||||||
|
<junit printsummary="withOutAndErr" fork="yes" dir="${basedir}" showoutput="yes">
|
||||||
|
- <!--sysproperty key="mx4j.log.priority" value="debug"/-->
|
||||||
|
+ <sysproperty key="mx4j.log.priority" value="debug"/>
|
||||||
|
+ <sysproperty key="java.security.manager" value=""/>
|
||||||
|
+ <sysproperty key="java.security.policy" value="${basedir}/build/mx4j-build.policy"/>
|
||||||
|
<!--sysproperty key="java.security.debug" value="access.failure"/-->
|
||||||
|
<formatter type="plain" usefile="no"/>
|
||||||
|
<test name="${testname}" if="testname" fork="yes"/>
|
||||||
|
@@ -639,6 +666,8 @@
|
||||||
|
|
||||||
|
<junit printsummary="withOutAndErr" fork="yes" timeout="300000" dir="${basedir}" showoutput="yes">
|
||||||
|
<sysproperty key="mx4j.log.priority" value="warn"/>
|
||||||
|
+ <sysproperty key="java.security.manager" value=""/>
|
||||||
|
+ <sysproperty key="java.security.policy" value="${basedir}/build/mx4j-build.policy"/>
|
||||||
|
<!-- sysproperty key="java.security.debug" value="access.failure"/-->
|
||||||
|
<formatter type="xml"/>
|
||||||
|
<batchtest fork="yes" todir="${test.xml.dir}">
|
||||||
|
@@ -687,6 +716,8 @@
|
||||||
|
|
||||||
|
<junit printsummary="withOutAndErr" fork="yes" timeout="300000" dir="${basedir}" showoutput="yes">
|
||||||
|
<sysproperty key="mx4j.log.priority" value="warn"/>
|
||||||
|
+ <sysproperty key="java.security.manager" value=""/>
|
||||||
|
+ <sysproperty key="java.security.policy" value="${basedir}/build/mx4j-build.policy"/>
|
||||||
|
<!-- sysproperty key="java.security.debug" value="access.failure"/-->
|
||||||
|
<formatter type="xml"/>
|
||||||
|
<batchtest fork="yes" todir="${test.xml.dir}">
|
||||||
15
mx4j-build.policy
Normal file
15
mx4j-build.policy
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
grant codeBase "file:/-" {
|
||||||
|
permission java.security.AllPermission;
|
||||||
|
};
|
||||||
|
grant {
|
||||||
|
permission java.util.PropertyPermission "*", "read";
|
||||||
|
permission java.io.FilePermission "/-", "read,write";
|
||||||
|
permission java.net.SocketPermission "*", "accept, connect, listen, resolve";
|
||||||
|
permission java.net.SocketPermission "127.0.0.1", "accept, connect, listen, resolve";
|
||||||
|
permission java.lang.RuntimePermission "createSecurityManager";
|
||||||
|
permission java.lang.RuntimePermission "setSecurityManager";
|
||||||
|
permission javax.management.MBeanPermission "*", "*";
|
||||||
|
permission javax.management.remote.SubjectDelegationPermission "*";
|
||||||
|
permission javax.security.auth.AuthPermission "getSubject";
|
||||||
|
};
|
||||||
|
|
||||||
15
mx4j-caucho-build.patch
Normal file
15
mx4j-caucho-build.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
--- mx4j/build/build.xml.orig Thu Dec 23 20:05:06 2004
|
||||||
|
+++ mx4j/build/build.xml Thu Dec 23 20:06:16 2004
|
||||||
|
@@ -306,9 +306,9 @@
|
||||||
|
<exclude name="mx4j/tools/remote/**" unless="jaas.present"/>
|
||||||
|
<exclude name="mx4j/tools/remote/rmi/SSL*" unless="jdk14.present"/>
|
||||||
|
<exclude name="mx4j/tools/remote/http/jetty/**" unless="jetty.present"/>
|
||||||
|
- <exclude name="mx4j/tools/remote/caucho/**" unless="jdk14.present"/>
|
||||||
|
- <exclude name="mx4j/tools/remote/**/hessian/**" unless="jdk14.present"/>
|
||||||
|
- <exclude name="mx4j/tools/remote/**/burlap/**" unless="jdk14.present"/>
|
||||||
|
+ <exclude name="mx4j/tools/remote/caucho/**"/>
|
||||||
|
+ <exclude name="mx4j/tools/remote/**/hessian/**"/>
|
||||||
|
+ <exclude name="mx4j/tools/remote/**/burlap/**"/>
|
||||||
|
<classpath>
|
||||||
|
<path refid="classpath"/>
|
||||||
|
<pathelement location="${core.classes.dir}"/>
|
||||||
20
mx4j-docbook.patch
Normal file
20
mx4j-docbook.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- mx4j/src/docs/xsl/mx4j-chunk.xsl.orig Sun Nov 14 16:33:03 2004
|
||||||
|
+++ mx4j/src/docs/xsl/mx4j-chunk.xsl Thu Dec 23 20:17:30 2004
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
|
||||||
|
|
||||||
|
- <xsl:import href="../docbookx/html/chunk.xsl"/>
|
||||||
|
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
|
||||||
|
<xsl:import href="autotoc.xsl"/>
|
||||||
|
|
||||||
|
<xsl:param name="html.stylesheet">styles.css</xsl:param>
|
||||||
|
--- mx4j/src/docs/index.xml.orig Sun Nov 14 16:31:54 2004
|
||||||
|
+++ mx4j/src/docs/index.xml Thu Dec 23 20:19:00 2004
|
||||||
|
@@ -1,5 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
|
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbook/docbookx.dtd" [
|
||||||
|
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
||||||
|
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
|
||||||
|
<!ENTITY english SYSTEM "english/index.xml">
|
||||||
|
|
||||||
|
<!ENTITY license_en SYSTEM "english/license.xml">
|
||||||
6
mx4j-impl-2.1.1.pom
Normal file
6
mx4j-impl-2.1.1.pom
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>mx4j</groupId>
|
||||||
|
<artifactId>mx4j-impl</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
|
</project>
|
||||||
24
mx4j-javaxssl.patch
Normal file
24
mx4j-javaxssl.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
--- mx4j/src/tools/mx4j/tools/adaptor/ssl/SSLAdaptorServerSocketFactory.java.orig Thu Dec 23 19:07:29 2004
|
||||||
|
+++ mx4j/src/tools/mx4j/tools/adaptor/ssl/SSLAdaptorServerSocketFactory.java Thu Dec 23 19:08:43 2004
|
||||||
|
@@ -21,9 +21,9 @@
|
||||||
|
import javax.net.ssl.SSLServerSocket;
|
||||||
|
import javax.net.ssl.SSLServerSocketFactory;
|
||||||
|
|
||||||
|
-import com.sun.net.ssl.KeyManagerFactory;
|
||||||
|
-import com.sun.net.ssl.SSLContext;
|
||||||
|
-import com.sun.net.ssl.TrustManagerFactory;
|
||||||
|
+import javax.net.ssl.KeyManagerFactory;
|
||||||
|
+import javax.net.ssl.SSLContext;
|
||||||
|
+import javax.net.ssl.TrustManagerFactory;
|
||||||
|
import mx4j.log.Log;
|
||||||
|
import mx4j.log.Logger;
|
||||||
|
|
||||||
|
@@ -60,7 +60,7 @@
|
||||||
|
{
|
||||||
|
static
|
||||||
|
{
|
||||||
|
- addProvider(new com.sun.net.ssl.internal.ssl.Provider());
|
||||||
|
+ //addProvider(new com.sun.net.ssl.internal.ssl.Provider());
|
||||||
|
}
|
||||||
|
|
||||||
|
private String m_keyStoreType = "JKS";
|
||||||
6
mx4j-jmx-3.0.1.pom
Normal file
6
mx4j-jmx-3.0.1.pom
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>mx4j</groupId>
|
||||||
|
<artifactId>mx4j-jmx</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
</project>
|
||||||
6
mx4j-jmx-remote-3.0.1.pom
Normal file
6
mx4j-jmx-remote-3.0.1.pom
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>mx4j</groupId>
|
||||||
|
<artifactId>mx4j-remote</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
</project>
|
||||||
17
mx4j-no-iiop.patch
Normal file
17
mx4j-no-iiop.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
--- mx4j-2.1.0/build/build.xml.orig 2005-03-04 13:46:19.610032808 +0000
|
||||||
|
+++ mx4j-2.1.0/build/build.xml 2005-03-04 13:50:12.555578739 +0000
|
||||||
|
@@ -254,12 +254,14 @@
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="rmic.iiop.poa" description="RMI compiles the remote JMX (JSR 160) classes using the -poa option" if="jdk14.present">
|
||||||
|
+<!--
|
||||||
|
<rmic base="${core.classes.dir}" classname="javax.management.remote.rmi.RMIServerImpl" classpathref="classpath" debug="yes" iiop="yes">
|
||||||
|
<compilerarg value="-poa"/>
|
||||||
|
</rmic>
|
||||||
|
<rmic base="${core.classes.dir}" classname="javax.management.remote.rmi.RMIConnectionImpl" classpathref="classpath" debug="yes" iiop="yes">
|
||||||
|
<compilerarg value="-poa"/>
|
||||||
|
</rmic>
|
||||||
|
+-->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="rmic.iiop" description="RMI compiles the remote JMX (JSR 160) classes" unless="jdk14.present">
|
||||||
6
mx4j-remote-3.0.1.pom
Normal file
6
mx4j-remote-3.0.1.pom
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>mx4j</groupId>
|
||||||
|
<artifactId>mx4j-remote</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
</project>
|
||||||
6
mx4j-rimpl-2.1.1.pom
Normal file
6
mx4j-rimpl-2.1.1.pom
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>mx4j</groupId>
|
||||||
|
<artifactId>mx4j-rimpl</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
|
</project>
|
||||||
6
mx4j-rjmx-2.1.1.pom
Normal file
6
mx4j-rjmx-2.1.1.pom
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>mx4j</groupId>
|
||||||
|
<artifactId>mx4j-rjmx</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
|
</project>
|
||||||
6
mx4j-tools-3.0.1.pom
Normal file
6
mx4j-tools-3.0.1.pom
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>mx4j</groupId>
|
||||||
|
<artifactId>mx4j-tools</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
</project>
|
||||||
143
mx4j.spec
Normal file
143
mx4j.spec
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
Name: mx4j
|
||||||
|
Version: 3.0.1
|
||||||
|
Release: 1
|
||||||
|
Epoch: 1
|
||||||
|
Summary: Open source implementation of JMX Java API
|
||||||
|
License: ASL 1.1
|
||||||
|
URL: http://mx4j.sourceforge.net/
|
||||||
|
Source0: https://master.dl.sourceforge.net/project/mx4j/MX4J%20Source/3.0.1/mx4j-3.0.1-src.tar.gz
|
||||||
|
Source1: mx4j-build.policy
|
||||||
|
Source2: CatalogManager.properties
|
||||||
|
Source3: https://repo1.maven.org/maven2/mx4j/mx4j/3.0.1/mx4j-3.0.1.pom
|
||||||
|
Source4: https://repo1.maven.org/maven2/mx4j/mx4j-jmx/3.0.1/mx4j-jmx-3.0.1.pom
|
||||||
|
Source5: https://repo1.maven.org/maven2/mx4j/mx4j-jmx-remote/3.0.1/mx4j-jmx-remote-3.0.1.pom
|
||||||
|
Source6: https://repo1.maven.org/maven2/mx4j/mx4j-remote/3.0.1/mx4j-remote-3.0.1.pom
|
||||||
|
Source7: https://repo1.maven.org/maven2/mx4j/mx4j-tools/3.0.1/mx4j-tools-3.0.1.pom
|
||||||
|
Source8: https://repo1.maven.org/maven2/mx4j/mx4j-impl/2.1.1/mx4j-impl-2.1.1.pom
|
||||||
|
Source9: https://repo1.maven.org/maven2/mx4j/mx4j-rimpl/2.1.1/mx4j-rimpl-2.1.1.pom
|
||||||
|
Source10: https://repo1.maven.org/maven2/mx4j/mx4j-rjmx/2.1.1/mx4j-rjmx-2.1.1.pom
|
||||||
|
Patch0: mx4j-javaxssl.patch
|
||||||
|
Patch1: mx4j-%{version}.patch
|
||||||
|
Patch2: mx4j-build.patch
|
||||||
|
Patch3: mx4j-docbook.patch
|
||||||
|
Patch5: mx4j-caucho-build.patch
|
||||||
|
Patch6: mx4j-no-iiop.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: jpackage-utils > 0:1.6 javapackages-local ant >= 0:1.6 ant-apache-resolver
|
||||||
|
BuildRequires: javamail >= 0:1.2-5jpp log4j >= 0:1.2.7 apache-commons-logging >= 0:1.0.1
|
||||||
|
BuildRequires: xml-commons-apis bcel >= 0:5.0 coreutils wsdl4j apache-commons-discovery
|
||||||
|
BuildRequires: docbook-dtds >= 0:1.0 docbook-style-xsl >= 0:1.61 xml-commons-resolver
|
||||||
|
BuildRequires: xml-commons xerces-j2 dos2unix
|
||||||
|
Requires(post): %{_sbindir}/update-alternatives
|
||||||
|
Requires(postun): %{_sbindir}/update-alternatives
|
||||||
|
Requires: javamail >= 0:1.2-5jpp log4j >= 0:1.2.7 apache-commons-logging >= 0:1.0.1
|
||||||
|
Requires: xml-commons-apis bcel >= 0:5.0 xml-commons-resolver xml-commons
|
||||||
|
%description
|
||||||
|
OpenJMX is an open source implementation of the
|
||||||
|
Java(TM) Management Extensions (JMX).
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
Requires: jpackage-utils
|
||||||
|
%description javadoc
|
||||||
|
Javadoc for %{name}.
|
||||||
|
|
||||||
|
%package manual
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
%description manual
|
||||||
|
Documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p0
|
||||||
|
%patch2 -b .sav
|
||||||
|
%patch3 -p1
|
||||||
|
%patch5 -p1
|
||||||
|
%patch6 -p1
|
||||||
|
cp %{SOURCE1} build
|
||||||
|
cp %{_sourcedir}/CatalogManager.properties %{_builddir}/%{name}-%{version}/build/
|
||||||
|
cp %{SOURCE8} %{name}-impl-%{version}.pom
|
||||||
|
cp %{SOURCE9} %{name}-rimpl-%{version}.pom
|
||||||
|
cp %{SOURCE10} %{name}-rjmx-%{version}.pom
|
||||||
|
sed -i "s|<version>2.1.1</version>|<version>%{version}</version>|" %{name}-*-%{version}.pom
|
||||||
|
pushd lib
|
||||||
|
ln -sf $(build-classpath xml-commons-apis) xml-apis.jar
|
||||||
|
ln -sf $(build-classpath xerces-j2) xercesImpl.jar
|
||||||
|
ln -sf $(build-classpath xalan-j2) xalan.jar
|
||||||
|
ln -sf $(build-classpath commons-logging) .
|
||||||
|
ln -sf $(build-classpath log4j) .
|
||||||
|
ln -sf $(build-classpath bcel) .
|
||||||
|
ln -sf $(build-classpath wsdl4j) .
|
||||||
|
ln -sf $(build-classpath commons-discovery) .
|
||||||
|
ln -sf $(build-classpath servlet25) servlet.jar
|
||||||
|
ln -sf $(build-classpath javamail/mail) .
|
||||||
|
ln -sf $(build-classpath xml-commons-resolver) .
|
||||||
|
popd
|
||||||
|
find src/tools/mx4j/tools/remote/soap -type f -delete
|
||||||
|
find src/tools/mx4j/tools/remote/provider/soap -type f -delete
|
||||||
|
find src/tools/mx4j/tools/remote/resolver/soap -type f -delete
|
||||||
|
|
||||||
|
%build
|
||||||
|
export OPT_JAR_LIST="ant/ant-junit junit xmlunit jaxp_transform_impl ant/ant-apache-resolver xml-commons-resolver xalan-j2-serializer"
|
||||||
|
cd build
|
||||||
|
ant -Dbuild.sysclasspath=first compile.jmx compile.rjmx compile.tools javadocs docs
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
|
||||||
|
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||||
|
install -m 644 dist/lib/%{name}-impl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-impl.jar
|
||||||
|
install -m 644 dist/lib/%{name}-jmx.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-jmx.jar
|
||||||
|
install -m 644 dist/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}.jar
|
||||||
|
install -m 644 dist/lib/%{name}-tools.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-tools.jar
|
||||||
|
install -m 644 dist/lib/%{name}-rjmx.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-rjmx.jar
|
||||||
|
install -m 644 dist/lib/%{name}-rimpl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-rimpl.jar
|
||||||
|
install -m 644 dist/lib/%{name}-remote.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-remote.jar
|
||||||
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}/boa
|
||||||
|
install -m 644 dist/lib/boa/%{name}-rjmx-boa.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/boa/%{name}-rjmx-boa.jar
|
||||||
|
install -m 644 dist/lib/boa/%{name}-rimpl-boa.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/boa/%{name}-rimpl-boa.jar
|
||||||
|
install -m 644 dist/lib/boa/%{name}-remote-boa.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/boa/%{name}-remote-boa.jar
|
||||||
|
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
||||||
|
install -pm 644 %{SOURCE3} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}.pom
|
||||||
|
%add_maven_depmap JPP.%{name}-%{name}.pom %{name}/%{name}.jar
|
||||||
|
install -pm 644 %{SOURCE4} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-jmx.pom
|
||||||
|
%add_maven_depmap JPP.%{name}-%{name}-jmx.pom %{name}/%{name}-jmx.jar
|
||||||
|
install -pm 644 %{SOURCE6} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-remote.pom
|
||||||
|
%add_maven_depmap JPP.%{name}-%{name}-remote.pom %{name}/%{name}-remote.jar
|
||||||
|
install -pm 644 %{SOURCE7} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-tools.pom
|
||||||
|
%add_maven_depmap JPP.%{name}-%{name}-tools.pom %{name}/%{name}-tools.jar
|
||||||
|
install -pm 644 %{name}-impl-%{version}.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-impl.pom
|
||||||
|
%add_maven_depmap JPP.%{name}-%{name}-impl.pom %{name}/%{name}-impl.jar
|
||||||
|
install -pm 644 %{name}-rimpl-%{version}.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-rimpl.pom
|
||||||
|
%add_maven_depmap JPP.%{name}-%{name}-rimpl.pom %{name}/%{name}-rimpl.jar
|
||||||
|
install -pm 644 %{name}-rjmx-%{version}.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-rjmx.pom
|
||||||
|
%add_maven_depmap JPP.%{name}-%{name}-rjmx.pom %{name}/%{name}-rjmx.jar
|
||||||
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
|
dos2unix dist/docs/styles.css README.txt LICENSE.txt
|
||||||
|
cp -r dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%pre
|
||||||
|
rm -f %{_javadir}/%{name}.jar
|
||||||
|
|
||||||
|
%post
|
||||||
|
%{_sbindir}/update-alternatives --install %{_javadir}/jmxri.jar jmxri %{_javadir}/%{name}/%{name}-jmx.jar 0
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ "$1" = "0" ]; then
|
||||||
|
%{_sbindir}/update-alternatives --remove jmxri %{_javadir}/%{name}/%{name}-jmx.jar
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%{_javadir}/%{name}/boa/
|
||||||
|
%doc LICENSE.txt
|
||||||
|
%doc README.txt
|
||||||
|
|
||||||
|
%files javadoc
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%files manual
|
||||||
|
%doc dist/docs/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jul 30 2020 shaoqiang kang <kangshaoqiang1@huawei.com> - 3.0.1-1
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user