db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattba...@apache.org
Subject cvs commit: db-ojb build.xml
Date Tue, 01 Jul 2003 21:05:40 GMT
mattbaird    2003/07/01 14:05:40

  Modified:    .        build.xml
  Log:
  build target for JCA "rar"
  
  Revision  Changes    Path
  1.95      +46 -3     db-ojb/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/build.xml,v
  retrieving revision 1.94
  retrieving revision 1.95
  diff -u -r1.94 -r1.95
  --- build.xml	24 Jun 2003 16:30:41 -0000	1.94
  +++ build.xml	1 Jul 2003 21:05:40 -0000	1.95
  @@ -50,7 +50,7 @@
       <!-- ================================================================== -->
       <!-- I N I T                                                            -->
       <!-- ================================================================== -->
  -    <target name="init" depends="splash, set-archive-name,set-archive-name-date,
  +    <target name="init" depends="set-archive-name,set-archive-name-date,
       							 use-jdk12, use-jdk13, use-jdk14">
           <available property="junit.present" classname="junit.framework.TestCase"/>
           <condition property="j2ee.classes">
  @@ -132,6 +132,7 @@
           <mkdir dir="${build.dir}"/>
           <mkdir dir="${build.dest}"/>
           <mkdir dir="${build.desttest}"/>
  +		<mkdir dir="${build.destjca}"/>
           <mkdir dir="${dist}"/>
           <copy todir="${build.src}">
               <fileset dir="${src.java}"/>
  @@ -139,6 +140,9 @@
           <copy todir="${build.srctest}">
               <fileset dir="${src.test}"/>
           </copy>
  +		<copy todir="${build.srcjca}">
  +			<fileset dir="${src.jca}"/>
  +		</copy>
       </target>
   
       <!-- ================================================================== -->
  @@ -218,6 +222,10 @@
                  debug="on" deprecation="${deprecation}">
               <classpath refid="compilation-classpath" />
           </javac>
  +		<javac srcdir="${build.srcjca}" destdir="${build.destjca}" excludes="${excludes}"
  +			   debug="on" deprecation="${deprecation}">
  +			<classpath refid="compilation-classpath" />
  +		</javac>
       </target>
   
       <!-- include OJB JDORI implementation -->
  @@ -252,6 +260,10 @@
                  debug="off" deprecation="off" optimize="on">
               <classpath refid="compilation-classpath"/>
           </javac>
  +		<javac srcdir="${build.srcjca}" destdir="${build.destjca}" excludes="${excludes}"
  +			   debug="on" deprecation="${deprecation}">
  +			<classpath refid="compilation-classpath" />
  +		</javac>
       </target>
   
   
  @@ -815,7 +827,7 @@
           <java fork="yes" classname="org.apache.ojb.odmg.PerformanceTest"
                 dir="${build.test}/ojb" taskname="odmg" failonerror="true" >
               <classpath refid="runtime-classpath"/>
  -            <arg value="2500"/>
  +            <arg value="500"/>
               <arg value="3"/>
               <jvmarg value="-Xms128m"/>
               <jvmarg value="-Xmx256m"/>
  @@ -1148,6 +1160,37 @@
           </ojbdoclet>
       </target>
   
  +	<!-- ================================================================== -->
  +	<!-- Generate the JCA adapter for the OTM					            -->
  +	<!-- ================================================================== -->
  +
  +	<target name="rar" depends="jar" description="builds the resource adapter">
  +		<delete file="${dist}/ojb-jca.rar"/>
  +		<mkdir dir="${build.destjca}/META-INF/"/>
  +		<copy file="${src.dir}/etc/MANIFEST.MF" todir="${build.destjca}/META-INF/"/>
  +		<copy file="${src.dir}/etc/ra.xml" todir="${build.destjca}/META-INF/"/>
  +		<echo message="${build.destjca}"/>
  +		<jar jarfile="${dist}/ojb-jca.rar">
  +			<fileset dir="${build.destjca}" excludes=".dependency-info/**"/>
  +			<fileset dir="${lib}">
  +				<exclude name="j2ee.jar"/>
  +				<exclude name="ant.jar"/>
  +				<exclude name="optional.jar"/>
  +				<exclude name="antlr_compiletime.jar"/>
  +				<exclude name="servlet.jar"/>
  +				<exclude name="jboss-system.jar"/>
  +				<exclude name="jboss-common.jar"/>
  +				<exclude name="jboss-jmx.jar"/>
  +				<exclude name="jcs.jar"/>
  +				<exclude name="xdoclet.jar"/>
  +				<exclude name="xalan.jar"/>
  +				<exclude name="junit.jar"/>
  +			</fileset>
  +			<fileset dir="${dist}">
  +				<include name="${archive}.jar"/>
  +			</fileset>
  +		</jar>
  +	</target>
   
       <!-- ================================================================== -->
       <!-- End of targets                                                     -->
  
  
  

Mime
View raw message