Skip to content

Commit

Permalink
[sre] Move the Eclipse integration of Janus into a separate plugin.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Oct 5, 2017
1 parent 0e77e4a commit 01b5278
Show file tree
Hide file tree
Showing 29 changed files with 303 additions and 121 deletions.
21 changes: 21 additions & 0 deletions sre/io.janusproject/io.janusproject.eclipse/META-INF/MANIFEST.MF
@@ -0,0 +1,21 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: io.janusproject.eclipse;singleton:=true
Bundle-Version: 0.7.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: io.janusproject.plugin;bundle-version="0.7.0";visibility:=reexport,
io.sarl.eclipse;bundle-version="0.7.0",
org.eclipse.jdt.core;bundle-version="3.13.0",
org.eclipse.core.runtime;bundle-version="3.13.0",
org.eclipse.ui.workbench;bundle-version="3.110.0",
org.eclipse.jdt.ui;bundle-version="3.13.0",
org.eclipse.jface;bundle-version="3.13.0",
org.eclipse.swt;bundle-version="3.106.0",
org.eclipse.jdt.launching;bundle-version="3.9.0"
Bundle-Activator: io.janusproject.eclipse.JanusEclipsePlugin
Bundle-ActivationPolicy: lazy
Bundle-Vendor: %Bundle-Vendor
Export-Package: io.janusproject.eclipse,
io.janusproject.eclipse.buildpath,
io.janusproject.eclipse.sre
@@ -0,0 +1,4 @@
#Properties file for io.janusproject.plugin
Bundle-Vendor = janusproject.io
Bundle-Name = Eclipse Integration for Janus
classpathContainerPage.name = Janus Libraries
13 changes: 13 additions & 0 deletions sre/io.janusproject/io.janusproject.eclipse/about.mappings
@@ -0,0 +1,13 @@
# about.mappings
# contains fill-ins for about.properties
# java.io.Properties file (ISO 8859-1 with "\" escapes)
# This file does not need to be translated.

# This file may be automatically generated.
# Do not change it if there no replacement variables below.

0=20171005142245
1=2014-2017
2=the original authors or authors
3=http://www.sarl.io

12 changes: 12 additions & 0 deletions sre/io.janusproject/io.janusproject.eclipse/build.properties
@@ -0,0 +1,12 @@
source.. = src
bin.includes = META-INF/,\
.,\
OSGI-INF/,\
plugin.xml,\
OSGI-INF/l10n/bundle.properties,\
icons/,\
about.ini,\
about.mappings,\
about.properties
jre.compilation.profile = JavaSE-1.8

123 changes: 123 additions & 0 deletions sre/io.janusproject/io.janusproject.eclipse/pom.xml
@@ -0,0 +1,123 @@
<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>
<parent>
<groupId>io.janusproject.sre</groupId>
<artifactId>io.janusproject</artifactId>
<version>0.7.0-SNAPSHOT</version>
</parent>

<groupId>io.janusproject</groupId>
<artifactId>io.janusproject.eclipse</artifactId>
<packaging>eclipse-plugin</packaging>
<name>Eclipse Integration for Janus</name>
<inceptionYear>2014</inceptionYear>

<properties>
<jkernel.version>2.${project.version}</jkernel.version>
<cliRunnerMainClass>io.janusproject.Boot</cliRunnerMainClass>
<bootstrap>io.janusproject.Bootstrap</bootstrap>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
</plugin>

<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<executions>
<execution>
<id>prepare-eclipse-aboutbox</id>
<phase>process-resources</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<file>${project.basedir}/src-templates/about.mappings</file>
<outputFile>${project.basedir}/about.mappings</outputFile>
<replacements>
<replacement>
<token>%website%</token>
<value>${sarlUrl}</value>
</replacement>
<replacement>
<token>%sarlBuildId%</token>
<value>${buildId}</value>
</replacement>
<replacement>
<token>%copyrightdate%</token>
<value>${project.inceptionYear}-${year}</value>
</replacement>
<replacement>
<token>%copyrighters%</token>
<value>${copyrighters}</value>
</replacement>
<replacement>
<token>%sarlreleaseversion%</token>
<value>${sarl.release_version}</value>
</replacement>
<replacement>
<token>%sarlspecificationreleasedate%</token>
<value>${sarl.specification.release_date}</value>
</replacement>
</replacements>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<sourceDirectory>src</sourceDirectory>
</configuration>
</plugin>

</plugins>
</build>

<!-- ======================================= -->
<!-- ==== Release Management === -->
<!-- ======================================= -->
<profiles>
<profile>
<id>maven-release-of-janus-sre</id>
<activation>
<property>
<name>publicSarlApiModuleSet</name>
<value>true</value>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.arakhne.afc.maven</groupId>
<artifactId>tag-replacer</artifactId>
<configuration>
<sources>
<source>${project.basedir}/src</source>
<source>${project.basedir}/src-gen</source>
</sources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<sourcepath>${project.build.directory}/generated-sources/java</sourcepath>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>

</project>
21 changes: 15 additions & 6 deletions sre/io.janusproject/io.janusproject.feature/feature.xml
Expand Up @@ -224,23 +224,25 @@
<requires>
<import plugin="io.sarl.core" version="0.7.0" match="greaterOrEqual"/>
<import plugin="io.sarl.util" version="0.7.0" match="greaterOrEqual"/>
<import plugin="io.sarl.eclipse" version="0.7.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.osgi" version="3.12.0" match="greaterOrEqual"/>
<import plugin="com.hazelcast" version="3.9.0" match="greaterOrEqual"/>
<import plugin="org.zeromq.jeromq" version="0.4.2" match="greaterOrEqual"/>
<import plugin="com.google.inject" version="4.1.0" match="greaterOrEqual"/>
<import plugin="org.apache.commons.cli" version="1.3.1" match="greaterOrEqual"/>
<import plugin="org.arakhne.afc.core.vmutils" version="14.0.0" match="greaterOrEqual"/>
<import plugin="org.arakhne.afc.core.util" version="14.0.0" match="greaterOrEqual"/>
<import plugin="com.google.code.gson" version="2.8.0" match="greaterOrEqual"/>
<import plugin="javax.inject" version="1.0.0" match="greaterOrEqual"/>
<import plugin="io.janusproject.plugin" version="0.7.0" match="greaterOrEqual"/>
<import plugin="io.sarl.eclipse" version="0.7.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.jdt.core" version="3.13.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.core.runtime" version="3.13.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.ui.workbench" version="3.110.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.jdt.ui" version="3.13.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.jface" version="3.13.0" match="greaterOrEqual"/>
<import plugin="org.arakhne.afc.core.vmutils" version="14.0.0" match="greaterOrEqual"/>
<import plugin="org.arakhne.afc.core.util" version="14.0.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.swt" version="3.106.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.jdt.launching" version="3.9.0" match="greaterOrEqual"/>
<import plugin="com.google.code.gson" version="2.8.0" match="greaterOrEqual"/>
<import plugin="aopalliance" version="1.0.0" match="greaterOrEqual"/>
<import plugin="com.hazelcast" version="3.9.0" match="greaterOrEqual"/>
<import plugin="org.zeromq.jeromq" version="0.4.2" match="greaterOrEqual"/>
</requires>

<plugin
Expand Down Expand Up @@ -293,4 +295,11 @@
version="0.0.0"
unpack="false"/>

<plugin
id="io.janusproject.eclipse"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

</feature>
2 changes: 1 addition & 1 deletion sre/io.janusproject/io.janusproject.feature/pom.xml
Expand Up @@ -9,7 +9,7 @@

<artifactId>io.janusproject.feature</artifactId>
<packaging>eclipse-feature</packaging>
<name>SARL Examples Feature</name>
<name>Janus Feature</name>

<build>
<plugins>
Expand Down

0 comments on commit 01b5278

Please sign in to comment.