History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1306
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Justin Georgeson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Provide a built-in repeat parameter values definition for files that match a standard file pattern

Created: 29/Jun/12 06:52 PM   Updated: 27/Feb/13 01:03 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.8

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: 3.1.67


 Description  « Hide
For steps that can process multiple files, sometimes the desire is to process the files individually. For example see QB-1305. A workaround for QB-1305 is to setup a repeating parameter using groovy script below to process the files individually rather than in aggregate. Please add a pre-defined value definition that takes the common 'Source Directory' and 'Files to process' fields and returns the list that we can loop over.

${groovy:
java.io.File[] files = util.getFile(vars.getValue("aggregatorPomDir")).listFiles();
java.util.List<String> list = new java.util.ArrayList<String>();
for (java.io.File each : files) {
    if (each.isDirectory() && each.getName().startsWith("com.lgc"))
            list.add(each.getName());
\}

return util.join(list);
}



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.