-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the symlinks IT project links to a new project subdirectories
This way, the "multisources" project, which was used for targets of symlinks, does not get deleted. The "multisources-to-link" is just a copy of "multisources" that is meant to be used only for targets of the symlinks project.
- Loading branch information
1 parent
7ecc857
commit 31e195c
Showing
8 changed files
with
161 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
org.eclipse.xtend.maven.plugin/src/test/resources/it/compile/multisources-to-link/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<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/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.eclipse.xtend</groupId> | ||
<artifactId>it-tests-parent</artifactId> | ||
<version>IT-SNAPSHOT</version> | ||
<relativePath>../../pom.xml</relativePath> | ||
</parent> | ||
<artifactId>multisources</artifactId> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>build-helper-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>add-source</id> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>add-source</goal> | ||
</goals> | ||
<configuration> | ||
<sources> | ||
<source>src/main/java2</source> | ||
</sources> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>add-test-source</id> | ||
<phase>generate-test-sources</phase> | ||
<goals> | ||
<goal>add-test-source</goal> | ||
</goals> | ||
<configuration> | ||
<sources> | ||
<source>src/test/java2</source> | ||
</sources> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.eclipse.xtend</groupId> | ||
<artifactId>xtend-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>compile</goal> | ||
<goal>testCompile</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
13 changes: 13 additions & 0 deletions
13
...plugin/src/test/resources/it/compile/multisources-to-link/src/main/java/test/XtendA.xtend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package test | ||
|
||
class XtendA extends JavaB { | ||
|
||
def JavaB test2(XtendC s) { | ||
return s.foo.newJavaB | ||
} | ||
|
||
def JavaB newJavaB() { | ||
return new JavaB() | ||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
...plugin/src/test/resources/it/compile/multisources-to-link/src/main/java/test/XtendC.xtend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package test | ||
|
||
class XtendC { | ||
def JavaB test(XtendA s) { | ||
return null | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
....plugin/src/test/resources/it/compile/multisources-to-link/src/main/java2/test/JavaB.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2011 itemis AG (http://www.itemis.eu) and others. | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
package test; | ||
|
||
/** | ||
* @author efftinge - Initial contribution and API | ||
*/ | ||
public class JavaB extends XtendC { | ||
public XtendA foo(XtendC test) { | ||
return null; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...plugin/src/test/resources/it/compile/multisources-to-link/src/test/java/foo/FooTest.xtend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package foo | ||
|
||
import org.junit.Test | ||
import org.junit.Assert | ||
import foo.FooClass | ||
|
||
class FooTest { | ||
|
||
@Test | ||
def assertTrue() { | ||
Assert::assertEquals(1,new FooClass().count); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ugin/src/test/resources/it/compile/multisources-to-link/src/test/java2/foo/FooClass.xtend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package foo | ||
|
||
import test.JavaB | ||
|
||
class FooClass { | ||
|
||
def int count() { | ||
return 1 | ||
} | ||
|
||
def JavaB newJavaB() { | ||
return new JavaB() | ||
} | ||
} |