avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: jakarta-avalon-apps/ftpserver build.xml
Date Wed, 06 Mar 2002 13:56:50 GMT
rana_b      02/03/06 05:56:50

  Modified:    ftpserver build.xml
  Log:
  second stage of refactoring
  
  Revision  Changes    Path
  1.27      +35 -48    jakarta-avalon-apps/ftpserver/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/build.xml,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- build.xml	28 Feb 2002 20:51:44 -0000	1.26
  +++ build.xml	6 Mar 2002 13:56:50 -0000	1.27
  @@ -94,7 +94,6 @@
   
     <path id="test.path">
       <pathelement path="${build.lib}/ftp-admin.jar" />
  -    <pathelement path="lib/jesktop-frimble.jar" />
     </path>
   
     <path id="tools.class.path">
  @@ -187,10 +186,11 @@
     </target>
     
     
  +  <!--===============================================-->
  +  <!-- compile all java files and copy all resources -->
  +  <!--===============================================-->
     <target name="compile">
       <mkdir dir="${build.dir}"/>
  -    <available property="jsse.present" classname="javax.net.ssl.SSLServerSocket" />
  -
       <mkdir dir="${build.classes}"/>
   
       <javac srcdir="${java.dir}"
  @@ -201,73 +201,60 @@
         <classpath refid="project.class.path" />
       </javac>
   
  -    <rmic base="${build.classes}"
  -          includes="org/apache/avalon/ftpserver/FtpStatistics.class, \
  -                    org/apache/avalon/ftpserver/FtpConfig.class, \
  -                    org/apache/avalon/ftpserver/blocks/config/RemoteFtpConfigAdaptor.class,
\
  -                    org/apache/avalon/ftpserver/blocks/iprestrictor/RemoteIpRestrictorAdaptor.class,
\
  -                    org/apache/avalon/ftpserver/blocks/server/RemoteAdminAdaptor.class,
\
  -                    org/apache/avalon/ftpserver/blocks/stats/RemoteFtpStatisticsAdaptor.class,
\
  -                    org/apache/avalon/ftpserver/blocks/usermanager/RemoteUserHandlerAdaptor.class,
\
  -                    org/apache/avalon/ftpserver/gui/FtpStatisticsPanel.class, \
  -                    org/apache/avalon/ftpserver/gui/FtpConnectionTableModel.class, \
  -                    org/apache/avalon/ftpserver/gui/FtpSpyDialog.class">
  -        <classpath refid="project.class.path" />    
  -    </rmic>    
  +    <rmic base="${build.classes}" classpathref="project.class.path" classname="org.apache.avalon.ftpserver.remote.RemoteHandler"
/>
  +    <rmic base="${build.classes}" classpathref="project.class.path" classname="org.apache.avalon.ftpserver.remote.FtpConfig"
/>
  +    <rmic base="${build.classes}" classpathref="project.class.path" classname="org.apache.avalon.ftpserver.remote.ConnectionService"
/>    
  +    <rmic base="${build.classes}" classpathref="project.class.path" classname="org.apache.avalon.ftpserver.remote.FtpStatistics"
/>
  +    <rmic base="${build.classes}" classpathref="project.class.path" classname="org.apache.avalon.ftpserver.remote.IpRestrictor"
/>
  +    <rmic base="${build.classes}" classpathref="project.class.path" classname="org.apache.avalon.ftpserver.remote.UserManager"
/>
  +    <rmic base="${build.classes}" classpathref="project.class.path" classname="org.apache.avalon.ftpserver.gui.remote.FtpConnectionObserverAdapter"
/>
  +    <rmic base="${build.classes}" classpathref="project.class.path" classname="org.apache.avalon.ftpserver.gui.remote.FtpFileListenerAdapter"
/>
  +    <rmic base="${build.classes}" classpathref="project.class.path" classname="org.apache.avalon.ftpserver.gui.remote.FtpStatisticsListenerAdapter"
/>
  +    <rmic base="${build.classes}" classpathref="project.class.path" classname="org.apache.avalon.ftpserver.gui.remote.SpyConnectionAdapter"
/>  
   
       <copy todir="${build.classes}">
         <fileset dir="${java.dir}">
  -        <include name="**/*.xinfo"/>
  -        <include name="**/*.properties" />
  +        <exclude name="**/*.java"/>
  +        <exclude name="**/CVS/*"/>
         </fileset>
       </copy>
   
     </target>
   
  -  <!--
  -       ===================================================================
  -                           Creates all the .jar file
  -       ===================================================================
  -  -->
  +
  +  <!--==============================-->
  +  <!--     create all jar files     -->
  +  <!--==============================-->
     <target name="main" depends="sars" description="Default target to generate build products
minus docs"/>  
     <target name="all" depends="compile" description="Generates all the FtpServer jar/bar/sar
files"/>
   
     <target name="sars" depends="compile">
       <mkdir dir="${build.lib}"/>
  -    <mkdir dir="build/tmp"/>
  -        
  -    <unzip src="lib/jesktop-frimble.jar" dest="build/tmp" />
       
  -    <jar jarfile="${build.lib}/ftp-admin.jar"
  -         manifest="${manifest.dir}/ftp-admin.mf">
  -      <zipfileset dir="build/classes">
  -        <include name="**"/>
  -        <!--
  -        <exclude name="org/apache/avalon/ftpserver/gui/**"/>
  -        -->
  -      </zipfileset>          
  -      <zipfileset dir="src/xml" prefix="JESKTOP-INF">
  -        <include name="**"/>      
  -      </zipfileset>      
  -      <!--
  -      <zipfileset dir="build/tmp">
  -        <include name="**/*.class"/>
  -      </zipfileset>      
  -      -->
  -    </jar>
  +    <!-- remote admin jar file -->
  +    <jar jarfile="${build.lib}/ftp-admin.jar" manifest="${manifest.dir}/ftp-admin.mf">
  +      <fileset dir="${build.classes}">
  +          <include name="**/gui/**"/>
  +          <include name="**/ftpserver/remote/**"/>
  +          <include name="**/ftpserver/FtpUser.class"/>
  +          <include name="**/usermanager/User.class"/>
  +          <include name="**/usermanager/UserManagerInterface.class"/>
  +          <include name="**/ip/IpRestrictorInterface.class"/>
  +          <include name="**/util/*"/>    
  +      </fileset>
  +    </jar>  
   
  +    <!-- jar file -->
       <jar jarfile="${build.lib}/${jar.name}.jar"
            manifest="${manifest.dir}/${jar.name}.mf">
  -      <zipfileset dir="build/classes">
  -        <include name="**"/>
  -        <exclude name="org/apache/avalon/ftpserver/gui/**"/>
  -      </zipfileset>          
  +      <fileset dir="${build.classes}" excludes="**/gui/*"/>        
       </jar>
   
  +    <!-- sar file -->
       <jar jarfile="${build.lib}/${jar.name}.sar">
   
         <zipfileset dir="${build.lib}/" prefix="SAR-INF/lib">
  -        <include name="*.jar"/>
  +        <include name="${jar.name}.jar"/>
         </zipfileset>
   
         <zipfileset dir="lib/" prefix="SAR-INF/lib">
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message