From: <mor...@us...> - 2006-10-17 16:07:24
|
Revision: 1237 http://svn.sourceforge.net/wrapper/?rev=1237&view=rev Author: mortenson Date: 2006-10-17 09:06:52 -0700 (Tue, 17 Oct 2006) Log Message: ----------- Correct the tag path. Added Paths: ----------- tags/RELEASE_3_2_2/wrapper/ tags/RELEASE_3_2_2/wrapper/bin/ tags/RELEASE_3_2_2/wrapper/build-tests.xml tags/RELEASE_3_2_2/wrapper/build.xml tags/RELEASE_3_2_2/wrapper/build32.bat tags/RELEASE_3_2_2/wrapper/build32.sh tags/RELEASE_3_2_2/wrapper/build64.bat tags/RELEASE_3_2_2/wrapper/build64.sh tags/RELEASE_3_2_2/wrapper/conf/ tags/RELEASE_3_2_2/wrapper/default.properties tags/RELEASE_3_2_2/wrapper/doc/ tags/RELEASE_3_2_2/wrapper/project.dtd tags/RELEASE_3_2_2/wrapper/src/ tags/RELEASE_3_2_2/wrapper/test/ tags/RELEASE_3_2_2/wrapper/todo.txt tags/RELEASE_3_2_2/wrapper/tools/ Removed Paths: ------------- tags/RELEASE_3_2_2/bin/ tags/RELEASE_3_2_2/build-tests.xml tags/RELEASE_3_2_2/build.xml tags/RELEASE_3_2_2/build32.bat tags/RELEASE_3_2_2/build32.sh tags/RELEASE_3_2_2/build64.bat tags/RELEASE_3_2_2/build64.sh tags/RELEASE_3_2_2/conf/ tags/RELEASE_3_2_2/default.properties tags/RELEASE_3_2_2/doc/ tags/RELEASE_3_2_2/project.dtd tags/RELEASE_3_2_2/src/ tags/RELEASE_3_2_2/test/ tags/RELEASE_3_2_2/todo.txt tags/RELEASE_3_2_2/tools/ Deleted: tags/RELEASE_3_2_2/build-tests.xml =================================================================== --- tags/RELEASE_3_2_2/build-tests.xml 2006-10-17 15:59:57 UTC (rev 1236) +++ tags/RELEASE_3_2_2/build-tests.xml 2006-10-17 16:06:52 UTC (rev 1237) @@ -1,816 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<!DOCTYPE project PUBLIC "-//ANT//DTD project//EN" "project.dtd"> - -<!-- ======================================================================= --> -<!-- Wrapper build file --> -<!-- ======================================================================= --> - -<project name="wrapper-tests" default="test-setup" basedir="."> - - <!-- Local build properties --> - <property file="${user.home}/.ant.local.properties" /> - - <!-- platform --> - <property name="is.${os.name}" value="true"/> - - <property name="test.dir" value="${basedir}/test"/> - <property name="src.dir" value="${basedir}/src"/> - - <!-- =================================================================== --> - <!-- Help on usage --> - <!-- =================================================================== --> - <target name="usage"> - <echo message="Use the -projecthelp option instead"/> - </target> - <target name="help" depends="usage"/> - - <!-- =================================================================== --> - <!-- Resolve Platform properties --> - <!-- =================================================================== --> - <target name="init-windows-nt" if="is.Windows NT"> - <property name="is.Windows" value="true"/> - </target> - <target name="init-windows-2000" if="is.Windows 2000"> - <property name="is.Windows" value="true"/> - </target> - <target name="init-windows-xp" if="is.Windows XP"> - <property name="is.Windows" value="true"/> - </target> - <target name="init-windows" - depends="init-windows-nt, init-windows-2000, init-windows-xp" - if="is.Windows"> - <property name="is.shell.bat" value="true"/> - </target> - <target name="init-linux" if="is.Linux"> - <property name="is.Unix" value="true"/> - <property name="is.shell.sh" value="true"/> - </target> - <target name="init-solaris" if="is.SunOS"> - <property name="is.Unix" value="true"/> - <property name="is.shell.sh" value="true"/> - </target> - <target name="init-aix" if="is.AIX"> - <property name="is.Unix" value="true"/> - <property name="is.shell.sh" value="true"/> - </target> - <target name="init-hpux" if="is.HPUX"> - <property name="is.Unix" value="true"/> - <property name="is.shell.sh" value="true"/> - </target> - <target name="init-macosx" if="is.Mac OS X"> - <property name="is.Unix" value="true"/> - <property name="is.shell.sh" value="true"/> - </target> - <target name="init-osf1" if="is.OSF1"> - <property name="is.Unix" value="true"/> - <property name="is.shell.sh" value="true"/> - </target> - <target name="init-freebsd" if="is.FreeBSD"> - <property name="is.Unix" value="true"/> - <property name="is.shell.sh" value="true"/> - </target> - <target name="init-irix" if="is.Irix"> - <property name="is.Unix" value="true"/> - <property name="is.shell.sh" value="true"/> - </target> - - <!-- =================================================================== --> - <!-- Initialize build. --> - <!-- =================================================================== --> - <target name="init" depends="init-windows, init-linux, init-solaris, init-macosx, init-osf1, init-freebsd, init-irix"> - </target> - - <!-- =================================================================== --> - <!-- Test Setup target (Common) --> - <!-- =================================================================== --> - <target name="test-setup-common" depends="init"> - <!-- Create a template wrapper.conf file that will be used to create the files for - each of the additional conf files for each test. --> - <delete file="${test.dir}/template.conf"/> - <copy file="${src.dir}/conf/wrapper.conf.in" - tofile="${test.dir}/template.conf"/> - <replace file="${test.dir}/template.conf"> - <replacetoken>wrapper.java.classpath.1=../lib/wrapper.jar</replacetoken> - <replacevalue><![CDATA[wrapper.java.classpath.1=../lib/wrappertest.jar -wrapper.java.classpath.2=../lib/wrapper.jar]]></replacevalue> - </replace> - <replace file="${test.dir}/template.conf" - token="wrapper.logfile=../logs/wrapper.log" - value="wrapper.logfile=../test/testwrapper.log" /> - - <!-- Background Threads Test --> - <delete file="${test.dir}/backgroundthreads.conf"/> - <filter token="app.name" value="backgroundthreads"/> - <filter token="app.long.name" value="Background Threads Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/backgroundthreads.conf" - filtering="on"/> - <replace file="${test.dir}/backgroundthreads.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.BackgroundThreads" /> - - <!-- Long Running Background Threads Test --> - <delete file="${test.dir}/longrunningbackgroundthreads.conf"/> - <filter token="app.name" value="longrunningbackgroundthreads"/> - <filter token="app.long.name" value="Long Running Background Threads Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/longrunningbackgroundthreads.conf" - filtering="on"/> - <replace file="${test.dir}/longrunningbackgroundthreads.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.LongRunningBackgroundThreads" /> - - <!-- Daemon Threads Test --> - <delete file="${test.dir}/daemonthreads.conf"/> - <filter token="app.name" value="daemonthreads"/> - <filter token="app.long.name" value="Daemon Threads Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/daemonthreads.conf" - filtering="on"/> - <replace file="${test.dir}/daemonthreads.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.DaemonThreads" /> - - <!-- No Return Test --> - <delete file="${test.dir}/noreturn.conf"/> - <filter token="app.name" value="noreturn"/> - <filter token="app.long.name" value="No Return Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/noreturn.conf" - filtering="on"/> - <replace file="${test.dir}/noreturn.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.NoReturn" /> - - <!-- Quick Complete Test --> - <delete file="${test.dir}/quickcomplete.conf"/> - <filter token="app.name" value="quickcomplete"/> - <filter token="app.long.name" value="Quick Complete Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/quickcomplete.conf" - filtering="on"/> - <replace file="${test.dir}/quickcomplete.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.QuickComplete" /> - - <!-- Environment Variables Test --> - <delete file="${test.dir}/envvars.conf"/> - <filter token="app.name" value="envvars"/> - <filter token="app.long.name" value="Environment Variables Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/envvars.conf" - filtering="on"/> - <replace file="${test.dir}/envvars.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.EnvironmentVariables" /> - - <!-- Percent Output Crash Test --> - <delete file="${test.dir}/percentoutput.conf"/> - <filter token="app.name" value="percentoutput"/> - <filter token="app.long.name" value="Percent Output Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/percentoutput.conf" - filtering="on"/> - <replace file="${test.dir}/percentoutput.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.PercentOutput" /> - - <!-- Log Output Test --> - <delete file="${test.dir}/logoutput.conf"/> - <filter token="app.name" value="logoutput"/> - <filter token="app.long.name" value="Log Output Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/logoutput.conf" - filtering="on"/> - <replace file="${test.dir}/logoutput.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.LogOutput" /> - - <!-- Restarter Test --> - <delete file="${test.dir}/restarter.conf"/> - <filter token="app.name" value="restarter"/> - <filter token="app.long.name" value="Restarter Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/restarter.conf" - filtering="on"/> - <replace file="${test.dir}/restarter.conf" - token="wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp" - value="wrapper.java.mainclass=org.tanukisoftware.wrapper.test.Restarter" /> - - <!-- Action Test --> - <delete file="${test.dir}/action.conf"/> - <filter token="app.name" value="action"/> - <filter token="app.long.name" value="Action Test Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/action.conf" - filtering="on"/> - <replace file="${test.dir}/action.conf" - token="wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp" - value="wrapper.java.mainclass=org.tanukisoftware.wrapper.test.TestAction" /> - - <!-- Shutdown Hook Test --> - <delete file="${test.dir}/shutdownhook.conf"/> - <filter token="app.name" value="shutdownhook"/> - <filter token="app.long.name" value="Shutdown Hook Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/shutdownhook.conf" - filtering="on"/> - <replace file="${test.dir}/shutdownhook.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.ShutdownHook" /> - - <!-- OutputLoader Test --> - <delete file="${test.dir}/outputloader.conf"/> - <filter token="app.name" value="outputloader"/> - <filter token="app.long.name" value="Output Loader Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/outputloader.conf" - filtering="on"/> - <replace file="${test.dir}/outputloader.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.OutputLoader" /> - - <!-- Memory Test --> - <delete file="${test.dir}/memory.conf"/> - <filter token="app.name" value="memory"/> - <filter token="app.long.name" value="Memory Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/memory.conf" - filtering="on"/> - <replace file="${test.dir}/memory.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.Memory" /> - - <!-- Filter Test --> - <delete file="${test.dir}/filter.conf"/> - <filter token="app.name" value="filter"/> - <filter token="app.long.name" value="Filter Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/filter.conf" - filtering="on"/> - <replace file="${test.dir}/filter.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.Filter" /> - <replace file="${test.dir}/filter.conf"> - <replacetoken>wrapper.syslog.loglevel=NONE</replacetoken> - <replacevalue><![CDATA[wrapper.syslog.loglevel=NONE - -wrapper.filter.trigger.1=NONERROR -wrapper.filter.action.1=NONE -wrapper.filter.trigger.2=ERROR -wrapper.filter.action.2=RESTART -wrapper.filter.trigger.3=Nice long restart message. -wrapper.filter.action.3=RESTART -wrapper.filter.trigger.4=ALLDONE -wrapper.filter.action.4=SHUTDOWN]]></replacevalue> - </replace> - - <!-- OnExit Test --> - <delete file="${test.dir}/onexit.conf"/> - <filter token="app.name" value="onexit"/> - <filter token="app.long.name" value="OnExit Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/onexit.conf" - filtering="on"/> - <replace file="${test.dir}/onexit.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.OnExit" /> - <replace file="${test.dir}/onexit.conf"> - <replacetoken>wrapper.syslog.loglevel=NONE</replacetoken> - <replacevalue><![CDATA[wrapper.syslog.loglevel=NONE - -wrapper.on_exit.1=RESTART -wrapper.on_exit.3=SHUTDOWN -wrapper.on_exit.default=RESTART]]></replacevalue> - </replace> - - <!-- Loaded WrapperListener Test --> - <delete file="${test.dir}/loadedwrapperlistener.conf"/> - <filter token="app.name" value="loadedwrapperlistener"/> - <filter token="app.long.name" value="Loaded WrapperListener Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/loadedwrapperlistener.conf" - filtering="on"/> - <replace file="${test.dir}/loadedwrapperlistener.conf" - token="wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp" - value="wrapper.java.mainclass=org.tanukisoftware.wrapper.test.LoadedWrapperListener" /> - <replace file="${test.dir}/loadedwrapperlistener.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.debug=TRUE" /> - <replace file="${test.dir}/loadedwrapperlistener.conf" - token="#wrapper.java.initmemory=3" - value="wrapper.java.initmemory=256" /> - <replace file="${test.dir}/loadedwrapperlistener.conf" - token="#wrapper.java.maxmemory=64" - value="wrapper.java.maxmemory=256" /> - <replace file="${test.dir}/loadedwrapperlistener.conf" - token="wrapper.ntservice.process_priority=NORMAL" - value="wrapper.ntservice.process_priority=HIGH" /> - - <!-- System Property Test --> - <delete file="${test.dir}/systemproperty.conf"/> - <filter token="app.name" value="systemproperty"/> - <filter token="app.long.name" value="System Property Case" /> - <copy file="${test.dir}/template.conf" - tofile="${test.dir}/systemproperty.conf" - filtering="on"/> - <replace file="${test.dir}/systemproperty.conf"> - <replacetoken>#wrapper.java.additional.1=</replacetoken> - <replacevalue><![CDATA[wrapper.java.additional.1=-DVAR1="abc" -wrapper.java.additional.1.stripquotes=TRUE -wrapper.java.additional.2=-DVAR2="\\" -wrapper.java.additional.2.stripquotes=TRUE -wrapper.java.additional.3=-DVAR3="\"" -wrapper.java.additional.3.stripquotes=TRUE -wrapper.java.additional.4=-DVAR4=abc -wrapper.java.additional.5=-DVAR5=\ -wrapper.java.additional.6=-DVAR6=\\ -wrapper.java.additional.7=-DVAR7=\" -wrapper.java.additional.7.stripquotes=TRUE]]></replacevalue> - </replace> - <replace file="${test.dir}/systemproperty.conf" - token="wrapper.app.parameter.1=<YourMainClass>" - value="wrapper.app.parameter.1=org.tanukisoftware.wrapper.test.SystemProperty" /> - </target> - - <!-- =================================================================== --> - <!-- Test Setup target (Bat files - Windows) --> - <!-- =================================================================== --> - <target name="test-setup-bat" depends="test-setup-common" if="is.shell.bat"> - <!-- Create the test specific batch files --> - - <!-- Background Threads Test --> - <delete file="${test.dir}/TestBackgroundThreads.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestBackgroundThreads.bat" - filtering="on"/> - <replace file="${test.dir}/TestBackgroundThreads.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestBackgroundThreads.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\backgroundthreads.conf' /> - - <!-- Long Running Background Threads Test --> - <delete file="${test.dir}/TestLongRunningBackgroundThreads.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestLongRunningBackgroundThreads.bat" - filtering="on"/> - <replace file="${test.dir}/TestLongRunningBackgroundThreads.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestLongRunningBackgroundThreads.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\longrunningbackgroundthreads.conf' /> - - <!-- Daemon Threads Test --> - <delete file="${test.dir}/TestDaemonThreads.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestDaemonThreads.bat" - filtering="on"/> - <replace file="${test.dir}/TestDaemonThreads.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestDaemonThreads.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\daemonthreads.conf' /> - - <!-- No Return Test --> - <delete file="${test.dir}/TestNoReturn.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestNoReturn.bat" - filtering="on"/> - <replace file="${test.dir}/TestNoReturn.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestNoReturn.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\noreturn.conf' /> - - <!-- Quick Complete Test --> - <delete file="${test.dir}/TestQuickComplete.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestQuickComplete.bat" - filtering="on"/> - <replace file="${test.dir}/TestQuickComplete.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestQuickComplete.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\quickcomplete.conf' /> - - <!-- Environment Variables Test --> - <delete file="${test.dir}/TestEnvironmentVariables.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestEnvironmentVariables.bat" - filtering="on"/> - <replace file="${test.dir}/TestEnvironmentVariables.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestEnvironmentVariables.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\envvars.conf' /> - <replace file="${test.dir}/TestEnvironmentVariables.bat"> - <replacetoken>setlocal</replacetoken> - <replacevalue><![CDATA[setlocal - -rem -rem Set up some test environment variables -rem -set ENV_VAR_1=a -set ENV_VAR_2=b -set ENV_VAR_3=c -set ENV_VAR_4=d]]></replacevalue> - </replace> - - <!-- Percent Output Test --> - <delete file="${test.dir}/TestPercentOutput.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestPercentOutput.bat" - filtering="on"/> - <replace file="${test.dir}/TestPercentOutput.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestPercentOutput.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\percentoutput.conf' /> - - <!-- Log Output Test --> - <delete file="${test.dir}/TestLogOutput.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestLogOutput.bat" - filtering="on"/> - <replace file="${test.dir}/TestLogOutput.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestLogOutput.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\logoutput.conf' /> - - <!-- Restarter Test --> - <delete file="${test.dir}/TestRestarter.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestRestarter.bat" - filtering="on"/> - <replace file="${test.dir}/TestRestarter.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestRestarter.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\restarter.conf' /> - - <!-- Action Test --> - <delete file="${test.dir}/TestAction.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestAction.bat" - filtering="on"/> - <replace file="${test.dir}/TestAction.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestAction.bat" - token='set _WRAPPER_CONF="%~f1"' - value='set _WRAPPER_CONF=""' /> - <replace file="${test.dir}/TestAction.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\action.conf' /> - <replace file="${test.dir}/TestAction.bat" - token='"%_WRAPPER_EXE%" -c %_WRAPPER_CONF%' - value='"%_WRAPPER_EXE%" -c %_WRAPPER_CONF% wrapper.app.parameter.1=%1' /> - - <!-- Shutdown Hook Test --> - <delete file="${test.dir}/TestShutdownHook.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestShutdownHook.bat" - filtering="on"/> - <replace file="${test.dir}/TestShutdownHook.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestShutdownHook.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\shutdownhook.conf' /> - - <!-- Output Loader Test --> - <delete file="${test.dir}/TestOutputLoader.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestOutputLoader.bat" - filtering="on"/> - <replace file="${test.dir}/TestOutputLoader.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestOutputLoader.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\outputloader.conf' /> - - <!-- Memory Test --> - <delete file="${test.dir}/TestMemory.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestMemory.bat" - filtering="on"/> - <replace file="${test.dir}/TestMemory.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestMemory.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\memory.conf' /> - - <!-- Filter Test --> - <delete file="${test.dir}/TestFilter.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestFilter.bat" - filtering="on"/> - <replace file="${test.dir}/TestFilter.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestFilter.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\filter.conf' /> - - <!-- OnExit Test --> - <delete file="${test.dir}/TestOnExit.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestOnExit.bat" - filtering="on"/> - <replace file="${test.dir}/TestOnExit.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestOnExit.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\onexit.conf' /> - - <!-- Loaded WrapperListener Test --> - <delete file="${test.dir}/TestLoadedWrapperListener.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestLoadedWrapperListener.bat" - filtering="on"/> - <replace file="${test.dir}/TestLoadedWrapperListener.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestLoadedWrapperListener.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\loadedwrapperlistener.conf' /> - - <!-- System Property Test --> - <delete file="${test.dir}/TestSystemProperty.bat"/> - <copy file="${src.dir}/bin/App.bat.in" - tofile="${test.dir}/TestSystemProperty.bat" - filtering="on"/> - <replace file="${test.dir}/TestSystemProperty.bat" - token='set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%' - value='set _WRAPPER_EXE=%_REALPATH%..\bin\%_WRAPPER_BASE%' /> - <replace file="${test.dir}/TestSystemProperty.bat" - token='%_REALPATH%..\conf\wrapper.conf' - value='%_REALPATH%..\test\systemproperty.conf' /> - </target> - - <!-- =================================================================== --> - <!-- Test Setup target (sh scripts - Unix, Linux) --> - <!-- =================================================================== --> - <target name="test-setup-sh" depends="test-setup-common" if="is.shell.sh"> - <!-- Create a template script to make this easier --> - <delete file="${test.dir}/temp.script.in"/> - <copy file="${src.dir}/bin/sh.script.in" - tofile="${test.dir}/temp.script.in"/> - </target> - - <!-- =================================================================== --> - <!-- Test Setup target (Unix) --> - <!-- =================================================================== --> - <target name="test-setup-unix" depends="test-setup-sh" if="is.Unix"> - <!-- Create the test specific script files --> - <replace file="${test.dir}/temp.script.in" - token='WRAPPER_CMD="./wrapper"' - value='WRAPPER_CMD="../bin/wrapper"' /> - <replace file="${test.dir}/temp.script.in" - token='WRAPPER_CONF="../conf/wrapper.conf"' - value='WRAPPER_CONF="../test/@app.name@.conf"' /> - <replace file="${test.dir}/temp.script.in" - token="SCRIPT=`$$SCRIPT_DIR/realpath $$0`" - value="SCRIPT=`$$SCRIPT_DIR/../bin/realpath $$0`" /> - - <!-- Background Threads Test --> - <filter token="app.name" value="backgroundthreads"/> - <filter token="app.long.name" value="Background Threads Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/backgroundthreads" - filtering="on"/> - <chmod file="${test.dir}/backgroundthreads" perm="+x"/> - - <!-- Long Running Background Threads Test --> - <filter token="app.name" value="longrunningbackgroundthreads"/> - <filter token="app.long.name" value="Long Running Background Threads Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/longrunningbackgroundthreads" - filtering="on"/> - <chmod file="${test.dir}/longrunningbackgroundthreads" perm="+x"/> - - <!-- Daemon Threads Test --> - <filter token="app.name" value="daemonthreads"/> - <filter token="app.long.name" value="Daemon Threads Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/daemonthreads" - filtering="on"/> - <chmod file="${test.dir}/daemonthreads" perm="+x"/> - - <!-- No Return Test --> - <filter token="app.name" value="noreturn"/> - <filter token="app.long.name" value="No Return Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/noreturn" - filtering="on"/> - <chmod file="${test.dir}/noreturn" perm="+x"/> - - <!-- Quick Complete Test --> - <filter token="app.name" value="quickcomplete"/> - <filter token="app.long.name" value="Quick Complete Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/quickcomplete" - filtering="on"/> - <chmod file="${test.dir}/quickcomplete" perm="+x"/> - - <!-- Environment Variables Test --> - <filter token="app.name" value="envvars"/> - <filter token="app.long.name" value="Environment Variables Case" /> - <delete file="${test.dir}/envvars"/> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/envvars" - filtering="on"/> - <replace file="${test.dir}/envvars"> - <replacetoken>the needs of your application</replacetoken> - <replacevalue><![CDATA[the needs of your application - -# Set up some test environment variables -export ENV_VAR_1=a -export ENV_VAR_2=b -export ENV_VAR_3=c -export ENV_VAR_4=d]]></replacevalue> - </replace> - <chmod file="${test.dir}/envvars" perm="+x"/> - - <!-- Percent Output Test --> - <filter token="app.name" value="percentoutput"/> - <filter token="app.long.name" value="Percent Output Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/percentoutput" - filtering="on"/> - <chmod file="${test.dir}/percentoutput" perm="+x"/> - - <!-- Log Output Test --> - <filter token="app.name" value="logoutput"/> - <filter token="app.long.name" value="Log Output Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/logoutput" - filtering="on"/> - <chmod file="${test.dir}/logoutput" perm="+x"/> - - <!-- Restarter Test --> - <filter token="app.name" value="restarter"/> - <filter token="app.long.name" value="Restarter Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/restarter" - filtering="on"/> - <chmod file="${test.dir}/restarter" perm="+x"/> - - <!-- Action Test --> - <filter token="app.name" value="action"/> - <filter token="app.long.name" value="Action Test Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/action" - filtering="on"/> - <replace file="${test.dir}/action"> - <replacetoken><![CDATA[\"$REALPATH\" $2]]></replacetoken> - <replacevalue><![CDATA[\"$REALPATH\" $2 $3]]></replacevalue> - </replace> - <replace file="${test.dir}/action"> - <replacetoken><![CDATA['console') - checkUser touchlock $1 - console - ;;]]></replacetoken> - <replacevalue><![CDATA['console') - checkUser touchlock $1 $2 - console $2 - ;;]]></replacevalue> - </replace> - <replace file="${test.dir}/action"> - <replacetoken><![CDATA['start') - checkUser touchlock $1 - start - ;;]]></replacetoken> - <replacevalue><![CDATA['start') - checkUser touchlock $1 $2 - start $2 - ;;]]></replacevalue> - </replace> - <replace file="${test.dir}/action"> - <replacetoken><![CDATA['restart') - checkUser touchlock $1 - stopit - start - ;;]]></replacetoken> - <replacevalue><![CDATA['restart') - checkUser touchlock $1 $2 - stopit - start $2 - ;;]]></replacevalue> - </replace> - <replace file="${test.dir}/action"> - <replacetoken><![CDATA[checkUser "" $1]]></replacetoken> - <replacevalue><![CDATA[checkUser "" $1 $2]]></replacevalue> - </replace> - <replace file="${test.dir}/action"> - <replacetoken><![CDATA[Running $APP_LONG_NAME]]></replacetoken> - <replacevalue><![CDATA[Running $APP_LONG_NAME with test action: $1]]></replacevalue> - </replace> - <replace file="${test.dir}/action"> - <replacetoken><![CDATA[Starting $APP_LONG_NAME]]></replacetoken> - <replacevalue><![CDATA[Starting $APP_LONG_NAME with test action: $1]]></replacevalue> - </replace> - <replace file="${test.dir}/action"> - <replacetoken><![CDATA[\"$WRAPPER_CMD\" \"$WRAPPER_CONF\"]]></replacetoken> - <replacevalue><![CDATA[\"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.app.parameter.1=$1]]></replacevalue> - </replace> - <replace file="${test.dir}/action"> - <replacetoken><![CDATA[Usage: $0 { console | start | stop | restart | status | dump }]]></replacetoken> - <replacevalue><![CDATA[Usage: $0 { console <action> | start <action> | stop | restart <action> | status | dump }]]></replacevalue> - </replace> - <chmod file="${test.dir}/action" perm="+x"/> - - <!-- Shutdown Hook Test --> - <filter token="app.name" value="shutdownhook"/> - <filter token="app.long.name" value="Shutdown Hook Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/shutdownhook" - filtering="on"/> - <chmod file="${test.dir}/shutdownhook" perm="+x"/> - - <!-- Output Loader Test --> - <filter token="app.name" value="outputloader"/> - <filter token="app.long.name" value="Output Loader Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/outputloader" - filtering="on"/> - <chmod file="${test.dir}/outputloader" perm="+x"/> - - <!-- Memory Test --> - <filter token="app.name" value="memory"/> - <filter token="app.long.name" value="Memory Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/memory" - filtering="on"/> - <chmod file="${test.dir}/memory" perm="+x"/> - - <!-- Filter Test --> - <filter token="app.name" value="filter"/> - <filter token="app.long.name" value="Filter Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/filter" - filtering="on"/> - <chmod file="${test.dir}/filter" perm="+x"/> - - <!-- OnExit Test --> - <filter token="app.name" value="onexit"/> - <filter token="app.long.name" value="OnExit Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/onexit" - filtering="on"/> - <chmod file="${test.dir}/onexit" perm="+x"/> - - <!-- Loaded WrapperListener Test --> - <filter token="app.name" value="loadedwrapperlistener"/> - <filter token="app.long.name" value="Loaded WrapperListener Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/loadedwrapperlistener" - filtering="on"/> - <chmod file="${test.dir}/loadedwrapperlistener" perm="+x"/> - - <!-- System Property Test --> - <filter token="app.name" value="systemproperty"/> - <filter token="app.long.name" value="System Property Case" /> - <copy file="${test.dir}/temp.script.in" - tofile="${test.dir}/systemproperty" - filtering="on"/> - <chmod file="${test.dir}/systemproperty" perm="+x"/> - - <!-- Get rid of the temp script file --> - <delete file="${test.dir}/temp.script.in"/> - </target> - - <!-- =================================================================== --> - <!-- Test Setup target --> - <!-- =================================================================== --> - <target name="test-setup" - depends="test-setup-bat, test-setup-unix"> - </target> - - <!-- =================================================================== --> - <!-- Clean up everything. --> - <!-- =================================================================== --> - <target name="total-clean"> - <delete> - <fileset dir="${basedir}/test"> - <exclude name=".cvsignore"/> - </fileset> - </delete> - </target> - -</project> - Deleted: tags/RELEASE_3_2_2/build.xml =================================================================== --- tags/RELEASE_3_2_2/build.xml 2006-10-17 15:59:57 UTC (rev 1236) +++ tags/RELEASE_3_2_2/build.xml 2006-10-17 16:06:52 UTC (rev 1237) @@ -1,1523 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<!DOCTYPE project PUBLIC "-//ANT//DTD project//EN" "project.dtd"> - -<!-- ======================================================================= --> -<!-- Wrapper build file --> -<!-- ======================================================================= --> - -<project name="wrapper" default="main" basedir="."> - - <!-- Local build properties --> - <property file="${user.home}/.ant.properties" /> - <property file="${basedir}/ant.properties"/> - <property file="${basedir}/default.properties"/> - - <!-- property name="classpath" value=""/ --> - - <property name="ant.dist.version" value="1.6.2"/> - <property name="cocoon.dist.version" value="2.0.4"/> - - <!-- Project classpath --> - <path id="project.class.path"> - <pathelement location="${build.classes}"/> - </path> - - <path id="tools.class.path"> - <!-- Different platforms do things slightly different, so include both - possible locations of the tools.jar file. --> - <pathelement location="${java.home}/lib/tools.jar"/> - <pathelement location="${java.home}/../lib/tools.jar"/> - - <!-- Cocoon docs. The directory is set as it is so the build will work when - the cocoon files are not available. --> - <fileset dir="${basedir}/tools/"> - <include name="cocoon-${cocoon.dist.version}/lib/*.jar" /> - </fileset> - </path> - - <path id="test.class.path"> - <pathelement location="${build.testclasses}"/> - <path refid="project.class.path"/> - </path> - - <!-- =================================================================== --> - <!-- Help on usage --> - <!-- =================================================================== --> - <target name="usage"> - <echo message="Use the -projecthelp option instead"/> - </target> - <target name="help" depends="usage"/> - - <!-- =================================================================== --> - <!-- Resolve Platform properties --> - <!-- =================================================================== --> - <target name="init-setup"> - <!-- Resolve an architecture to use in release names. --> - <condition property="dist.arch" value="universal"> - <isset property="universal"/> - </condition> - <condition property="dist.arch" value="x86"> - <or> - <equals arg1="${os.arch}" arg2="amd64"/> - <equals arg1="${os.arch}" arg2="athlon"/> - <equals arg1="${os.arch}" arg2="ia32"/> - <equals arg1="${os.arch}" arg2="IA32"/> - <equals arg1="${os.arch}" arg2="ia64"/> - <equals arg1="${os.arch}" arg2="x86_64"/> - <equals arg1="${os.arch}" arg2="x86"/> - <equals arg1="${os.arch}" arg2="i686"/> - <equals arg1="${os.arch}" arg2="i586"/> - <equals arg1="${os.arch}" arg2="i486"/> - <equals arg1="${os.arch}" arg2="i386"/> - </or> - </condition> - <condition property="dist.arch" value="ppc"> - <or> - <equals arg1="${os.arch}" arg2="ppc"/> - <equals arg1="${os.arch}" arg2="power"/> - <equals arg1="${os.arch}" arg2="Power"/> - <equals arg1="${os.arch}" arg2="PowerPC"/> - <equals arg1="${os.arch}" arg2="ppc64"/> - </or> - </condition> - <condition property="dist.arch" value="parisc"> - <or> - <equals arg1="${os.arch}" arg2="PA_RISC"/> - <equals arg1="${os.arch}" arg2="PA-RISC"/> - <equals arg1="${os.arch}" arg2="PA_RISC2.0"/> - </or> - </condition> - <condition property="dist.arch" value="sparc"> - <or> - <equals arg1="${os.arch}" arg2="sparc"/> - <equals arg1="${os.arch}" arg2="sparcv9"/> - </or> - </condition> - <property name="dist.arch" value="${os.arch}"/> - - <!-- Resolve an OS name to use in release names. --> - <condition property="dist.os" value="windows"> - <or> - <equals arg1="${os.name}" arg2="Windows NT"/> - <equals arg1="${os.name}" arg2="Windows 2000"/> - <equals arg1="${os.name}" arg2="Windows XP"/> - <equals arg1="${os.name}" arg2="Windows 2003"/> - </or> - </condition> - <condition property="dist.os" value="linux"> - <equals arg1="${os.name}" arg2="Linux"/> - </condition> - <condition property="dist.os" value="solaris"> - <or> - <equals arg1="${os.name}" arg2="Solaris"/> - <equals arg1="${os.name}" arg2="SunOS"/> - </or> - </condition> - <condition property="dist.os" value="aix"> - <equals arg1="${os.name}" arg2="AIX"/> - </condition> - <condition property="dist.os" value="hpux"> - <or> - <equals arg1="${os.name}" arg2="HP-UX"/> - <equals arg1="${os.name}" arg2="HP-UX64"/> - </or> - </condition> - <condition property="dist.os" value="macosx"> - <equals arg1="${os.name}" arg2="Mac OS X"/> - </condition> - <condition property="dist.os" value="osf1"> - <equals arg1="${os.name}" arg2="OSF1"/> - </condition> - <condition property="dist.os" value="freebsd"> - <equals arg1="${os.name}" arg2="FreeBSD"/> - </condition> - <condition property="dist.os" value="irix"> - <equals arg1="${os.name}" arg2="Irix"/> - </condition> - <condition property="dist.os" value="unixware"> - <equals arg1="${os.name}" arg2="UNIX_SV"/> - </condition> - <property name="dist.os" value="${os.name}"/> - - <!-- platform --> - <property name="is.${dist.os}" value="true"/> - <!--<property name="is.${dist.arch}" value="true"/>--> - <condition property="is.unix" value="true"> - <not> - <isset property="is.windows"/> - </not> - </condition> - - <!-- Java version. --> - <condition property="javac.target.version" value="1.2"> - <or> - <equals arg1="${java.specification.version}" arg2="1.2"/> - <equals arg1="${java.specification.version}" arg2="1.3"/> - </or> - </condition> - <property name="javac.target.version" value="1.4"/> - <condition property="javac.target.warn" value="true"> - <not> - <equals arg1="${javac.target.version}" arg2="1.2"/> - </not> - </condition> - <condition property="src.java.missing" value="true"> - <not> - <available file="${src.dir}/java"/> - </not> - </condition> - - <!-- Not all JVMs support the sun.arch.data.model property. Default to 32-bit. --> - <property name="sun.arch.data.model" value="32"/> - <condition property="bits-mismatch" value="true"> - <not> - <equals arg1="${sun.arch.data.model}" arg2="${bits}"/> - </not> - </condition> - - <condition property="pre-release.disable" value="true"> - <not> - <equals arg1="${javac.target.version}" arg2="1.2"/> - </not> - </condition> - - <!-- Generate the release-file base. --> - <property name="releasefile" value="wrapper-${dist.os}-${dist.arch}-${bits}-${version}"/> - </target> - <target name="init-windows" depends="init-setup" if="is.windows"> - <!-- Decide on the type of script to generate. --> - <property name="is.shell.bat" value="true"/> - - <!-- Decide on binary names --> - <property name="wrapper.bin.name" value="wrapper.exe"/> - <property name="wrapper.bin.long.name" value="wrapper-${dist.os}-${dist.arch}-${bits}.exe"/> - - <!-- Decide on library names --> - <property name="wrapper.lib.name" value="wrapper.dll"/> - <property name="wrapper.lib.long.name" value="wrapper-${dist.os}-${dist.arch}-${bits}.dll"/> - - <!-- Decide on the MSVC version being used. --> - <condition property="msvc.home" value="${msvc.home.v8_32_c}"> - <and> - <equals arg1="${bits}" arg2="32"/> - <available file="${msvc.home.v8_32_c}"/> - </and> - </condition> - <condition property="msvc.home" value="${msvc.home.v8_32_d}"> - <and> - <equals arg1="${bits}" arg2="32"/> - <available file="${msvc.home.v8_32_d}"/> - </and> - </condition> - <condition property="msvc.home" value="${msvc.home.v8_64_c}"> - <and> - <equals arg1="${bits}" arg2="64"/> - <available file="${msvc.home.v8_64_c}"/> - </and> - </condition> - <condition property="msvc.home" value="${msvc.home.v8_64_d}"> - <and> - <equals arg1="${bits}" arg2="64"/> - <available file="${msvc.home.v8_64_d}"/> - </and> - </condition> - <property name="msvc.home" value="${msvc.home.98}"/> - - <condition property="msvc.use.vcbuild" value="true"> - <available file="${msvc.home}\VC\vcpackages\vcbuild.exe"/> - </condition> - <condition property="msvc.vcvars" value="${msvc.home}\VC\BIN\amd64\VCVARSamd64.BAT"> - <or> - <equals arg1="${msvc.home}" arg2="${msvc.home.v8_64_c}"/> - <equals arg1="${msvc.home}" arg2="${msvc.home.v8_64_d}"/> - </or> - </condition> - <property name="msvc.vcvars" value="${msvc.home}\VC98\BIN\VCVARS32.BAT"/> - <condition property="msvc.use.make" value="true"> - <and> - <not><isset property="msvc.use.vcbuild"/></not> - <available file="${msvc.vcvars}"/> - </and> - </condition> - <condition property="msvc.missing" value="true"> - <not> - <or> - <isset property="msvc.use.vcbuild"/> - <isset property="msvc.use.make"/> - </or> - </not> - </condition> - - </target> - <target name="init-unix" depends="init-setup" if="is.unix"> - <!-- Decide on the type of script to generate. --> - <property name="is.shell.sh" value="true"/> - - <!-- Decide on binary names --> - <property name="wrapper.bin.name" value="wrapper"/> - <property name="wrapper.bin.long.name" value="wrapper-${dist.os}-${dist.arch}-${bits}"/> - - <!-- Decide on library names --> - <condition property="wrapper.lib.extension" value="sl"> - <isset property="is.hpux"/> - </condition> - <condition property="wrapper.lib.extension" value="jnilib"> - <isset property="is.macosx"/> - </condition> - <property name="wrapper.lib.extension" value="so"/> - <property name="wrapper.lib.name" value="libwrapper.${wrapper.lib.extension}"/> - <property name="wrapper.lib.long.name" value="libwrapper-${dist.os}-${dist.arch}-${bits}.${wrapper.lib.extension}"/> - - <!-- Decide on the tool used to run make --> - <condition property="make.name" value="gmake"> - <or> - <isset property="is.aix"/> - <and> <!-- 32-bit HPUX uses gmake, 64-bit uses make. --> - <isset property="is.hpux"/> - <equals arg1="${bits}" arg2="32"/> - </and> - <isset property="is.osf1"/> - <isset property="is.freebsd"/> - <isset property="is.irix"/> - </or> - </condition> - <property name="make.name" value="make"/> - - <!-- Generate the makefile name --> - <property name="makefile.name" value="Makefile-${dist.os}-${dist.arch}-${bits}"/> - - <condition property="isUnixMakefileMissing" value="true"> - <not> - <available file="${src.dir}/c/${makefile.name}"/> - </not> - </condition> - </target> - <target name="init-bits-warning" unless="bits"> - <echo message="**********************************************************************"/> - <echo message="The "bits" system property has not been set."/> - <echo message="Most likely you are running a copy of Ant located on your path."/> - <echo message="Please use one of the build scripts in the Wrapper distribution."/> - <echo message="**********************************************************************"/> - <fail message="The "bits" system property has not been set."/> - </target> - <target name="init-bits-mismatch-warning" if="bits-mismatch"> - <echo message="**********************************************************************"/> - <echo message="A ${bits}-bit build was requested, but this is a ${sun.arch.data.model}-bit JVM."/> - <echo message="**********************************************************************"/> - <fail message="The "bits" system property does not match that of the JVM."/> - </target> - - <!-- =================================================================== --> - <!-- Initialize build. --> - <!-- =================================================================== --> - <target name="init" - depends="init-windows, init-unix, init-bits-warning, init-bits-mismatch-warning"> - - <tstamp/> - <filter token="version" value="${version}" /> - <filter token="bits" value="${bits}" /> - <filter token="dist.arch" value="${dist.arch}" /> - <filter token="dist.os" value="${dist.os}" /> - <filter token="build.date" value="${DSTAMP}" /> - <filter token="build.time" value="${TSTAMP}" /> - - <filter token="app.name" value="${app.name}" /> - <filter token="app.long.name" value="${app.long.name}" /> - <filter token="app.description" value="${app.desc}" /> - - <property name="intermmarker" value="pre-release"/> - </target> - <target name="init:msg" depends="init"> - <echo message="**********************************************************************"/> - <echo message="About to build a ${bits}-bit version of the Java Service Wrapper ${version}."/> - <echo message="The OS Name is "${dist.os}", resolved from "${os.name}"."/> - <echo message="The Architecture is "${dist.arch}", resolved from "${os.arch}"."/> - <echo message="The distribution name will be: ${releasefile}"/> - <echo message="**********************************************************************"/> - </target> - <target name="init:java-missing" depends="init" if="src.java.missing"> - <echo message="**********************************************************************"/> - <echo message="The src/java directory could not be found. Most likely this is a"/> - <echo message="pre-release distribution. Please run "build${bits} release" to build"/> - <echo message="the full release."/> - <echo message="**********************************************************************"/> - <fail message="The src/java directory could not be found."/> - </target> - - <!-- =================================================================== --> - <!-- Converts natively encoded src files to ascii --> - <!-- =================================================================== --> - <target name="convert" depends="init:msg, init:java-missing"> - <native2ascii src="${src.dir}/java" - dest="${src.dir}/java" - encoding="JISAutoDetect" - ext="native" - includes="**/*.native" /> - </target> - - <!-- =================================================================== --> - <!-- Updates version info and build time in source code --> - <!-- =================================================================== --> - <target name="update-info" depends="convert"> - <!-- Delete the pre-release marker file as early as possible. --> - <delete file="${build.dir}/${intermmarker}"/> - - <!-- copy server info source, using filtering to update version and build time --> - <copy file="${src.dir}/java/org/tanukisoftware/wrapper/WrapperInfo.java.in" - tofile="${src.dir}/java/org/tanukisoftware/wrapper/WrapperInfo.java" - filtering="on" overwrite="true"/> - <copy file="${src.dir}/c/wrapperinfo.c.in" - tofile="${src.dir}/c/wrapperinfo.c" - filtering="on" overwrite="true"/> - </target> - - <!-- =================================================================== --> - <!-- Compiles the source code --> - <!-- =================================================================== --> - <target name="compile-java-warn" depend... [truncated message content] |