How to get build id into an about.mappings file, headless build [message #299070] |
Thu, 09 February 2006 12:02  |
Eclipse User |
|
|
|
This is a multipart message in MIME format.
--=_alternative 005DA51D85257110_=
Content-Type: text/plain; charset="US-ASCII"
Is there a built-in way or special tag I should use to get the build id
into an about.mappings file for my plugin? I am using the PDE headless
build to generate my plugins and features and want to pass the build id
automatically into the about.mappings file.
Thanks,
Mack Phelps
--=_alternative 005DA51D85257110_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Is there a built-in way or special tag
I should use to get the build id into an about.mappings file for my plugin?
I am using the PDE headless build to generate my plugins and features
and want to pass the build id automatically into the about.mappings file.
</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br>
<br><font size=2 face="sans-serif">Mack Phelps</font>
--=_alternative 005DA51D85257110_=--
|
|
|
Re: How to get build id into an about.mappings file, headless buildbuil [message #299086 is a reply to message #299070] |
Thu, 09 February 2006 15:08   |
Eclipse User |
|
|
|
This is a multipart message in MIME format.
--=_alternative 006E97CA85257110_=
Content-Type: text/plain; charset="US-ASCII"
A little more information to explain what I am having problems with.
I am building in an Eclipse V3.1.0 environment including WTP Project
tools.
The plugin that I am attempting to build has a build.properties which
specifies the about.ini, about.properties and about.mappings files so they
are produced in bin output.
The about.ini file has the aboutText=%blurb
The about.properties has a blurb= with the appropriate text with {0}
insert for the build id
The about.mappings has a 0=@build@ for the build id
In my build.properties that controls the headless build, I have
timestamp=20060209
buildId=dev
buildType=N
Everything seems to work correctly except that the @build@ is not replaced
in my about.mappings file during the headless build process, and it shows
up in the about text blurb when I click on my installed feature. The
Eclipse About Features SDK shows "Build id: @build@ " where I would
expect the build timestamp
Any help on what I should do or specify to get the build timestamp placed
in my about.mappings file would be greatly appreciated.
Thanks,
Mack Phelps
--=_alternative 006E97CA85257110_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">A little more information to explain
what I am having problems with.</font>
<br>
<br><font size=2 face="sans-serif">I am building in an Eclipse V3.1.0 environment
including WTP Project tools.</font>
<br>
<br><font size=2 face="sans-serif">The plugin that I am attempting to build
has a build.properties which specifies the about.ini, about.properties
and about.mappings files so they are produced in bin output.</font>
<br>
<br><font size=2 face="sans-serif">The about.ini file has the aboutText=%blurb</font>
<br>
<br><font size=2 face="sans-serif">The about.properties has a blurb=
with the appropriate text with {0} insert for the build id</font>
<br>
<br><font size=2 face="sans-serif">The about.mappings has a 0=@build@
for the build id</font>
<br>
<br><font size=2 face="sans-serif">In my build.properties that controls
the headless build, I have </font>
<br>
<br><font size=2 face="sans-serif">timestamp=20060209</font>
<br><font size=2 face="sans-serif">buildId=dev</font>
<br><font size=2 face="sans-serif">buildType=N</font>
<br>
<br>
<br><font size=2 face="sans-serif">Everything seems to work correctly except
that the @build@ is not replaced in my about.mappings file during the headless
build process, and it shows up in the about text blurb when I click on
my installed feature. The Eclipse About Features SDK shows "Build
id: @build@ " where I would expect the build timestamp</font>
<br>
<br><font size=2 face="sans-serif">Any help on what I should do or specify
to get the build timestamp placed in my about.mappings file would be greatly
appreciated.</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br>
<br><font size=2 face="sans-serif">Mack Phelps</font>
<br>
--=_alternative 006E97CA85257110_=--
|
|
|
Re: How to get build id into an about.mappings file, headless buildbuil [message #299157 is a reply to message #299086] |
Sat, 11 February 2006 10:57  |
Eclipse User |
|
|
|
Originally posted by: automatic.javalobby.org
This is replaced manually using the ant 'replace' task prior to the build being executed as part of the manual process. Depending on what/how you're invoking the build, unless you've got this step when you build the feature, you won't see it. (In other words, it's not like an internationalisation step; it's a find-and-replace step.)
<!-- ============================================================ ========= -->
<!-- Steps to do before running the build.xmls for the elements being built. -->
<!-- ============================================================ ========= -->
<target name="preProcess">
<replace dir="${buildDirectory}/plugins" value="${buildId}" token="@build@">
<include name="**/about.mappings" />
</replace>
</target>
[/xml]
|
|
|
Powered by
FUDForum. Page generated in 0.03538 seconds