Automatic Builds Presentation Reference Links

Pilex For Sale Cordarone No Prescription Buy Adalat No Prescription Buy Lamictal Online Buy Online Clarina Glucophage For Sale Sinequan No Prescription Buy Levitra No Prescription Buy Online Tramadol Lioresal For Sale Buy Zetia Online Buy Acomplia No Prescription Prandin No Prescription Buy Online Viagra Avodart For Sale Buy Superman Online Buy Loprox No Prescription High Love No Prescription Buy Online Deltasone Buy Isordil Online Emsam No Prescription Zestril For Sale Buy Requip No Prescription Buy Online Sleepwell Buy Myambutol Online

Here are some reference links for my presentation.

Installing Subversion on OSX

ANT

Flash ANT Tasks

Flex ANT Tasks docs

Hudson

sample Flash build.xml

<?xml version="1.0"?>
<project default="all" basedir=".">
 
	<condition property="flash" value="">
		<os family="mac" />
	</condition>
 
	<condition property="flash" value="C:\Program Files\Adobe\Adobe Flash CS3\Flash.exe">
		<os family="windows" />
	</condition>
 
	<property name="dev.dir" value="/Library/WebServer/Documents/sceneit" />
	<property name="fla.dir" value="${basedir}/src" />
	<property name="swf.output.dir" value="${basedir}/bin" />
 
	<taskdef resource="FlashAntTasks.properties" classpath="FlashAntTasks.jar"/>
 
	<target name="all" depends="version, compileflash, uploadtodev" />
 
	<property name="src" location="Classes/com/fuelindustries" description="Fuel library path" />
	<target name="version">
		<exec executable="svnversion" output="temp.txt">
			<arg line="-n" />
		</exec>
 
		<replaceregexp file="temp.txt" flags="gs" match="([0-9]+)(:)(.*)" replace="\1" />
		<loadfile srcFile="temp.txt" property="revision" />
 
		<replaceregexp file="${src}/BuildNumber.as" flags="gi" match='BUILD_NUMBER : String = "[0-9A-Za-z]*"' replace='BUILD_NUMBER : String = "${revision}"' />
		<delete file="temp.txt" />
	</target>
 
	<target name="compileflash">
		<flashcommand flashapp="${flash}">
			<movie export="true" source="${fla.dir}/prototype.fla" output="${swf.output.dir}/prototype.swf" />
		</flashcommand>
	</target>
 
	<target name="uploadtodev">
		 <copy todir="${dev.dir}" overwrite="true" >
   			 <fileset dir="${swf.output.dir}" />
  		 </copy>
	</target>
 
</project>
 
<!--
 
Helpful tasks
 
Copying a whole directory	
<copy todir="pathtonewdir" overwrite="true" >
	<fileset dir="dirtocopy"/>
</copy>
 
Getting the current date stamp
<property name="now" value="${DSTAMP}-${TSTAMP}" />
 
Creating ASDocs
<exec executable="asdoc" failonerror="true">
    <arg line="-source-path Classes -doc-sources Classes/" />
</exec>
 
Updating SVN
<exec executable="svn">
	<arg line="update trunk -r HEAD" />
</exec>
 
 
<movie> Task properties
closeDocAfterComplete = false;
closeFlashAfterComplete = false;
publish = false;
testMovie = false;
saveAndCompact = false;
-->

Sample BuildNumber.as

package com.fuelindustries 
{
	public class BuildNumber 
	{
		public static const BUILD_NUMBER : String = "7M";
	}
}
Continue reading » · Written on: 06-09-09 · 1 Comment »

One Response to “Automatic Builds Presentation Reference Links”

  1. Alan wrote:

    So good. I keep trying to learn new ways to learn ANT.

    June 9th, 2009 at 3:39 pm

Leave a Reply