Browse Source

build scripts for this junit sandbox...

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270534 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
b1cf1479c8
3 changed files with 102 additions and 0 deletions
  1. +30
    -0
      proposal/sandbox/junit/build.bat
  2. +16
    -0
      proposal/sandbox/junit/build.sh
  3. +56
    -0
      proposal/sandbox/junit/build.xml

+ 30
- 0
proposal/sandbox/junit/build.bat View File

@@ -0,0 +1,30 @@
@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=

+ 16
- 0
proposal/sandbox/junit/build.sh View File

@@ -0,0 +1,16 @@
#!/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


+ 56
- 0
proposal/sandbox/junit/build.xml View File

@@ -0,0 +1,56 @@
<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>

Loading…
Cancel
Save