| 1 | |
package com.aurea.maven.plugins.sonic.sdm.util; |
| 2 | |
|
| 3 | |
import java.util.ArrayList; |
| 4 | |
import java.util.List; |
| 5 | |
|
| 6 | |
import com.aurea.maven.plugins.sonic.utils.FileUtilities; |
| 7 | |
|
| 8 | |
public class XarFileContribution extends AbstractModelContribution { |
| 9 | |
|
| 10 | |
public XarFileContribution(String name, ESBDeploymentModelBuilder builder) { |
| 11 | 0 | super(name, builder); |
| 12 | 0 | } |
| 13 | |
|
| 14 | |
public Object getContribution() throws Exception { |
| 15 | |
|
| 16 | |
|
| 17 | 0 | String [] xarFiles = FileUtilities.getFileList(getBuilder().getSDMDir() + "/xars", "**/*.xar", null); |
| 18 | |
|
| 19 | 0 | List<String> xarFileNames = new ArrayList<String>(); |
| 20 | 0 | for(String xarFile: xarFiles) { |
| 21 | 0 | getBuilder().getLog().debug("Found Xar File: " + xarFile); |
| 22 | 0 | xarFileNames.add(xarFile); |
| 23 | |
} |
| 24 | |
|
| 25 | 0 | return xarFileNames; |
| 26 | |
} |
| 27 | |
|
| 28 | |
} |