You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by mx...@apache.org on 2016/10/12 10:07:34 UTC

flink git commit: [FLINK-4799] re-add 'build-target' symlink on Unix systems

Repository: flink
Updated Branches:
  refs/heads/master 7b79c8b52 -> 15df71ba9


[FLINK-4799] re-add 'build-target' symlink on Unix systems

This adds back the link 'build-target' which points to the final build
assembly in 'flink-dist/target/'.

This closes #2620


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/15df71ba
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/15df71ba
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/15df71ba

Branch: refs/heads/master
Commit: 15df71ba9b4d6c630a09b1b46d5419b821464d97
Parents: 7b79c8b
Author: Maximilian Michels <mx...@apache.org>
Authored: Tue Oct 11 13:54:55 2016 +0200
Committer: Maximilian Michels <mx...@apache.org>
Committed: Wed Oct 12 12:06:08 2016 +0200

----------------------------------------------------------------------
 flink-dist/pom.xml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 53 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/15df71ba/flink-dist/pom.xml
----------------------------------------------------------------------
diff --git a/flink-dist/pom.xml b/flink-dist/pom.xml
index 4687f20..010e9b5 100644
--- a/flink-dist/pom.xml
+++ b/flink-dist/pom.xml
@@ -128,8 +128,8 @@ under the License.
 		
 	</dependencies>
 
-	<!-- See main pom.xml for explanation of profiles -->
 	<profiles>
+		<!-- See main pom.xml for explanation of Hadoop profiles -->
 		<profile>
 			<id>include-yarn</id>
 			<activation>
@@ -146,6 +146,57 @@ under the License.
 				</dependency>
 			</dependencies>
 		</profile>
+
+		<profile>
+			<!-- Creates/Removes the 'build-target' symlink in the root directory (only Unix systems) -->
+			<id>symlink-build-target</id>
+			<activation>
+				<os>
+					<family>unix</family>
+				</os>
+			</activation>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.codehaus.mojo</groupId>
+						<artifactId>exec-maven-plugin</artifactId>
+						<version>1.5.0</version>
+						<executions>
+							<execution>
+								<id>remove-build-target-link</id>
+								<phase>clean</phase>
+								<goals>
+									<goal>exec</goal>
+								</goals>
+								<configuration>
+									<executable>rm</executable>
+									<arguments>
+										<argument>-f</argument>
+										<argument>${project.basedir}/../build-target</argument>
+									</arguments>
+								</configuration>
+							</execution>
+							<execution>
+								<id>create-build-target-link</id>
+								<phase>package</phase>
+								<goals>
+									<goal>exec</goal>
+								</goals>
+								<configuration>
+									<executable>ln</executable>
+									<arguments>
+										<argument>-sf</argument>
+										<argument>${project.basedir}/target/flink-${project.version}-bin/flink-${project.version}</argument>
+										<argument>${project.basedir}/../build-target</argument>
+									</arguments>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+
 	</profiles>
 
 	<build>
@@ -270,4 +321,5 @@ under the License.
 
 		</plugins>
 	</build>
+
 </project>