From 1a205c581e0f7f5c3ecc4a5184f0ed2ffeb6b637 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Wed, 17 Dec 2003 17:48:05 +0000 Subject: [PATCH] doc common datatypes of the .net tasks git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275803 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/OptionalTasks/dotnet.html | 102 +++++++++++++++++++++++++- 1 file changed, 100 insertions(+), 2 deletions(-) diff --git a/docs/manual/OptionalTasks/dotnet.html b/docs/manual/OptionalTasks/dotnet.html index 3d549f3af..8a021b0d5 100644 --- a/docs/manual/OptionalTasks/dotnet.html +++ b/docs/manual/OptionalTasks/dotnet.html @@ -64,7 +64,7 @@ can, however, be done if absolutely necessary. -

Task List

+

Task List

@@ -104,9 +104,107 @@ can, however, be done if absolutely necessary.
+
+

Common .NET Datatypes

+ +There are some datatypes that are common to the core compiler classes: +csc, vbc and jsharpc + +

Resource

+ +This is a resource that is included in the build. Ant uses this for +dependency checking -if resources included this way have changed, the +executable or library will be rebuilt. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
Filethe resource to includeYes
namethe name of the resource. + Optional unless the resource is + marked as public or privateNo
embedflag to control whether the resource + is embedded in the assembly, or just linked to itNo -default is true
publicVB only: flag to control if a resource should be + public or private. Set to true for public, false for private + and leave undefined for for neither. No
+ +

Examples
+ +
+<resource file="app.ico" name="icon" />
+<resource file="splash.jpg"/>
+<resource name="splash" file="splash.jpg" public="false"/>
+
+ +

Define

+ +This is a definition; in .NET these can either be defined or undefined, +unlike C++ #defines, which can be either undefined or arbitrary text. +The Ant compilation tasks can unconditionally add definitions, or +conditionally set a compile-time definition if an ant property is +defined or not. +

+ +Dependency Logic: the tasks are not (yet) clever enough to remember what +the last definitions were and trigger a rebuild when they change. Clean +build the code when the defines are likely to be different. +

+ + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
namethe name of the definitionYes
ifname of a ant property to test for; + the definition is only set if this property is defined.No
unlessname of a ant property to test for; + the definition is only set if this property is undefined.No
+ +

Examples
+ +
+<define name="unsafe" />
+<define name="debug" if="build.debug"/>
+<define name="dotnet" unless="build.mono"/>
+

-

Change Log

+

Change Log

Ant1.6

This revision goes along with NET 1.1, though there is no reason why