Skip to content

Commit

Permalink
[product] Include sources in the product.
Browse files Browse the repository at this point in the history
close #491

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Sep 16, 2016
1 parent d60abb2 commit 7b09a18
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,6 +4,7 @@
/eclipse-sarl/plugins/io.sarl.lang.core/about.mappings
/eclipse-sarl/plugins/io.sarl.lang.ui/about.mappings
/sre/io.janusproject/io.janusproject.plugin/about.mappings
/eclipse-products/io.sarl.lang.updatesite/io.sarl.lang.product.copy

# Xtext generated files
eclipse-sarl/plugins/io.sarl.core/xtend-gen/
Expand Down
62 changes: 62 additions & 0 deletions eclipse-products/io.sarl.lang.updatesite/pom.xml
Expand Up @@ -58,7 +58,69 @@
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>expanding-product-with-sources</id>
<phase>prepare-package</phase>
<configuration>
<target>
<property name="sarl.product.definition.file" value="${project.basedir}/io.sarl.lang.product"/>
<copy overwrite="true" file="${sarl.product.definition.file}" tofile="${sarl.product.definition.file}.copy"/>
<replace file="${sarl.product.definition.file}" token="&lt;/features&gt;" value="&lt;feature id=&quot;io.sarl.lib.source&quot;/&gt;&lt;feature id=&quot;io.janusproject.feature.source&quot;/&gt;&lt;/features&gt;"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>restoring-default-product</id>
<phase>verify</phase>
<configuration>
<target>
<property name="sarl.product.definition.file" value="${project.basedir}/io.sarl.lang.product"/>
<copy overwrite="true" file="${sarl.product.definition.file}.copy" tofile="${sarl.product.definition.file}"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>

<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
Expand Down
9 changes: 0 additions & 9 deletions eclipse-sarl/plugins/io.sarl.core/pom.xml
Expand Up @@ -11,15 +11,6 @@
<name>SDK Core Library</name>

<build>
<resources>
<!-- Embed the SARL source code into the binary jar. It should be replaced by the generated source bundle. -->
<resource>
<directory>src</directory>
<includes>
<include>**/*.sarl</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Expand Up @@ -416,6 +416,12 @@
<version>2.8.2</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
Expand Down

0 comments on commit 7b09a18

Please sign in to comment.