6. What is Ant?
1. An XML based custom build tool
2. Open source & well documented
3. Standardized & widely used
4. Implemented in Java
5. Platform independent
7. Ant Goals
Create a continuous integration based
build process:
• Centralized
• Automated
• Self-Testing
8. Usage
1. Don‘t do work you‘ve already done
2. Do alot of tasks once
3. Prevent Mistakes
9. What Ant can do
1. Build swf
2. Do UnitTest‘s
3. Generate ASDoc‘s & SWC Files
4. Build template files
5. Combine Flex projects, modules, assets
6. Copy, zip, ftp, svn
7. Source distribution
22. <property>
1. User defined variables
2. Case sensitive
3. Defined in build.xml or build.properties
4. Reference by ${var}
5. System properties ${os.name}
6. Built-in properties ${ant.java.version}
24. <target>
1. A <project> has one or more <target>
2. Wrapper for a sequences of actions (tasks)
3. Can depend on other <target>
4. Executes only once
25. <target>
5 attributes:
1. name - target reference
2. depends - other targets (optional)
3. if - conditional (optional)
4. unless - converse of if (optional)
5. description - info (optional)
29. <task>
Ant built-in tasks:
Ant Exec GZip Replace Unzip
AntCall ExecOn Jar Style Zip
Available Fail Mail Tar
Copy Filter Mkdir Taskdef
Delete Get Move Touch
Echo GUnzip Property Tstamp