Search in sources :

Example 11 with BuildPropertiesImpl

use of org.eclipse.tycho.core.shared.BuildPropertiesImpl in project tycho by eclipse.

the class IncludeValidationHelperTest method testCheckBinIncludesExistWithIgnoredPatterns.

@Test
public void testCheckBinIncludesExistWithIgnoredPatterns() throws Exception {
    BuildPropertiesImpl buildProperties = createBuildProperties("bin.includes", "foo.txt, bar*,**/*.me,TO_BE_IGNORED");
    subject.checkBinIncludesExist(createMockProject(), buildProperties, true, "TO_BE_IGNORED");
}
Also used : BuildPropertiesImpl(org.eclipse.tycho.core.shared.BuildPropertiesImpl) Test(org.junit.Test)

Example 12 with BuildPropertiesImpl

use of org.eclipse.tycho.core.shared.BuildPropertiesImpl in project tycho by eclipse.

the class IncludeValidationHelperTest method testCheckBinIncludesDontExist.

@Test
public void testCheckBinIncludesDontExist() throws Exception {
    BuildPropertiesImpl buildProperties = createBuildProperties("bin.includes", "foo2.txt, bar2*,**/*.me");
    try {
        subject.checkBinIncludesExist(createMockProject(), buildProperties, true);
        fail();
    } catch (MojoExecutionException e) {
        assertStringContains("bin.includes value(s) [foo2.txt, bar2*] do not match any files.", e.getMessage());
    }
}
Also used : MojoExecutionException(org.apache.maven.plugin.MojoExecutionException) BuildPropertiesImpl(org.eclipse.tycho.core.shared.BuildPropertiesImpl) Test(org.junit.Test)

Aggregations

BuildPropertiesImpl (org.eclipse.tycho.core.shared.BuildPropertiesImpl)12 Test (org.junit.Test)7 Properties (java.util.Properties)5 BuildProperties (org.eclipse.tycho.core.shared.BuildProperties)4 MojoExecutionException (org.apache.maven.plugin.MojoExecutionException)3 File (java.io.File)2 InputStream (java.io.InputStream)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 ZipEntry (java.util.zip.ZipEntry)1 ZipFile (java.util.zip.ZipFile)1 MavenProject (org.apache.maven.project.MavenProject)1 DefaultArchivedFileSet (org.codehaus.plexus.archiver.util.DefaultArchivedFileSet)1 AbstractLogger (org.codehaus.plexus.logging.AbstractLogger)1 Logger (org.codehaus.plexus.logging.Logger)1