From: <pa...@us...> - 2010-12-05 01:54:45
|
Revision: 5293 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5293&view=rev Author: patearl Date: 2010-12-05 01:54:39 +0000 (Sun, 05 Dec 2010) Log Message: ----------- Build menu batch file to help newcomers with common tasks. Added Paths: ----------- trunk/nhibernate/ShowBuildMenu.bat Added: trunk/nhibernate/ShowBuildMenu.bat =================================================================== --- trunk/nhibernate/ShowBuildMenu.bat (rev 0) +++ trunk/nhibernate/ShowBuildMenu.bat 2010-12-05 01:54:39 UTC (rev 5293) @@ -0,0 +1,89 @@ +@echo off +set NANT=%~dp0\Tools\nant\bin\NAnt.exe -t:net-3.5 + +echo --- SETUP --- +echo A. Set up for Visual Studio (creates AssemblyInfo.cs files). +echo. +echo --- TESTING --- +echo B. Learn how to set up database and connection string for testing. +echo C. How to increase the window scroll/size so you can see more test output. +echo D. Build and run all tests. +echo. +echo --- BUILD --- +echo E. Build NHibernate (Debug) +echo F. Build NHibernate (Release) +echo G. Build Release Package (Also runs tests and creates documentation) +echo. +choice /C abcdefg + +if errorlevel 255 goto end +if errorlevel 7 goto build-release-package +if errorlevel 6 goto build-release +if errorlevel 5 goto build-debug +if errorlevel 4 goto build-test +if errorlevel 3 goto help-larger-window +if errorlevel 2 goto help-test-setup +if errorlevel 1 goto build-visual-studio +if errorlevel 0 goto end + +:help-test-setup +echo. +echo 1. Install SQL Server 2008 (or use the database included with VS). +echo 2. Edit connection settings in build-common\nhibernate-properties.xml +echo. +echo 3. If you want to run NUnit tests in Visual Studio directly, +echo edit src\NHibernate.Test\App.config and change this property: +echo connection.connection_string +echo Note that you will need a third party tool to run tests in VS. +echo. +echo You will also need to create a database called "nhibernate" +echo if you just run the tests directly from VS. +echo. +goto end + +:help-larger-window +echo. +echo 1. Right click on the title bar of this window. +echo 2. Select "Properties". +echo 3. Select the "Layout" tab. +echo 4. Set the following options. +echo Screen Buffer Size +echo Width: 160 +echo Height: 9999 +echo Window Size +echo Width: 160 +echo Height: 50 +echo. +goto end + +:build-visual-studio +%NANT% visual-studio +goto end + +:build-debug +%NANT% clean build +echo. +echo Assuming the build succeeded, your results will be in the build folder. +echo. +goto end + +:build-release +%NANT% -D:project.config=release clean build +echo. +echo Assuming the build succeeded, your results will be in the build folder. +echo. +goto end + +:build-release-package +%NANT% -D:project.config=release clean package +echo. +echo Assuming the build succeeded, your results will be in the build folder. +echo. +goto end + +:build-test +%NANT% test +goto end + +:end +pause This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pa...@us...> - 2010-12-05 20:25:26
|
Revision: 5295 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5295&view=rev Author: patearl Date: 2010-12-05 20:25:20 +0000 (Sun, 05 Dec 2010) Log Message: ----------- ShowBuildMenu.bat now handles paths with spaces and running from a different folder. Modified Paths: -------------- trunk/nhibernate/ShowBuildMenu.bat Modified: trunk/nhibernate/ShowBuildMenu.bat =================================================================== --- trunk/nhibernate/ShowBuildMenu.bat 2010-12-05 08:35:46 UTC (rev 5294) +++ trunk/nhibernate/ShowBuildMenu.bat 2010-12-05 20:25:20 UTC (rev 5295) @@ -1,6 +1,9 @@ @echo off -set NANT=%~dp0\Tools\nant\bin\NAnt.exe -t:net-3.5 +set OLD_CD=%CD% +cd %~dp0 +set NANT=Tools\nant\bin\NAnt.exe -t:net-3.5 + echo --- SETUP --- echo A. Set up for Visual Studio (creates AssemblyInfo.cs files). echo. @@ -86,4 +89,5 @@ goto end :end +cd %OLD_CD% pause This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pa...@us...> - 2010-12-25 00:36:04
|
Revision: 5336 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5336&view=rev Author: patearl Date: 2010-12-25 00:35:58 +0000 (Sat, 25 Dec 2010) Log Message: ----------- ShowBuildMenu.bat: Use set /p if choice is not available. This is needed for Windows XP. Modified Paths: -------------- trunk/nhibernate/ShowBuildMenu.bat Modified: trunk/nhibernate/ShowBuildMenu.bat =================================================================== --- trunk/nhibernate/ShowBuildMenu.bat 2010-12-24 20:24:43 UTC (rev 5335) +++ trunk/nhibernate/ShowBuildMenu.bat 2010-12-25 00:35:58 UTC (rev 5336) @@ -17,8 +17,13 @@ echo F. Build NHibernate (Release) echo G. Build Release Package (Also runs tests and creates documentation) echo. -choice /C abcdefg +if exist %SYSTEMROOT%\System32\choice.exe ( goto prompt-choice ) +goto prompt-set + +:prompt-choice +choice /C:abcdefg + if errorlevel 255 goto end if errorlevel 7 goto build-release-package if errorlevel 6 goto build-release @@ -29,6 +34,18 @@ if errorlevel 1 goto build-visual-studio if errorlevel 0 goto end +:prompt-set +set /p OPT=[A, B, C, D, E, F, G]? + +if /I "%OPT%"=="A" goto build-visual-studio +if /I "%OPT%"=="B" goto help-test-setup +if /I "%OPT%"=="C" goto help-larger-window +if /I "%OPT%"=="D" goto build-test +if /I "%OPT%"=="E" goto build-debug +if /I "%OPT%"=="F" goto build-release +if /I "%OPT%"=="G" goto build-release-package +goto prompt-set + :help-test-setup echo. echo 1. Install SQL Server 2008 (or use the database included with VS). This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-04 19:53:59
|
Revision: 5417 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5417&view=rev Author: fabiomaulo Date: 2011-03-04 19:53:53 +0000 (Fri, 04 Mar 2011) Log Message: ----------- Minor Modified Paths: -------------- trunk/nhibernate/ShowBuildMenu.bat Modified: trunk/nhibernate/ShowBuildMenu.bat =================================================================== --- trunk/nhibernate/ShowBuildMenu.bat 2011-03-04 16:51:18 UTC (rev 5416) +++ trunk/nhibernate/ShowBuildMenu.bat 2011-03-04 19:53:53 UTC (rev 5417) @@ -97,7 +97,7 @@ goto end :build-release -%NANT% -D:project.config=release clean build +%NANT% -D:project.config=release clean release echo. echo Assuming the build succeeded, your results will be in the build folder. echo. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pa...@us...> - 2011-04-14 21:27:22
|
Revision: 5704 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5704&view=rev Author: patearl Date: 2011-04-14 21:27:16 +0000 (Thu, 14 Apr 2011) Log Message: ----------- Improved build menu for grammar generation. Modified Paths: -------------- trunk/nhibernate/ShowBuildMenu.bat Modified: trunk/nhibernate/ShowBuildMenu.bat =================================================================== --- trunk/nhibernate/ShowBuildMenu.bat 2011-04-14 19:50:38 UTC (rev 5703) +++ trunk/nhibernate/ShowBuildMenu.bat 2011-04-14 21:27:16 UTC (rev 5704) @@ -117,64 +117,74 @@ :grammar echo. echo --- GRAMMAR --- -echo A. Regenerate HqlLexer.cs and HqlParser.cs from Hql.g. -echo B. Regenerate HqlSqlWalker.cs from HqlSqlWalker.g. -echo C. Regenerate SqlGenerator.cs from SqlGenerator.g. -echo D. Regenerate Hql.g in debug mode. -echo E. Regenerate HqlSqlWalker.g in debug mode. -echo F. Regenerate SqlGenerator.g in debug mode. -echo G. Quick instructions on using debug mode. +echo A. Regenerate all grammars. +echo Hql.g to HqlLexer.cs +echo Hql.g to HqlParser.cs +echo HqlSqlWalker.g to HqlSqlWalker.cs +echo SqlGenerator.g to SqlGenerator.cs +echo B. Regenerate all grammars, with Hql.g in debug mode. +echo C. Regenerate all grammars, with HqlSqlWalker.g in debug mode. +echo D. Regenerate all grammars, with SqlGenerator.g in debug mode. +echo E. Quick instructions on using debug mode. echo. if exist %SYSTEMROOT%\System32\choice.exe ( goto grammar-prompt-choice ) goto grammar-prompt-set :grammar-prompt-choice -choice /C:abcdefg +choice /C:abcde if errorlevel 255 goto end -if errorlevel 7 goto antlr-debug -if errorlevel 6 goto antlr-sqlgenerator-debug -if errorlevel 5 goto antlr-hqlsqlwalker-debug -if errorlevel 4 goto antlr-hql-debug -if errorlevel 3 goto antlr-sqlgenerator -if errorlevel 2 goto antlr-hqlsqlwalker -if errorlevel 1 goto antlr-hql +if errorlevel 5 goto antlr-debug +if errorlevel 4 goto antlr-sqlgenerator-debug +if errorlevel 3 goto antlr-hqlsqlwalker-debug +if errorlevel 2 goto antlr-hql-debug +if errorlevel 1 goto antlr-all if errorlevel 0 goto end :grammar-prompt-set -set /p OPT=[A, B, C, D, E, F, G]? +set /p OPT=[A, B, C, D, E]? -if /I "%OPT%"=="A" goto antlr-hql -if /I "%OPT%"=="B" goto antlr-hqlsqlwalker -if /I "%OPT%"=="C" goto antlr-sqlgenerator -if /I "%OPT%"=="D" goto antlr-hql-debug -if /I "%OPT%"=="E" goto antlr-hqlsqlwalker-debug -if /I "%OPT%"=="F" goto antlr-sqlgenerator -if /I "%OPT%"=="G" goto antlr-debug +if /I "%OPT%"=="A" goto antlr-all +if /I "%OPT%"=="B" goto antlr-hql-debug +if /I "%OPT%"=="C" goto antlr-hqlsqlwalker-debug +if /I "%OPT%"=="D" goto antlr-sqlgenerator-debug +if /I "%OPT%"=="E" goto antlr-debug goto grammar-prompt-set -:antlr-hql +:antlr-all +echo *** Regenerating from Hql.g call src\NHibernate\Hql\Ast\ANTLR\AntlrHql.bat -goto end - -:antlr-hqlsqlwalker +echo *** Regenerating from HqlSqlWalker.g call src\NHibernate\Hql\Ast\ANTLR\AntlrHqlSqlWalker.bat -goto end - -:antlr-sqlgenerator +echo *** Regenerating from SqlGenerator.g call src\NHibernate\Hql\Ast\ANTLR\AntlrSqlGenerator.bat goto end :antlr-hql-debug +echo *** Regenerating from Hql.g (Debug Enabled) call src\NHibernate\Hql\Ast\ANTLR\AntlrHqlDebug.bat +echo *** Regenerating from HqlSqlWalker.g +call src\NHibernate\Hql\Ast\ANTLR\AntlrHqlSqlWalker.bat +echo *** Regenerating from SqlGenerator.g +call src\NHibernate\Hql\Ast\ANTLR\AntlrSqlGenerator.bat goto end :antlr-hqlsqlwalker-debug +echo *** Regenerating from Hql.g +call src\NHibernate\Hql\Ast\ANTLR\AntlrHql.bat +echo *** Regenerating from HqlSqlWalker.g (Debug Enabled) call src\NHibernate\Hql\Ast\ANTLR\AntlrHqlSqlWalkerDebug.bat +echo *** Regenerating from SqlGenerator.g +call src\NHibernate\Hql\Ast\ANTLR\AntlrSqlGenerator.bat goto end :antlr-sqlgenerator-debug +echo *** Regenerating from Hql.g +call src\NHibernate\Hql\Ast\ANTLR\AntlrHql.bat +echo *** Regenerating from HqlSqlWalker.g +call src\NHibernate\Hql\Ast\ANTLR\AntlrHqlSqlWalker.bat +echo *** Regenerating from SqlGenerator.g (Debug Enabled) call src\NHibernate\Hql\Ast\ANTLR\AntlrSqlGeneratorDebug.bat goto end @@ -184,8 +194,9 @@ echo The one you want to debug must be the first grammar parsed. echo 2. Run the unit test. It will appear to stall. echo 3. Download and run AntlrWorks (java -jar AntlrWorks.jar). -echo 4. Choose "Debug Remote" and accept the default port. -echo 5. You should now be connected and able to step through your grammar. +echo 4. Open the grammar you intend to debug in AntlrWorks. +echo 5. Choose "Debug Remote" and accept the default port. +echo 6. You should now be connected and able to step through your grammar. goto end :teamcity-menu This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |