Skip to content

Commit

Permalink
Tycho-its reproducer for issue 2716.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhendriks committed Aug 20, 2023
1 parent a9ab27d commit 0827d42
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<extensions>
<extension>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-build</artifactId>
<version>4.0.1</version>
</extension>
</extensions>
12 changes: 12 additions & 0 deletions tycho-its/projects/compliler.multipleSourceDirs/bundle/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Test Bundle
Bundle-SymbolicName: tycho-its-project.compliler.multipleSourceDirs.bundle
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: test.bundle
Automatic-Module-Name: tycho-its-project.compliler.multipleSourceDirs.bundle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source.. = src/,\
src-gen
output.. = target/classes
bin.includes = META-INF/,\
.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package test.bundle;

public class Test2 {
public static void main(String[] args) {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package test.bundle;

public class Test {
public static void main(String[] args) {
}
}
32 changes: 32 additions & 0 deletions tycho-its/projects/compliler.multipleSourceDirs/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>tycho-its-project.compliler</groupId>
<artifactId>tycho-its-project.compliler.multipleSourceDirs.root</artifactId>
<version>1.0.0-SNAPSHOT</version>

<packaging>pom</packaging>

<modules>
<module>bundle</module>
</modules>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*******************************************************************************
* Copyright (c) 2023 Contributors to the Eclipse Foundation
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/

package org.eclipse.tycho.test.compiler;

import org.apache.maven.it.Verifier;
import org.eclipse.tycho.test.AbstractTychoIntegrationTest;
import org.junit.Test;

public class MultipleSourceDirsTest extends AbstractTychoIntegrationTest {
@Test
public void test() throws Exception {
Verifier verifier = getVerifier("compliler.multipleSourceDirs", false);
verifier.executeGoal("verify");
verifier.verifyErrorFreeLog();
verifyTextNotInLog(verifier, "'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing");
}
}

0 comments on commit 0827d42

Please sign in to comment.