Closed GoogleCodeExporter closed 9 years ago
Apologies for not labeling this issue as an Enhancement. For some reason the
issue
creation page didn't give me the option to change the issue type..
Original comment by andrew.s...@gmail.com
on 23 Nov 2008 at 11:29
I've created a patch against flex-mojos 2.0M9 which adds a "definesFile"
@property to
the compiler mojo, along with proper documentation. Please see attachment.
Original comment by andrew.s...@gmail.com
on 24 Nov 2008 at 12:25
Attachments:
I don't get why you wanna that....
Maven doesn't read properties from files, does it?
VELO
Original comment by velo...@gmail.com
on 24 Nov 2008 at 12:43
No, Maven does not read properties from files. However, it does read filters
from
properties files. Previously, I'd been generating filter properties files to
ensure
certain dynamic name-value pairs were injected into filtered resources.
In this scenario, if I want a dynamic name-value pair to get into my flex code,
I
have to create a filter file and then apply it to some actionscript source file
to
inject those values into the source before compile.
With this extension, I don't have to prefilter actionscript source. I just point
flex-compiler-mojo at my generated filter file and then I can reference the
definitions within the rest of my actionscript code.
Original comment by andrew.s...@gmail.com
on 24 Nov 2008 at 12:49
Velo, please close this ticket if you like. I'm satisfied with an alternate
source
generation approach.
Original comment by andrew.s...@gmail.com
on 24 Nov 2008 at 8:45
andrew, just making sure you're aware of
http://blog.flex-mojos.info/2008/06/16/adding-svn-build-number-
and-timestamp/ just in case it would meet your needs for now.
Original comment by RedB...@gmail.com
on 24 Nov 2008 at 9:03
Thanks RedBugz. I had run into buildnumber-maven-plugin. My only reservation
concerning its use is how revision information is packaged with various
distribution
assemblies. It seems to support pushing build numbers etc into jar manifests,
but
this doesn't quite work for flex projects.. For the moment I'm using a bit of
Ant
script to generate a dist.properties file which includes build/release data when
assembling distributions. The same script takes care of generation of local
build
info via svnversion, so it kind of obviates the use of the
buildnumber-maven-plugin.
Cheers,
Original comment by andrew.s...@gmail.com
on 24 Nov 2008 at 9:11
Ok, if you are happy =P
Original comment by velo...@gmail.com
on 24 Nov 2008 at 10:56
Original issue reported on code.google.com by
andrew.s...@gmail.com
on 23 Nov 2008 at 11:23