jruaux      2003/01/15 02:39:56

  Modified:    Eclipse-Plugin build.xml
  Log:
  Added lib and web dirs to the build
  
  Revision  Changes    Path
  1.7       +36 -2     jakarta-cactus/Eclipse-Plugin/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-cactus/Eclipse-Plugin/build.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- build.xml 3 Jan 2003 15:49:39 -0000       1.6
  +++ build.xml 15 Jan 2003 10:39:56 -0000      1.7
  @@ -72,7 +72,30 @@
   
       <!-- Release directory, i.e. where the zipped distribution is located -->
       <property name="release.dir" value="${base.dir}/release"/>
  -    
  +
  +    <!--
  +       ========================================================================
  +         Find out the J2EE API version
  +       ========================================================================
  +    -->
  +    <target name="check.j2ee.version">
  +
  +        <condition property="j2ee.api" value="13">
  +            <available classname="javax.servlet.Filter"
  +                classpath="${j2ee.jar}"/>
  +        </condition>
  +
  +        <condition property="j2ee.api" value="12">
  +            <available classname="javax.servlet.Servlet"
  +                classpath="${j2ee.jar}"/>
  +        </condition>
  +
  +        <fail message="Unsupported J2EE version" unless="j2ee.api"/>
  +
  +        <echo message="j2ee.api = ${j2ee.api}"/>
  +
  +    </target>
  +        
       <!--
          ========================================================================
            Display configurable properties values
  @@ -100,7 +123,8 @@
            Initialize the build. Must be called by all targets
          ========================================================================
       -->
  -    <target name="init" depends="display.properties">
  +    
  +    <target name="init" depends="check.j2ee.version, display.properties">
   
           <tstamp/>
   
  @@ -211,6 +235,16 @@
                        <fileset dir="${base.dir}/ant"/>
                </copy>
   
  +             <copy todir="${dist.dir}/lib/client" file="${commons.httpclient.jar}"/>
  +     <copy todir="${dist.dir}/lib/client" file="${servlet.jar}"/>
  +             <copy todir="${dist.dir}/lib/share" file="${aspectjrt.jar}"/>
  +     <copy todir="${dist.dir}/lib/share" file="${junit.jar}"/>
  +     <copy todir="${dist.dir}/lib/share" file="${commons.logging.jar}"/>
  +             <copy todir="${dist.dir}/lib/share" 
file="framework/dist-${j2ee.api}/lib/cactus.jar"/>
  +
  +        <copy todir="${dist.dir}/web">
  +            <fileset dir="framework/dist-${j2ee.api}/web"/>
  +        </copy>
        </target>
   
       <!--
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to