@Override
    public String arguments() {
        ArrayList<String> args = new ArrayList<>();
        if (buildFile != null) {
            args.add("-f \"" + FilenameUtils.separatorsToUnix(buildFile) + "\"");
        }

        if (target != null) {
            args.add(target);
        }

        return StringUtils.join(args, " ");
    }
@Test
    public void shouldSetTargetOnBuilderWhenAvailable() {
        String target = "target";
        antTask.setTarget(target);
        assertThat(antTask.arguments(), is(target));
    }