[Mc4j-cvs] mc4j/modules/ems build.xml,NONE,1.1.2.1 ems.iml,NONE,1.1.2.1
Brought to you by:
ghinkl
From: Greg H. <gh...@us...> - 2005-05-26 17:27:37
|
Update of /cvsroot/mc4j/mc4j/modules/ems In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7113/modules/ems Added Files: Tag: ems_module_separation build.xml ems.iml Log Message: EMS is an externalization of the core JMX handling functionality in MC4J. This will provide a safe interface based access to jmx info that hides the necessary complexity of special classloaders per connection. The implementation is simple and the error handling has not been added yet. --- NEW FILE: ems.iml --- <?xml version="1.0" encoding="UTF-8"?> <module version="4" relativePaths="true" type="JAVA_MODULE"> <component name="ModuleRootManager" /> <component name="NewModuleRootManager"> <output url="file://$MODULE_DIR$/classes" /> <exclude-output /> <exclude-exploded /> <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/src/ems" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/ems-impl" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" /> </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/lib/mx4j-jmx.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/lib/javax77.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/lib/ognl-2.6.7.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/lib/objectprofiler.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/../../lib/common/zql.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntryProperties /> <javadoc-paths> <root url="file://E:/lib/ognl-2.6.7/javadoc" /> </javadoc-paths> </component> </module> --- NEW FILE: build.xml --- <?xml version="1.0"?> <!-- Author: Greg Hinkle Copyright 2002-2005 Greg Hinkle Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. http://sourceforge.net/projects/mc4j --> <project name="mc4j-ems" basedir="." default="compile"> <property name="module.jar" value="org-mc4j-ems.jar"/> <target name="init" description="Initializes the mc4j-ems build system."> <echo message="MC4J-EMS Build Environment - Try [ant -projecthelp] for more info."/> <tstamp/> <!-- Make sure we have all the directories we need to run a build. --> <mkdir dir="classes"/> <path id="classpath.compile"> <fileset dir="lib"> <include name="**/*.jar"/> </fileset> </path> <available property="jre15Available" classname="java.lang.management.MemoryUsage" classpathref="classpath.compile"/> <!-- Check that the required dependencies are installed. --> <available classpathref="classpath.compile" classname="org.openide.DialogDisplayer" property="installed.netbeans"/> <condition property="compile.target" value="jsr14"> <isset property="jre15Available"/> </condition> <condition property="compile.target" value="1.4"> <not> <isset property="jre15Available"/> </not> </condition> <condition property="compile.source" value="1.4"> <not> <isset property="jre15Available"/> </not> </condition> <condition property="compile.source" value="1.5"> <isset property="jre15Available"/> </condition> <echo message="Will compile with target [${compile.target}] and source [${compile.source}]"/> </target> <target name="clean" description="Clean"> <delete dir="classes"/> </target> <target name="compile" depends="init" description="Compiles the MC4J-EMS codebase."> <mkdir dir="classes"/> <javac srcdir="src/ems" destdir="classes" debug="true" source="${compile.source}" target="${compile.target}"> <classpath> <path refid="classpath.compile"/> </classpath> </javac> <javac srcdir="src/ems-impl" destdir="classes" debug="true" source="${compile.source}" target="${compile.target}"> <classpath> <path refid="classpath.compile"/> </classpath> </javac> <javac srcdir="src/test" destdir="classes" debug="true" source="${compile.source}" target="${compile.target}"> <classpath> <path refid="classpath.compile"/> </classpath> </javac> </target> <target name="jars" depends="compile" description="Builds the MC4J Module JAR Files"> <mkdir dir="dist"/> <mkdir dir="build"/> <delete> <fileset dir="dist"> <include name="${module.jar}"/> </fileset> </delete> <jar jarfile="build/org-mc4j-ems-impl.jar" update="true" compress="false"> <fileset dir="classes" includes="org/mc4j/ems/impl/**"/> </jar> <jar jarfile="dist/${module.jar}" update="true" compress="false"> <fileset dir="classes" excludes="org/mc4j/ems/impl/**" /> <fileset dir="build" includes="org-mc4j-ems-impl.jar"/> </jar> </target> <target name="run" description="Directly starts MC4J with the settings as the installer would use."> <echo>Starting MC4J-EMS Test</echo> <java classname="org.mc4j.ems.test.ConnectionTest" fork="yes"> <jvmarg value="-Xms24m"/> <jvmarg value="-Xmx128m"/> <!-- Under 1.5 JRE's this will start up the built-in jmxremoting support --> <sysproperty key="com.sun.management.jmxremote.port" value="9777"/> <sysproperty key="com.sun.management.jmxremote.ssl" value="false"/> <sysproperty key="com.sun.management.jmxremote.authenticate" value="false"/> <!--<jvmarg value="-Xdebug"/> <jvmarg value="-Xnoagent"/> <jvmarg value="-Djava.compiler=NONE"/> <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/>--> <classpath> <path refid="classpath.compile"/> <path location="dist/org-mc4j-ems.jar"/> <!--<pathelement location="c:\\bea\\weblogic81\\server\\lib\\weblogic.jar"/>--> <!--<pathelement location="e:\\tools\\weblogic9\\weblogic90b\\server\\lib\\weblogic.jar"/>--> </classpath> </java> </target> <target name="all-test" depends="compile, jars, run" description="Compile and run the tests." > </target> </project> |