Build System for OpenPetra: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
== NAnt == | == NAnt == | ||
The build system is done with NAnt. Some functions are written directly in C# in the build files, but we also have plugins in | The build system is done with NAnt. Some functions are written directly in C# in the build files, but we also have plugins in inc/nanttasks. | ||
== Plugins Ict.Tools.NAntTasks.dll == | == Plugins Ict.Tools.NAntTasks.dll == | ||
Line 6: | Line 6: | ||
* Mysql plugin: run sql statements against MySQL | * Mysql plugin: run sql statements against MySQL | ||
* DotNetExec plugin for running other Petra Tools | * DotNetExec plugin for running other Petra Tools | ||
* CsDepend plugin: Calculate the dependencies between the C# files and generate nant files | |||
== Configuration files == | == Configuration files == | ||
You could add a configuration file called ''OpenPetra.build.config'' parallel to the OpenPetra.build file for setting properties, which differ to the standard value. All possible properties could be seen in ''inc/nant/OpenPetra.common.xml''. | |||
For example using ''postgresql'' instead of ''SQLite'', you would use: | |||
<code><?xml version="1.0"?> | |||
<project name="OpenPetra" default="help"> | |||
<property name="DBMS.Type" value="postgresql"/> | |||
<property name="DBMS.Password" value="hm5MMxmjthwalVK2PXwN"/> | |||
</project> | |||
</code> | |||
Most of the time you need this file for adding database information or using programs, which are not installed in the typical location or differ in the version. |
Revision as of 16:19, 28 February 2011
NAnt
The build system is done with NAnt. Some functions are written directly in C# in the build files, but we also have plugins in inc/nanttasks.
Plugins Ict.Tools.NAntTasks.dll
- Postgresql plugin: run sql statements against PostgreSQL
- Mysql plugin: run sql statements against MySQL
- DotNetExec plugin for running other Petra Tools
- CsDepend plugin: Calculate the dependencies between the C# files and generate nant files
Configuration files
You could add a configuration file called OpenPetra.build.config parallel to the OpenPetra.build file for setting properties, which differ to the standard value. All possible properties could be seen in inc/nant/OpenPetra.common.xml.
For example using postgresql instead of SQLite, you would use:
<?xml version="1.0"?>
<project name="OpenPetra" default="help">
<property name="DBMS.Type" value="postgresql"/>
<property name="DBMS.Password" value="hm5MMxmjthwalVK2PXwN"/>
</project>
Most of the time you need this file for adding database information or using programs, which are not installed in the typical location or differ in the version.