ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/proposal/sandbox/junit build.sh build.bat build.xml
Date Sat, 05 Jan 2002 18:57:47 GMT
sbailliez    02/01/05 10:57:47

  Added:       proposal/sandbox/junit build.sh build.bat build.xml
  Log:
  build scripts for this junit sandbox...
  
  Revision  Changes    Path
  1.1                  jakarta-ant/proposal/sandbox/junit/build.sh
  
  Index: build.sh
  ===================================================================
  #!/bin/sh
  
  cygwin=false;
  case "`uname`" in
    CYGWIN*) cygwin=true ;;
  esac
  
  PWD=`pwd`
  if $cygwin ; then
      PWD=`cygpath --windows "$PWD"`
  fi
  
  cd ../../..
  /bin/sh ./build.sh -buildfile $PWD/build.xml $*
  cd $PWD
  
  
  
  
  1.1                  jakarta-ant/proposal/sandbox/junit/build.bat
  
  Index: build.bat
  ===================================================================
  @echo off
  
  set OLDCLASSPATH=%CLASSPATH%
  set REAL_ANT_HOME=%ANT_HOME%
  set ANT_HOME=bootstrap
  if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat
if exist bootstrap\bin\antRun.bat goto runAnt
  call bootstrap.bat
  if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat
if exist bootstrap\bin\antRun.bat goto runAnt
  echo Bootstrap FAILED
  goto cleanup
  
  :runAnt
  set LOCALCLASSPATH=lib\crimson.jar;bootstrap\lib\ant.jar
  for %%i in (lib\optional\*.jar) do call bootstrap\bin\lcp.bat %%i
  set CLASSPATH=lib\optional\xalanj1compat.jar;%LOCALCLASSPATH%;%CLASSPATH%
  set LOCALCLASSPATH=
  
  if not "%REAL_ANT_HOME%" == "" goto install_ant
  call bootstrap\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9
  goto cleanup
  
  :install_ant
  call bootstrap\bin\ant.bat -emacs -Dant.install="%REAL_ANT_HOME%" %1 %2 %3 %4 %5 %6 %7 %8
%9
  
  rem clean up
  :cleanup
  set ANT_HOME=%REAL_ANT_HOME%
  set REAL_ANT_HOME=
  set CLASSPATH=%OLDCLASSPATH%
  set OLDCLASSPATH=
  
  
  
  1.1                  jakarta-ant/proposal/sandbox/junit/build.xml
  
  Index: build.xml
  ===================================================================
  <project name="junit-proposal" basedir="." default="compile">
    <property file=".ant.properties"/>
    <property file="${user.home}/.ant.properties"/>
    
    <!--property name="build.sysclasspath" value="ignore"/-->
    <property name="build.compiler" value="jikes"/>
    <!--property name="build.compiler.emacs" value="on"/-->
    <property name="build.compiler.pedantic" value="true"/>
    <property name="build.compiler.depend" value="true"/>
    <property name="build.compiler.fulldepend" value="true"/>
  
    <property name="debug" value="on"/>
    <property name="optimize" value="off"/>
    <property name="deprecation" value="on"/>
  
    <property name="build.dir" value="build"/>
    <property name="build.lib" value="${build.dir}/lib"/>
    <property name="build.src" value="${build.dir}/src"/>
    <property name="build.classes" value="${build.dir}/classes"/>
  
    <property name="java.dir" value="src/java"/>
    <property name="tests.dir" value="src/testcases"/>
    <property name="ant.base.dir" location="../../.."/>
    <property name="lib.dir" location="${ant.base.dir}/lib"/>
    <property name="bootstrap.dir" location="${ant.base.dir}/bootstrap"/>
    
    <path id="project.class.path">
      <pathelement path="${build.classes}" />
      <fileset dir="${lib.dir}" includes="**/*.jar"/>
      <fileset dir="${bootstrap.dir}/lib" includes="ant.jar"/>
    </path>
  
  
    <target name="compile"
            description="--> compile the source code">
      <mkdir dir="${build.classes}"/>
      <javac srcdir="src/main"
             destdir="${build.classes}"
             debug="${debug}"
             optimize="${optimize}"
             deprecation="${deprecation}"
             includeantruntime="no">
        <classpath refid="project.class.path"/>
      </javac>
    </target>
    
  
    <target name="clean"
            description="--> cleans up build and dist directories">
      <delete dir="${build.dir}" />
      <delete>
        <fileset dir="." includes="**/*.bak" defaultexcludes="no"/>
      </delete>
    </target>
  
  </project>
  
  

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


Mime
View raw message