Oups, attachment seems to be missing. 


On Tue, 21 Aug 2001 15:16:21 +0200
 "Regis Le Brettevillois" <[EMAIL PROTECTED]> wrote:
> Hi Philippe, Laurent, Markus,
> 
> I'm sorry for not joining the discussion sooner, but I'm currently too busy
> to
> follow all my mailing lists ;(.
> Philippe, as you know, we worked on an ANT build file some time ago for our
> own
> developments. 
> I enclose in this mail the version I've (may be not the latest, I will
> check).
> 
> Hope it helps.
> 
> Regis Le Brettevillois
> CTO
> LIBeLIS
> www.libelis.com
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".

Regis Le Brettevillois
CTO
LIBeLIS
www.libelis.com
<project name="lib_launcher" default="help" basedir=".">

    <property name="debug" value="off"/>

<!-- JONAS -->
  <property file="${user.home}/.ant.properties" />

  <property name="RMI.option" value="other"/>
  <property name="Name" value="JOnAS"/>
  <property name="name" value="ant"/>
  <property name="version" value="2.2.7_lib"/>

  <property name="jonas.home" value="."/>
  <property name="src.dir" value="src"/>
  <property name="build.dir" value="build"/>
  <property name="build.classes" value="${build.dir}/classes"/>
  <property name="build.javadocs" value="${build.dir}/javadocs"/>
  <property name="dist.dir" value="dist"/>
  <property name="env.dir" value="env"/>

  <property name="externals.dir" value="external"/>
  <property name="jdbc.src.dir" value="${externals.dir}/jdbc/src"/>
  <property name="naming.src.dir" value="${externals.dir}/naming/src"/>
  <property name="security.src.dir" value="${externals.dir}/security/src"/>
  <property name="omg.src.dir" value="${externals.dir}/omg/src"/>
  <property name="preprocessor" value="org.objectweb.jpp.JPP"/>

    <!--  LAUNCHER   -->
    <!--property name="lib.dir" value="lib"/-->
    <!-- property name="build.dir" value="build"/-->
    <!-- property name="tomcat.lib.dir" value="C:\dev\tomcat\lib"/-->

    <path id="base.classpath">
        <fileset dir="${externals.dir}">
                <include name="**/*.jar" />
            </fileset>
        <pathelement location="${build.classes}" />
    </path>

<!--  JONAS   -->
<target name="check_for_optional_packages">
    <available property="jdk1.2+" classname="java.lang.ThreadLocal" />
    <available property="jdk1.3+" classname="java.lang.StrictMath" />
    <available property="bsf.present" classname="com.ibm.bsf.BSFManager" />
    <available property="netrexx.present" classname="netrexx.lang.Rexx" />
    <available property="xslp.present" classname="com.kvisco.xsl.XSLProcessor" />
    <available property="xalan.present" classname="org.apache.xalan.xslt.XSLTProcessorFactory" />
    <available property="ejb.ejbc.present" classname="weblogic.ejbc" />
    <available property="ejb.DDCreator.present" classname="weblogic.ejb.utils.DDCreator" />
    <available property="ejb.wls.present" classname="weblogic.Server" />
    <available property="junit.present" classname="junit.framework.TestCase" />
    <available property="ftp.present" classname="com.oroinc.net.ftp.FTPClient" />
    <available property="starteam.present" classname="com.starbase.util.Platform" />
</target>


    <target name="build" depends="jar"/>

    <target name="help">
        <echo message="Available Targets :"/>
        <echo message="help -> 	to get this output"/>
        <echo message="clean -> 	to remove the classes dir and the project jar"/>
        <echo message="compile -> 	to compile the  source files"/>
        <echo message="jar -> 	to make a jar file with the compiled classes"/>
    </target>



  <target name="init">
    <mkdir dir="${build.dir}"/>
    <mkdir dir="${build.classes}"/>
    <tstamp />
  </target>

  <!-- =================================================================== -->
  <!-- Compiles the source code                                            -->
  <!-- =================================================================== -->
  <target name="precompile" depends="compile.jpp">
     <uptodate property="jpp_remoteObject.notRequired"  targetfile="${src.dir}/org/objectweb/common/RemoteObject.java" >
       <srcfiles dir= "${src.dir}/org/objectweb/common" includes="**/RemoteObject.jpp"/>
     </uptodate>
     <uptodate property="jpp_orb.notRequired"  targetfile="${src.dir}/org/objectweb/common/Orb.java" >
       <srcfiles dir= "${src.dir}/org/objectweb/common" includes="**/Orb.jpp"/>
     </uptodate>
    <antcall target="precompile.remoteObject"/>
    <antcall target="precompile.orb"/>
  </target>

<target name="precompile.remoteObject" unless="jpp_remoteObject.notRequired">
     <echo message="Preprocess RemoteObject.jpp"/>
     <java classname="${preprocessor}"  fork="on">
        <arg value="-D"/>
        <arg value="${RMI.option}"/>
        <arg path="${src.dir}/org/objectweb/common/RemoteObject.jpp"/>
        <classpath refid="base.classpath"/>
     </java>
</target>

<target name="precompile.orb" unless="jpp_orb.notRequired">
     <echo message="Preprocess Orb.jpp"/>
     <java classname="${preprocessor}" fork="on" >
        <classpath refid="base.classpath"/>
        <arg value="-D"/>
        <arg value="${RMI.option}"/>
        <arg path="${src.dir}/org/objectweb/common/Orb.jpp"/>
        <classpath refid="base.classpath"/>
     </java>
</target>


  <target name="compile.jpp">
    <javac srcdir="${src.dir}/org/objectweb/jpp"
           destdir="${build.classes}"
           debug="${debug}"
           deprecation="off"
           optimize="on" >
      <classpath refid="base.classpath" />
    </javac>
  </target>

  <target name="compile.omg">
    <javac srcdir="${omg.src.dir}"
           destdir="${build.classes}"
           debug="${debug}"
           deprecation="off"
           optimize="on" >
      <classpath refid="base.classpath" />
    </javac>
  </target>

  <target name="compile.jdbc">
    <javac srcdir="${jdbc.src.dir}"
           destdir="${build.classes}"
           debug="${debug}"
           deprecation="off"
           optimize="on" >
      <classpath refid="base.classpath" />
      <exclude name="**/instantdb/*"/>
    </javac>
  </target>

  <target name="compile.naming">
    <javac srcdir="${naming.src.dir}"
           destdir="${build.classes}"
           debug="${debug}"
           deprecation="off"
           optimize="on" >
      <classpath refid="base.classpath" />
    </javac>
  </target>

  <target name="compile.security">
    <javac srcdir="${security.src.dir}"
           destdir="${build.classes}"
           debug="${debug}"
           deprecation="off"
           optimize="on" >
      <classpath refid="base.classpath" />
    </javac>
  </target>

  <target name="compile.externals">
    <antcall target="compile.omg"/>
    <antcall target="compile.jdbc"/>
    <antcall target="compile.security"/>
    <antcall target="compile.naming"/>
  </target>

<target name="compile" depends="init,check_for_optional_packages,precompile,compile.externals">
<!--  en attendant de pouvoir mettre la main sur l'api jsse  ........ -->
<<<<<<< build.xml
<copy file="cached_binaries\org\apache\tomcat\net\SSLSocketFactory.class" tofile="${build.classes}\org\apache\tomcat\net\SSLSocketFactory.class"/>
    <javac srcdir="${src.dir}" 	destdir="${build.classes}" 	debug="${debug}" 	deprecation="off"	optimize="on" >
        <classpath refid="base.classpath" />

        <exclude name="**/SecurityCtxInterceptor31.java"/>
        <exclude name="**/template/*"/>
        <exclude name="**/objectweb/jpp/*"/>
        <!--exclude name="**/dbm/Jonas*"/-->  <!-- sinon il y a des erreurs de compil -->
        <exclude name="**/dbm/*Idb*"/>  <!-- sinon il y a des erreurs de compil -->
        <exclude name="**/dbm/*Oracle*"/>  <!-- sinon il y a des erreurs de compil -->
        <exclude name="**/tests/*"/>
    </javac>

    <rmic classname="org.objectweb.jonas_tm.ControlImpl" base="${build.classes}">
        <classpath refid="base.classpath" />
    </rmic>
    <rmic classname="org.objectweb.jonas_tm.TransactionFactoryImpl" base="${build.classes}">
        <classpath refid="base.classpath" />
    </rmic>
    <rmic classname="org.objectweb.jonas_tm.SubCoordinator" base="${build.classes}">
        <classpath refid="base.classpath" />
    </rmic>
    <rmic classname="org.objectweb.jonas.adm.Adm" base="${build.classes}">
        <classpath refid="base.classpath" />
    </rmic>
=======
<!--copy file="cached_binaries\org\apache\tomcat\net\SSLSocketFactory.class" tofile="${build.classes}\org\apache\tomcat\net\SSLSocketFactory.class"/-->
	<javac srcdir="${src.dir}" 	destdir="${build.classes}" 	debug="${debug}" 	deprecation="off"	optimize="on" >
		<classpath refid="base.classpath" />
		
		<exclude name="**/SecurityCtxInterceptor31.java"/>
		<exclude name="**/template/*"/>
		<exclude name="**/objectweb/jpp/*"/>
		<!--exclude name="**/dbm/Jonas*"/-->  <!-- sinon il y a des erreurs de compil -->
		<exclude name="**/dbm/*Idb*"/>  <!-- sinon il y a des erreurs de compil -->
		<exclude name="**/dbm/*Oracle*"/>  <!-- sinon il y a des erreurs de compil -->
		<exclude name="**/tests/*"/>
	</javac>

	<rmic classname="org.objectweb.jonas_tm.ControlImpl" base="${build.classes}">
		<classpath refid="base.classpath" />
	</rmic>
	<rmic classname="org.objectweb.jonas_tm.TransactionFactoryImpl" base="${build.classes}">
		<classpath refid="base.classpath" />
	</rmic>
	<rmic classname="org.objectweb.jonas_tm.SubCoordinator" base="${build.classes}">
		<classpath refid="base.classpath" />
	</rmic>
	<rmic classname="org.objectweb.jonas.adm.Adm" base="${build.classes}">
		<classpath refid="base.classpath" />
	</rmic>
>>>>>>> 1.2
</target>

   <target name="jar" depends="compile">
     <mkdir dir="${dist.dir}"/>
    <copy todir="${build.classes}" >
        <fileset dir="${src.dir}" >
            <exclude name="**/*.java"/>
        </fileset>
    </copy>
     <property name="dist.lib.dir" value="${dist.dir}/lib"/>
     <mkdir dir="${dist.lib.dir}"/>
     <jar jarfile="${dist.lib.dir}/JOnAS.jar" basedir="${build.dir}/classes"/>
   </target>

   <target name="dist" depends="jar">
     <copy todir="${dist.lib.dir}" flatten="yes">
      <fileset dir="${externals.dir}">
        <include name="**/*.jar" />
      </fileset>
     </copy>
     <copy todir="${dist.dir}">
    <fileset dir="${env.dir}"/>
      </copy>
   </target>

    <target name="clean" >
    <!--  LAUNCHER   -->
        <delete file="${lib.dir}/${projectJarName}" />
        <delete dir="${build.classes}" />
    <!--  TOMCAT   -->
    </target>

</project>

Reply via email to