We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apparently, there is no elegant way of setting a task level property from benchmark context.
For setting a context level property, one can simply do: ContextBuilder builder ... builder.setProperty ("name", "value);
For setting a task level property, one probably has to do: Task task ... if (!task.isSetProperties ()) task.setProperties(new Properties ()); for (Property property : task.getProperties ().getProperty ()) if (property.isSetName () && name.equals (property.getName ())) { property.setValue (value); ... } task.getProperties ().getProperty ().add (new Property ().withName (name).withValue (value));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Apparently, there is no elegant way of setting a task level property from benchmark context.
For setting a context level property, one can simply do:
ContextBuilder builder ...
builder.setProperty ("name", "value);
For setting a task level property, one probably has to do:
Task task ...
if (!task.isSetProperties ()) task.setProperties(new Properties ());
for (Property property : task.getProperties ().getProperty ())
if (property.isSetName () && name.equals (property.getName ())) {
property.setValue (value);
...
}
task.getProperties ().getProperty ().add (new Property ().withName (name).withValue (value));
The text was updated successfully, but these errors were encountered: