Maven Mojo是否与ant';什么脏东西?
我将一个ant插件升级到maven插件,我的ant插件使用了一个,我发现maven只有一个Maven Mojo是否与ant';什么脏东西?,maven,maven-plugin,maven-mojo,Maven,Maven Plugin,Maven Mojo,我将一个ant插件升级到maven插件,我的ant插件使用了一个,我发现maven只有一个 我可以使用文件集来收集目录吗 我应该通过查看Ant的PatternSet-dirset代码,然后使用maven的PatternSet和或文件集实现类似的解决方案来创建自己的dirset类吗 有没有更好的方法来收集包含和排除的目录 谢谢你的帮助 彼得在第页找到了它 FileSetManager fileSetManager = new FileSetManager(); String[] include
- 我可以使用文件集来收集目录吗
- 我应该通过查看Ant的PatternSet-dirset代码,然后使用maven的PatternSet和或文件集实现类似的解决方案来创建自己的dirset类吗
- 有没有更好的方法来收集包含和排除的目录
FileSetManager fileSetManager = new FileSetManager();
String[] includedFiles = fileSetManager.getIncludedFiles( fileset );
String[] includedDir = fileSetManager.getIncludedDirectories( fileset );
String[] excludedFiles = fileSetManager.getExcludedFiles( fileset );
String[] excludedDir = fileSetManager.getExcludedDirectories( fileset );
fileSetManager.delete( fileset );