anchor.diff:  
   You can add your own properties to a task. To add a property named `myProperty`, set `ext.myProperty` to an initial value. From that point on, the property can be read and set like a predefined task property.
   
  -=== Example: Adding extra properties to a task
  -
  -[source.multi-language-sample,groovy]
  -.build.gradle
  -----
  -include::{samplesPath}/userguide/tutorial/extraProperties/build.gradle[tag=taskProperties]
  -----
  +.Adding extra properties to a task
  +====
  +include::sample[dir="userguide/tutorial/extraProperties", files="build.gradle[tag=taskProperties]"]
   
   .Output of **`gradle -q printTaskProperties`**
   ----
   > gradle -q printTaskProperties
   include::{samplesPath}/userguide/tutorial/extraProperties/extraTaskProperties.out[]
   ----
  +====
   
   Extra properties aren't limited to tasks. You can read more about them in <<writing_build_scripts.adoc#sec:extra_properties,Extra properties>>.
   
  
positive.code: 
  To try this out, create the following build script named `build.gradle`.
  
  === Example: Your first build script
  
  [source.multi-language-sample,groovy]
  .build.gradle
  ----
  include::{samplesPath}/userguide/tutorial/hello/build.gradle[]
  ----
  
  In a command-line shell, move to the containing directory and execute the build script with `gradle -q hello`:
  
  
negative.code: 
  Ant tasks are first-class citizens in Gradle. Gradle provides excellent integration for Ant tasks by simply relying on Groovy. Groovy is shipped with the fantastic `AntBuilder`. Using Ant tasks from Gradle is as convenient and more powerful than using Ant tasks from a `build.xml` file. From the example below, you can learn how to execute Ant tasks and how to access Ant properties:
  
  .Using AntBuilder to execute ant.loadfile target
  ====
  include::sample[dir="userguide/tutorial/antLoadfile", files="build.gradle[]"]
  
  .Output of **`gradle -q loadfile`**
  ----
  > gradle -q loadfile
  include::{samplesPath}/userguide/tutorial/antLoadfile/antLoadfile.out[]
  ----
  ====
  
  There is lots more you can do with Ant in your build scripts. You can find out more in <<ant.adoc#ant,Ant>>.
  
  