I came from the users point of view. More exactly while writing access code
inside a script task.
  <macrodef>
      <attribute>
      <sequential>
          <script>
              HERE PLAYS THE MUSIC :-)
          </script>
      </sequential>
  </macrodef>

And the question was: how can I access the attribute-value? If you write
inside a target that would be
    value = project.getProperty(name);
But not here. So development / copying the code from somewhere else /
refactor that code out would be
more diffult.

Difficult but not impossible:
    value = "${value}";
would do that (or the other bracket type).


But the textual expansion has another disadvantage:
    if (parameter == "${name}") set-default-for-parameter;
You canīt do that ... (mmh maybe nevertheless, not enought thought about
that).
So the workaround would be splitting the string "${name}" to "${na"+"me}".


All can be done. But not in a nice and uniform way.
Thatīs why I prefer local properties.



Jan

Reply via email to