tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GOMEZ Henri" <>
Subject RE: Building modapp for Tomcat4.0 and apache1_3.23
Date Thu, 11 Apr 2002 12:58:10 GMT
>Ant is a good choice for java projects, not too bad for c projects
>and will be veru usefull when playing with gcj.

And you could still use ant to call make ;)



<project name="BuildEclipse" default="cleanup">

  The following properties can be overridden at the command-line.

    e.g. ant -Declipse_install_dir=/usr/local/eclipse
  <property name="eclipse_install_dir" value="/usr/local/eclipse"/>
  <property name="temp_dir" value="build_temp"/>
  <property name="shared_object_name" value=""/>

  <target name="init">
    <mkdir dir="${temp_dir}"/>

  <target name="unpack" depends="init">
    <unzip src="${eclipse_install_dir}/plugins/org.eclipse.swt/"
    <unjar src="${eclipse_install_dir}/plugins/org.eclipse.swt/swt.jar"

  <target name="patch" depends="unpack">
    <patch patchfile="TabFolder.patch"
    <patch patchfile="Widget.patch"
    <patch patchfile="TreeEditor.patch"/>
    <move file="" todir="${temp_dir}/org/eclipse/swt/custom"/>

  <target name="make" depends="patch">
    <execon executable="touch">
      <fileset dir="${temp_dir}" includes="**/*.java" excludes="**/*.class"/>
    <execon executable="touch">
      <fileset dir="${temp_dir}" includes="**/*.class" excludes="**/*.java"/>
    <copy file="Makefile" todir="${temp_dir}"/>
    <exec executable="make" dir="${temp_dir}">
      <arg line="-f Makefile"/>

  <target name="cleanup" depends="make">
    <move file="${temp_dir}/${shared_object_name}" todir="."/>
    <delete dir="${temp_dir}"/>


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message