james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From darr...@apache.org
Subject cvs commit: james-server build.xml
Date Sun, 13 Jul 2003 05:56:53 GMT
darrell     2003/07/12 22:56:52

  Modified:    .        build.xml
  Log:
  Added back support for conditionally building a proposal, based on the presense of the
  proposal.name property.
  
  Revision  Changes    Path
  1.133     +26 -2     james-server/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/james-server/build.xml,v
  retrieving revision 1.132
  retrieving revision 1.133
  diff -u -r1.132 -r1.133
  --- build.xml	23 Jun 2003 15:51:01 -0000	1.132
  +++ build.xml	13 Jul 2003 05:56:52 -0000	1.133
  @@ -209,7 +209,9 @@
                                     compile
       ===================================================================
       -->
  -    <target name="compile" depends="prepare">
  +    <target name="compile" depends="compile-main, compile-proposal"/>
  +    
  +    <target name="compile-main" depends="prepare">
         <echo message="Compiling James Java sources"/>
         <available property="jndi.present" classname="javax.naming.InitialContext"/>
         <mkdir dir="${build.classes}"/>
  @@ -229,6 +231,28 @@
           </fileset>
         </copy>
       </target>
  +
  +    <!-- Compiles the proposal source, only if proposal.name is specified. -->
  +    <target name="compile-proposal" depends="prepare" if="proposal.name">
  +        <echo message="Compiling the ${proposal.name} proposal."/>
  +        <!-- Now build the proposal source over those classes -->
  +        <javac destdir="${build.classes}"
  +               debug="${debug}"
  +               optimize="${optimize}"
  +               deprecation="${deprecation}">
  +            <classpath refid="project.class.path" />
  +            <src path="${java.proposal.dir}"/>
  +        </javac>
  +
  +        <!-- Copy .xinfo and .properties files from the proposal source -->
  +        <copy todir="${build.classes}" overwrite="on">
  +             <fileset dir="${java.proposal.dir}">
  +                 <include name="**/*.properties"/>
  +                 <include name="**/*.xinfo"/>
  +             </fileset>
  +        </copy>
  +    </target>
  +
   
       <!--
       ===================================================================
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message