@Test public void buildPackagingOptionsMuleApplicationTemplateTest() { mojo.onlyMuleSources = false; mojo.classifier = Classifier.MULE_APPLICATION_TEMPLATE.toString(); assertThat("Packaging options should have onlyMuleSources property set to true", mojo.buildPackagingOptions().isOnlyMuleSources(), equalTo(true)); }
protected PackagingOptions buildPackagingOptions() { boolean isMuleApplicationTemplate = MULE_APPLICATION_TEMPLATE.equals(classifier); boolean isMuleApplicationExample = MULE_APPLICATION_EXAMPLE.equals(classifier); boolean isMuleReusableApp = MULE_PLUGIN.equals(classifier); return new PackagingOptions(isMuleApplicationTemplate || onlyMuleSources, isMuleReusableApp || lightweightPackage, isMuleApplicationExample || attachMuleSources, testJar, useLocalRepository); }
PackageMojo extends AbstractMuleMojo { protected PackagingOptions buildPackagingOptions() { boolean isMuleApplicationTemplate = MULE_APPLICATION_TEMPLATE.equals(classifier); boolean isMuleApplicationExample = MULE_APPLICATION_EXAMPLE.equals(classifier); boolean isMuleReusableApp = MULE_PLUGIN.equals(classifier); return new PackagingOptions(isMuleApplicationTemplate || onlyMuleSources, isMuleReusableApp || lightweightPackage, isMuleApplicationExample || attachMuleSources, testJar, useLocalRepository); } }
PackageMojo extends AbstractMuleMojo { protected PackagingOptions buildPackagingOptions() { boolean isMuleApplicationTemplate = MULE_APPLICATION_TEMPLATE.equals(classifier); boolean isMuleApplicationExample = MULE_APPLICATION_EXAMPLE.equals(classifier); boolean isMuleReusableApp = MULE_PLUGIN.equals(classifier); return new PackagingOptions(isMuleApplicationTemplate || onlyMuleSources, isMuleReusableApp || lightweightPackage, isMuleApplicationExample || attachMuleSources, testJar, useLocalRepository); }  }
PackageMojo extends AbstractMuleMojo { protected PackagingOptions buildPackagingOptions() { boolean isMuleApplicationTemplate = MULE_APPLICATION_TEMPLATE.equals(classifier); boolean isMuleApplicationExample = MULE_APPLICATION_EXAMPLE.equals(classifier); boolean isMuleReusableApp = MULE_PLUGIN.equals(classifier); return new PackagingOptions(isMuleApplicationTemplate || onlyMuleSources, isMuleReusableApp || lightweightPackage, isMuleApplicationExample || attachMuleSources, testJar, useLocalRepository); }  @Override void doExecute(); @Override String getPreviousRunPlaceholder(); }
PackageMojo extends AbstractMuleMojo { protected PackagingOptions buildPackagingOptions() { boolean isMuleApplicationTemplate = MULE_APPLICATION_TEMPLATE.equals(classifier); boolean isMuleApplicationExample = MULE_APPLICATION_EXAMPLE.equals(classifier); boolean isMuleReusableApp = MULE_PLUGIN.equals(classifier); return new PackagingOptions(isMuleApplicationTemplate || onlyMuleSources, isMuleReusableApp || lightweightPackage, isMuleApplicationExample || attachMuleSources, testJar, useLocalRepository); }  @Override void doExecute(); @Override String getPreviousRunPlaceholder();  }