Why don't you use defines? VELO
On Jun 21, 1:12 pm, oooJamesooo <[email protected]> wrote: > I want to include a build version into our compiled swf file so we can > manually check it at runtime. I was thinking the easiest way would be > to just alter an .as file with the a placeholder, but I am new to > maven still. What is the best way to change a file before compiling > happens? > > Here is what I have tried: > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-antrun-plugin</artifactId> > > <executions> > <execution> > > <configuration> > > <tasks > > <echo > message="Start label"/> > <!-- Ant's > properties are immutable, so setting this will only > apply for developer > builds > > env.BUILD_NUMBER > --> > > <property > name="BUILD_NUMBER" value="Unlabeled Build"/> > > <echo > message="Label = ${versionlabel}"/> > <replace > file="${basedir}/src/com/foo/BuildFile.as" > token="BUILD_LABEL" value="${BUILD_NUMBER}"/> > </tasks> > > <goals> > > <goal>flexmojos:compile-swf</goal> > </goals> > > </configuration> > </execution> > </executions> > </plugin> -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
