I'm going to get the docs together, someone else can
figure out the .bat thing. And let me know when you
.bat people have figured it out :) and I'll build
the TDK.
jvz.
On Mon, 28 Aug 2000, Will Stranathan wrote:
> I propose we change the structure of the newapp.bat file. The problem is
> that only Windows NT with command extensions turned on allows IF() ELSE()
> constructs. A potential patch follows:
>
> Index: newapp.bat
> ===================================================================
> RCS file: /products/cvs/turbine/tdk/bin/newapp.bat,v
> retrieving revision 1.1.1.1
> diff -c -r1.1.1.1 newapp.bat
> *** newapp.bat 2000/07/27 01:48:14 1.1.1.1
> --- newapp.bat 2000/08/28 21:50:43
> ***************
> *** 1,50 ****
> SETLOCAL
>
> SET NEWAPP=%1
> ! SET TDKHOME=F:\program\tdk
>
> REM -------------------------------------------------------------------
>
> SET ANT=%TDKHOME%\lib\ant.jar
> SET ANTXML=%TDKHOME%\lib\xml.jar
>
> ! if .==.%JAVA_HOME% (
> ! echo "ERROR: JAVA_HOME not found in your environment."
> ! echo "Please, set the JAVA_HOME variable in your environment to match
> the"
> ! echo "location of the Java Virtual Machine you want to use."
> ! goto end
> ! )
> !
> ! if .==.%TDKHOME% (
> ! echo "ERROR: TDKHOME not found in your environment."
> ! echo "Please, set the TDKHOME variable in your environment to match
> the"
> ! echo "location of the directory where you installed the TDK."
> ! goto end
> ! )
> !
> ! if .==.%NEWAPP% (
> ! echo "ERROR: Need to know the fullpath and application you want to
> create."
> ! echo "Example: newapp.bat C:\home\user\myapp"
> ! goto end
> ! )
> !
> !
> ! if EXIST %JAVA_HOME%\lib\tools.jar (
> ! SET CLASSPATH=%JAVA_HOME%\lib\tools.jar
> ! )
> !
> ! if .==.%JIKES% (
> ! set JAVAC=classic
> ! ) ELSE (
> ! set JAVAC=jikes
> ! )
>
> SET CP=%CLASSPATH%;%ANT%;%ANTXML%
> ! echo "Using Class Path of :" %CP%
> ! set BUILDFILE=%TDKHOME%\bin\newapp.xml
>
> %JAVA_HOME%\bin\java -classpath %CP% -DJAVAC=%JAVAC%
> org.apache.tools.ant.Main -buildfile %BUILDFILE% -Dnewapp=%NEWAPP%
> ! :End
>
> ENDLOCAL
>
> --- 1,45 ----
> + @ECHO OFF
> SETLOCAL
>
> SET NEWAPP=%1
> ! SET TDKHOME=d:\src\tdk
>
> REM -------------------------------------------------------------------
>
> SET ANT=%TDKHOME%\lib\ant.jar
> SET ANTXML=%TDKHOME%\lib\xml.jar
>
> ! IF NOT %JAVA_HOME%.==. GOTO JHOMESET
> ! ECHO ERROR: JAVA_HOME not found in your environment.
> ! ECHO Please, set the JAVA_HOME variable in your environment to match the
> ! ECHO location of the Java Virtual Machine you want to use.
> ! GOTO END
> !
> ! :JHOMESET
> ! IF NOT %TDKHOME%.==. GOTO TDKSET
> ! ECHO ERROR: TDKHOME not found in your environment.
> ! ECHO Please, set the TDKHOME variable in your environment to match the
> ! ECHO location of the directory where you installed the TDK.
> ! GOTO END
> !
> ! :TDKSET
> ! IF NOT %NEWAPP%.==. GOTO NASET
> ! ECHO ERROR: Need to know the fullpath and application you want to create.
> ! ECHO Example: newapp.bat C:\home\user\myapp
> ! GOTO END
>
> + :NASET
> + IF EXIST %JAVA_HOME%\lib\tools.jar SET CLASSPATH=%JAVA_HOME%\lib\tools.jar
> +
> + IF %JIKES%.==. SET JAVAC=classic
> + IF NOT %JIKES%.==. SET JAVAC=jikes
> +
> SET CP=%CLASSPATH%;%ANT%;%ANTXML%
> ! ECHO Using Class Path of : %CP%
> ! SET BUILDFILE=%TDKHOME%\bin\newapp.xml
>
> %JAVA_HOME%\bin\java -classpath %CP% -DJAVAC=%JAVAC%
> org.apache.tools.ant.Main -buildfile %BUILDFILE% -Dnewapp=%NEWAPP%
> ! :END
>
> ENDLOCAL
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
>
--
Jason van Zyl
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]