The following document contains the results of PMD's CPD 5.3.5.
File | Line |
---|---|
net/nicoulaj/maven/plugins/vagrant/ReloadMojo.java | 45 |
net/nicoulaj/maven/plugins/vagrant/UpMojo.java | 45 |
@Parameter protected String vm; /** * Enable or disable provisioning. */ @Parameter(defaultValue = "true") protected boolean provision; /** * Enable only certain provisioners, by type. */ @Parameter protected List<String> provisioners; @Override protected void doExecute() throws IOException, ScriptException { final List<String> args = new ArrayList<String>(); args.add(NAME); if (!isEmpty(vm)) args.add(vm); if (!provision) args.add("--no-provision"); else if (provisioners != null && !provisioners.isEmpty()) { args.add("--provision"); args.add("--provision-with"); args.add(join(provisioners.iterator(), ",")); } else args.add("--provision"); cli(args); } } |