Ant Tutor.
   Jaiyalas
Ant
buildfile
is   XML
• one Project
has   • at least one   (default)   Target
      •   tasks
buildfile (XML)




                      =
                    Project

     Target         Target         Target


Task Task Task     Task Task      Task Task Task
Project
Setup Basic   Properties
               of
        Certain Project


              but not necessary
•name
•default                       as Properties

•basedir

• description                   as Element


           but not necessary
e.g.




       <project name="myPro" default="build" basedir=".">
         <description>This is my first project</description>
         ...
       </project>
Target
has   Attributes
•name
• depends
• if
              }   Condition
• unless
• description
Depends
   and

Condition
e.g.



       2   <target name=”A” />
       1   <target name=”B” />
       3   <target name=”C” depends=”B, A” />

       1   <target name=”A” />
       2   <target name=”B” depends=”A”/>
       3   <target name=”C” depends=”B, A” />
e.g.

       <condition property="myTarget.run">
         <and>
           <available file="foo.txt"/>
           <available file="bar.txt"/>
         </and>
       </condition>



                            =
if( fileExist(foo.txt) && fileExist(bar.txt))
    setProperty(myTarget.run)
e.g.



<target name="myTarget" depends="myTarget.check" if="myTarget.run">
  <echo>Files foo.txt and bar.txt are present.</echo>
</target>

<target name="myTarget.check">
  <condition property="myTarget.run">
     <and>
       <available file="foo.txt"/>
       <available file="bar.txt"/>
     </and>
  </condition>
</target>
Task
Function
dirname                  unjar
         property
echo            fail   javadoc
       javac java jar
checksum delete       move
 copy mkdir chmod    manifest
e.g.




       <property name="betadir" location="${basedir}/beta"/>
       <property name=”alphadir” location=”${betadir}/alpha”>
appendix




           Scala
e.g.
       <property name="scala.dir" location="scala-2.8.0.r18549-b20090823020847"/>
       <property name="scala.lib.dir" location="${scala.dir}/lib"/>

       <path id="project.classpath">
         <pathelement location="${scala.lib.dir}/scala-library.jar"/>
       </path>

       <taskdef resource="scala/tools/ant/antlib.xml">
          <classpath>
             <pathelement location="${scala.lib.dir}/scala-compiler.jar"/>
             <pathelement location="${scala.lib.dir}/scala-library.jar"/>
          </classpath>
       </taskdef>


       <target name="compile">
          <mkdir dir="${cls.build.dir}"/>
          <fsc srcdir="${src.dir}" destdir="${cls.build.dir}" classpathref="project.classpath"
               force="never" deprecation="yes" unchecked="yes">
             <include name="**/*.scala"/>
          </fsc>
       </target>

More Related Content

KEY
Backbone.js Simple Tutorial
PPTX
Resource Routing in ExpressionEngine
PPTX
Jquery introduction
ZIP
Learning the basics of the Drupal API
PDF
Angular Directives from Scratch
KEY
Development Approach
ODP
Drupal Best Practices
PPT
Drupal Javascript for developers
Backbone.js Simple Tutorial
Resource Routing in ExpressionEngine
Jquery introduction
Learning the basics of the Drupal API
Angular Directives from Scratch
Development Approach
Drupal Best Practices
Drupal Javascript for developers

What's hot (20)

PPTX
J query1
PPTX
AngulrJS Overview
PPT
J query
PPT
Render API - Pavel Makhrinsky
PPTX
jQuery from the very beginning
PDF
Jooctrine - Doctrine ORM in Joomla!
PPTX
Let's write secure Drupal code! - DrupalCamp Oslo, 2018
PPT
JQuery introduction
KEY
What's new in Django 1.2?
PPTX
Let's write secure Drupal code! - Drupal Camp Poland 2019
ZIP
Drupal Development (Part 2)
PDF
Filtering data with D2W
PDF
Drupal 8: Forms
PPTX
AngularJS - $http & $resource Services
PPTX
jQuery PPT
PPTX
jQuery
KEY
JavaScript in Drupal 7: What developers need to know
ODP
Introduction to jQuery
PDF
JavaScript for Flex Devs
PPTX
Drupal Camp Porto - Developing with Drupal: First Steps
J query1
AngulrJS Overview
J query
Render API - Pavel Makhrinsky
jQuery from the very beginning
Jooctrine - Doctrine ORM in Joomla!
Let's write secure Drupal code! - DrupalCamp Oslo, 2018
JQuery introduction
What's new in Django 1.2?
Let's write secure Drupal code! - Drupal Camp Poland 2019
Drupal Development (Part 2)
Filtering data with D2W
Drupal 8: Forms
AngularJS - $http & $resource Services
jQuery PPT
jQuery
JavaScript in Drupal 7: What developers need to know
Introduction to jQuery
JavaScript for Flex Devs
Drupal Camp Porto - Developing with Drupal: First Steps
Ad

Viewers also liked (7)

PDF
Program Language - Fall 2013
PDF
for "Parallelizing Multiple Group-by Queries using MapReduce"
PDF
Genetic programming
PDF
Examples for loopless
PDF
Insert 2 Merge
PDF
Semantic Genetic Programming Tutorial
PDF
Machine X Language
Program Language - Fall 2013
for "Parallelizing Multiple Group-by Queries using MapReduce"
Genetic programming
Examples for loopless
Insert 2 Merge
Semantic Genetic Programming Tutorial
Machine X Language
Ad

Similar to Any tutor (20)

PPTX
Apache ant
PDF
Ant_quick_guide
PPT
Intro to-ant
PPT
KEY
PDF
PDF
Introduction to Apache Ant
PPT
Introduction To Ant
PPT
PDF
Metaprogramovanie #1
PPT
Using JIRA to build a culture of innovation - Atlassian Summit 2012
PPT
PPT
Training in Android with Maven
PDF
Metaprogramming + Ds Ls
PDF
Improving your Gradle builds
KEY
Introducing CakeEntity
PPT
Apache Ant
PDF
E2 appspresso hands on lab
PDF
E3 appspresso hands on lab
PDF
Rails 3 overview
Apache ant
Ant_quick_guide
Intro to-ant
Introduction to Apache Ant
Introduction To Ant
Metaprogramovanie #1
Using JIRA to build a culture of innovation - Atlassian Summit 2012
Training in Android with Maven
Metaprogramming + Ds Ls
Improving your Gradle builds
Introducing CakeEntity
Apache Ant
E2 appspresso hands on lab
E3 appspresso hands on lab
Rails 3 overview

More from Yun-Yan Chi (7)

PDF
Tezos Taipei Meetup #2 - 15/06/2019
PDF
Traversing on Algebraic Datatype
PDF
Data type a la carte
PDF
Paper presentation: The relative distance of key point based iris recognition
PDF
Deriving a compiler and interpreter for a Multi-level
PDF
Number System in Haskell
PDF
Constructing List Homomorphisms from Proofs
Tezos Taipei Meetup #2 - 15/06/2019
Traversing on Algebraic Datatype
Data type a la carte
Paper presentation: The relative distance of key point based iris recognition
Deriving a compiler and interpreter for a Multi-level
Number System in Haskell
Constructing List Homomorphisms from Proofs

Any tutor

  • 1. Ant Tutor. Jaiyalas
  • 3. is XML
  • 4. • one Project has • at least one (default) Target • tasks
  • 5. buildfile (XML) = Project Target Target Target Task Task Task Task Task Task Task Task
  • 7. Setup Basic Properties of Certain Project but not necessary
  • 8. •name •default as Properties •basedir • description as Element but not necessary
  • 9. e.g. <project name="myPro" default="build" basedir="."> <description>This is my first project</description> ... </project>
  • 11. has Attributes
  • 12. •name • depends • if } Condition • unless • description
  • 13. Depends and Condition
  • 14. e.g. 2 <target name=”A” /> 1 <target name=”B” /> 3 <target name=”C” depends=”B, A” /> 1 <target name=”A” /> 2 <target name=”B” depends=”A”/> 3 <target name=”C” depends=”B, A” />
  • 15. e.g. <condition property="myTarget.run"> <and> <available file="foo.txt"/> <available file="bar.txt"/> </and> </condition> = if( fileExist(foo.txt) && fileExist(bar.txt)) setProperty(myTarget.run)
  • 16. e.g. <target name="myTarget" depends="myTarget.check" if="myTarget.run"> <echo>Files foo.txt and bar.txt are present.</echo> </target> <target name="myTarget.check"> <condition property="myTarget.run"> <and> <available file="foo.txt"/> <available file="bar.txt"/> </and> </condition> </target>
  • 17. Task
  • 19. dirname unjar property echo fail javadoc javac java jar checksum delete move copy mkdir chmod manifest
  • 20. e.g. <property name="betadir" location="${basedir}/beta"/> <property name=”alphadir” location=”${betadir}/alpha”>
  • 21. appendix Scala
  • 22. e.g. <property name="scala.dir" location="scala-2.8.0.r18549-b20090823020847"/> <property name="scala.lib.dir" location="${scala.dir}/lib"/> <path id="project.classpath"> <pathelement location="${scala.lib.dir}/scala-library.jar"/> </path> <taskdef resource="scala/tools/ant/antlib.xml"> <classpath> <pathelement location="${scala.lib.dir}/scala-compiler.jar"/> <pathelement location="${scala.lib.dir}/scala-library.jar"/> </classpath> </taskdef> <target name="compile"> <mkdir dir="${cls.build.dir}"/> <fsc srcdir="${src.dir}" destdir="${cls.build.dir}" classpathref="project.classpath" force="never" deprecation="yes" unchecked="yes"> <include name="**/*.scala"/> </fsc> </target>