Update your app VERSION using ant

Essay On Agents On Political Socialization

This is the way I do. In the “compile” task I’ve added a depends link to this ant task:

<target name="update-version"> <propertyset id="tdate"></propertyset> <tstamp> <format property="tdate" pattern="yyyyMMdd"/> </tstamp> <buildnumber file="build.number"/> <echo>updating version to current datetime: ${tdate}</echo> <replaceregexp byline="true"> <regexp pattern="public static const BUILD_DATE: String = \'([0-9]+)'"/> <substitution expression="public static const BUILD_DATE: String = '${tdate}'"/> <fileset dir="src/it/sephiroth/somestuff"> <include name="Library.as"/> </fileset> </replaceregexp> <replaceregexp byline="true"> <regexp pattern="public static const BUILD_NUMBER: String = \'([0-9\.]+)'"/> <substitution expression="public static const BUILD_NUMBER: String = '${build.number}'"/> <fileset dir="src/it/sephiroth/somestuff"> <include name="Library.as"/> </fileset> </replaceregexp> </target>

The 2 optional tasks I’ve used are: BuildNumber task and ReplaceRegExp Task. In this way every time I do an ant compile, it will update my build number and modification date.
What this task does is find this 2 lines in my Library.as file:
then replace the BUILD_DATE const with the current date and the BUILD_NUMBER with an incremental build number. After being executed the first time, ant will also create a new file in your directory called “build.number” with the latest build number int.

Vector.splice bug

http://www.ustech365.com/cheap-essays-to-buy/ Cheap Essays To Buy

Today I’ve spent a lot of time trying to understand why I was so stupid because I wasn’t able to concatenate 2 vectors of int using splice.
But for what you can read from the *official* Adobe documentation, which says (about the third parameter for the splice method):

http://www.nfz-lublin.pl/?essay-on-priorities Essay On Priorities

Ok, that’s why I didn’t know why I couldn’t manage to make it work! This simple code gives wrong results:


var v2: Vector.</int><int> = new Vector.</int><int>();
v1.splice( 1, 1, v2 );  

// Expected result: [1,100,200,3,4]
// Actual result: [1,0,3,4] </int>

Dissertation Social Change

David Cooperrider Dissertation

http://suisse-langenthal.ch/professional-writing-instructions/ Professional Writing Instructions