I found a solution that works perfectly for me.

You can set properties within profiles, so I just made a profile.nameproperty.

<profile>
  <id>development</id>
  ...
  <properties>
    <profile.name>Development</profile.name>
  </properties>
</profile>

<profile>
  <id>acceptance</id>
  ...
  <properties>
    <profile.name>Acceptance</profile.name>
  </properties>
</profile>



On 2/16/07, Mike Nereson <[EMAIL PROTECTED]> wrote:

Good day.

Is there any way to get the name of the profile that I am using within my
pom? Is there anything like ${profile.id}

Why? I have an ant task that writes a timestamp and a version to a
version.html. Id also like to write the name of the profile that was used.
http://pastebin.ca/359376

It just so happens that my profiles are named localhost, development,
acceptance, and production, so this information would be very useful along
side the version and timestamp.

Thanks for any help that can be provided.

Reply via email to