[Mc4j-cvs] mc4j/modules/ems build.xml,1.1,1.2 ems.iml,1.1,1.2
Brought to you by:
ghinkl
From: Greg H. <gh...@us...> - 2006-04-12 19:11:39
|
Update of /cvsroot/mc4j/mc4j/modules/ems In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18666/modules/ems Added Files: build.xml ems.iml Log Message: Merging EMS into head for the 2.0 release work --- 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/main" /> <exclude-output /> <exclude-exploded /> <output-test url="file://$MODULE_DIR$/classes/test" /> <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" /> <excludeFolder url="file://$MODULE_DIR$/build" /> </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="NetBeans" level="project" /> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/../../../../chires/dist/chires.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/lib/build/jboss-j2ee.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/lib/build/javax77.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/lib/build/testng-4.1-jdk15.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/lib/build/mx4j-jmx.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/lib/build/objectprofiler.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/lib/build/ognl-2.6.7.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </orderEntry> <orderEntry type="module-library"> <library> <CLASSES> <root url="jar://$MODULE_DIR$/lib/commons-logging.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"/> <property name="release.version" value="1.0.5"/> <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/build"> <include name="*.jar"/> </fileset> <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"/> <mkdir dir="classes/main"/> <mkdir dir="classes/impl"/> <mkdir dir="classes/test"/> <javac srcdir="src/ems" destdir="classes/main" debug="true" source="${compile.source}" target="${compile.target}"> <classpath> <path refid="classpath.compile"/> </classpath> <exclude name="**/DeepClassLoaderOrig*"/> </javac> <javac srcdir="src/ems-impl" destdir="classes/impl" debug="true" source="${compile.source}" target="${compile.target}"> <classpath> <path refid="classpath.compile"/> <pathelement location="classes/main"/> </classpath> </javac> <javac srcdir="src/test" destdir="classes/test" debug="true" source="${compile.source}" target="1.5"> <classpath> <path refid="classpath.compile"/> <pathelement location="classes/main"/> </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="*.jar"/> </fileset> </delete> <jar jarfile="classes/main/org-mc4j-ems-impl.jar" update="true" compress="false"> <fileset dir="classes/impl" includes="org/mc4j/ems/impl/**"/> <manifest> <attribute name="Implementation-Title" value="MC4J-EMS"/> <attribute name="Specification-Version" value="${release.version}"/> <attribute name="Implementation-Version" value="${release.version}"/> <attribute name="Implementation-URL" value="http://mc4j.org/"/> </manifest> </jar> <jar jarfile="dist/org-mc4j-ems.jar" update="true" compress="false"> <fileset dir="classes/main"/> <fileset dir="${basedir}" includes="lib/*.jar"/> <fileset dir="${basedir}" includes="lib/jsr160-includes/*.jar"/> <manifest> <attribute name="Implementation-Title" value="MC4J-EMS"/> <attribute name="Specification-Version" value="${release.version}"/> <attribute name="Implementation-Version" value="${release.version}"/> <attribute name="Implementation-URL" value="http://mc4j.org/"/> </manifest> </jar> <copy todir="dist"> <fileset dir="lib" includes="*.jar"/> </copy> </target> <target name="dist" depends="jars" description="Build the EMS distribution"/> <target name="test-classloader" depends="dist"> <java classname="org.mc4j.ems.connection.support.classloader.NestedJarClassLoader" fork="yes"> <classpath> <pathelement location="dist/org-mc4j-ems.jar"/> </classpath> </java> </target> <target name="test-OTHER"> <java classname="org.mc4j.ems.test.MultiConnectionTest" fork="yes"> <classpath> <pathelement location="dist/org-mc4j-ems.jar"/> <pathelement location="lib/commons-logging.jar"/> <pathelement location="classes/test"/> <!--<path location="/Users/ghinkle/development/tools/jboss-4.0.2/server/default/lib/jboss-jsr77.jar"/>--> </classpath> </java> </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="lib/commons-logging.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> |