> Regarding your other response, I'm not sure that grep worked with Ant on 
> Windows.  It would be best to either have Ant generate the entire file or use 
> its replaceregex task on a known pattern.

There already exists one of those.  That's why I kept the current file
name as it was.  The following I found in the build.xml file in the
root.  It looks like it would almost work out of the box.  Would just
change the path to be more specific location.

<replaceregexp>
<regexp pattern='"[0-9].[0-9].[0-9].[0-9]";'/>
<substitution expression='"${release.version}.${build.number.date}";'/>
<fileset dir="${ROYALE_HOME}/temp/frameworks/projects">
<include name="**/Version.as"/>
</fileset>
</replaceregexp>


-Mark K

On Tue, Apr 30, 2019 at 7:31 PM Alex Harui <[email protected]> wrote:
>
> I'm fine with starting with your example.  Are other versions in Royale 
> including the build number?  Are you expecting the build systems to update 
> that file on each build?  That might be trickier.  The Maven builds check for 
> uncommitted files.
>
> Regarding your other response, I'm not sure that grep worked with Ant on 
> Windows.  It would be best to either have Ant generate the entire file or use 
> its replaceregex task on a known pattern.
>
> My 2 cents,
> -Alex
>

Reply via email to