Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add an "installer" to integrate the documentation in VS .NET Help
- Update NAnt .build files to make them more "similar" SVN: trunk@1709
- Loading branch information
Pierre Henri Kuate
committed
Sep 24, 2005
1 parent
eedf864
commit c693b8c
Showing
6 changed files
with
79 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@echo off | ||
echo ------------------------------------------------------ | ||
echo Install the documentation in Visual Studio .NET help | ||
echo Make sure that NAnt and H2Reg are correctly installed! | ||
echo ------------------------------------------------------ | ||
echo ... | ||
NAnt install | ||
echo on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" ?> | ||
<project | ||
name="NHibernate.Documentation.VSNET.Installer" | ||
default="install" | ||
xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd" | ||
> | ||
<!-- | ||
Find the path to the H2Reg executable. If H2Reg can not be found, you can: | ||
- Modify .bat files to specify the path in the command line using -D:h2reg.path=<path> | ||
- Add the path in PATH variable | ||
- Copy H2Reg in this directory | ||
--> | ||
<ifnot test="${property::exists('h2reg.path')}"> | ||
<readregistry property="h2reg.path" key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\H2Refxx_is1\Inno Setup: App Path" | ||
hive="LocalMachine" failonerror="false" /> | ||
</ifnot> | ||
|
||
<target name="install" description="Install the documentation in Visual Studio .NET help."> | ||
<property name="h2reg.arg" value="-r" overwrite="false" /> | ||
<call target="run-h2reg" /> | ||
</target> | ||
|
||
<target name="uninstall" description="Uninstall the documentation from Visual Studio .NET help."> | ||
<property name="h2reg.arg" value="-u" overwrite="false" /> | ||
<call target="run-h2reg" /> | ||
</target> | ||
|
||
<target name="run-h2reg" description="Run the command."> | ||
<if test="${property::exists('h2reg.path')}"> | ||
<exec program="H2Reg.exe" commandline="${h2reg.arg} CmdFile=${directory::get-current-directory()}\NHibernateCollection.ini" basedir="${h2reg.path}" verbose="true" /> | ||
</if> | ||
<!-- Try without the path; it might be in this directory or in the PATH --> | ||
<ifnot test="${property::exists('h2reg.path')}"> | ||
<exec program="H2Reg.exe" commandline="${h2reg.arg} CmdFile=${directory::get-current-directory()}\NHibernateCollection.ini" verbose="true" /> | ||
</ifnot> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@echo off | ||
echo -------------------------------------------------------- | ||
echo Uninstall the documentation from Visual Studio .NET help | ||
echo Make sure that NAnt and H2Reg are correctly installed! | ||
echo -------------------------------------------------------- | ||
echo ... | ||
NAnt uninstall | ||
echo on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
NHibernate.Test.Performance-1.1.csproj.user | ||
bin | ||
obj | ||
obj | ||
.#* | ||
*.user | ||
*.xsx |