Skip to content
New issue

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

Allow AppConstants properties in Ant scripts #913

Merged
merged 2 commits into from
Jul 10, 2020
Merged

Allow AppConstants properties in Ant scripts #913

merged 2 commits into from
Jul 10, 2020

Conversation

mhdirkse
Copy link
Contributor

@mhdirkse mhdirkse commented Jul 7, 2020

No description provided.

Comment on lines +102 to +111

// iterate over appConstants and add them as properties
AppConstants appConstants = AppConstants.getInstance();
@SuppressWarnings("unchecked")
Enumeration<String> enums = (Enumeration<String>) appConstants.propertyNames();
while (enums.hasMoreElements()) {
String key = enums.nextElement();
ant.setProperty(key, appConstants.getResolvedProperty(key));
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je voegt nu deze AppConstants-properties toe aan de FileSender. Ligt het niet meer voor de hand om ze op een hoger niveau toe te voegen, zodat je de AppConstants ook op andere plekken in Larva kunt gebruiken?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this pull request, Larva allows you already to use AppConstants properties in scenario files, include files and input files. Niels has decided that properties should not be supported in output files; I have forgotten the reason. Only the option to use AppConstants properties in Ant scripts is missing. Adding this is the purpose of this pull request.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See this PR which enabled resolving properties in input files #730

The reason Niels decided not to resolve properties in output files is that it will break the save result feature, since it will save the resolved property instead of the unresolved one.

Another reason that in output files it shouldn't be necessary, you can accomplish the same result with applying ignores to your scenario.

@nielsm5 nielsm5 changed the title Allow AppConstants properties in Ant scripts, prefixed with ac. Allow AppConstants properties in Ant scripts Jul 10, 2020
@gvanbrakel gvanbrakel merged commit b28bf55 into frankframework:master Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants