Skip to content

Commit

Permalink
generating platform definition based on local plugins build.
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeec committed Apr 11, 2023
1 parent d091ce0 commit ebd5dec
Show file tree
Hide file tree
Showing 20 changed files with 203 additions and 203 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateP
cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateProcessingTest/template-sets/downloaded/crud-java-server-app-1.0.0-sources.jar
cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateProcessingTest/template-sets/downloaded/crud-java-server-app-complex-1.0.0.jar
cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateProcessingTest/template-sets/downloaded/crud-java-server-app-complex-1.0.0-sources.jar
cobigen-eclipse/cobigen-eclipse-releng/cobigen-eclipse-releng.target
9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ echo ""
echo "##########################################"
echo ""


if [[ -f "$(dirname ${0})/cobigen-eclipse/cobigen-eclipse-releng/cobigen-eclipse-releng.target" ]]
then
log_step "Eclipse target platform specification already built"
else
log_step "Building eclipse target platform specification"
doRunCommand "mvn install $MVN_SETTINGS --projects cobigen-eclipse/cobigen-eclipse-releng/ $DEBUG $PARALLELIZED $BATCH_MODE"
fi

if [[ "$NO_CLEAN" = false ]]
then
log_step "Cleanup Projects"
Expand Down
44 changes: 44 additions & 0 deletions cobigen-eclipse/cobigen-eclipse-releng/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.devonfw.cobigen</groupId>
<artifactId>eclipse-parent</artifactId>
<version>${revision}</version>
</parent>
<artifactId>cobigen-eclipse-releng</artifactId>
<packaging>eclipse-target-definition</packaging>

<properties>
<projectDir>${basedir}</projectDir>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>setup-targlet</id>
<phase>initialize</phase>
<goals>
<goal>copy-resources</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>${basedir}</outputDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="Eclipse 2018-12" sequenceNumber="51">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="false" type="InstallableUnit">
<repository location="http://download.eclipse.org/technology/swtbot/releases/latest/"/>
<unit id="org.eclipse.swtbot.eclipse.test.junit.feature.group" version="4.0.0.202206011610"/>
<unit id="org.eclipse.swtbot.feature.group" version="4.0.0.202206011610"/>
<unit id="org.eclipse.swtbot.eclipse.feature.group" version="4.0.0.202206011610"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="false" type="InstallableUnit">
<repository location="https://download.eclipse.org/releases/2018-12/"/>
<unit id="org.eclipse.sdk.ide" version="0.0.0"/>
<unit id="org.eclipse.equinox.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
<unit id="org.eclipse.m2e.feature.feature.group" version="0.0.0"/>
</location>
<location path="${projectDir}/../../cobigen-plugins/cobigen-javaplugin-parent/cobigen-javaplugin/target/repository" type="Directory"/>
<location path="${projectDir}/../../cobigen-plugins/cobigen-openapiplugin-parent/cobigen-openapiplugin/target/repository" type="Directory"/>
<location path="${projectDir}/../../cobigen-plugins/cobigen-xmlplugin/target/repository" type="Directory"/>
<location path="${projectDir}/../../cobigen-plugins/cobigen-jsonplugin/target/repository" type="Directory"/>
<location path="${projectDir}/../../cobigen-plugins/cobigen-htmlplugin/target/repository" type="Directory"/>
<location path="${projectDir}/../../cobigen-plugins/cobigen-propertyplugin/target/repository" type="Directory"/>
<location path="${projectDir}/../../cobigen-plugins/cobigen-textmerger/target/repository" type="Directory"/>
<location path="${projectDir}/../../cobigen-plugins/cobigen-templateengines/cobigen-tempeng-velocity/target/repository" type="Directory"/>
<location path="${projectDir}/../../cobigen-plugins/cobigen-templateengines/cobigen-tempeng-freemarker/target/repository" type="Directory"/>
<location path="${projectDir}/../../cobigen-plugins/cobigen-tsplugin/target/repository" type="Directory"/>
</locations>
</target>
30 changes: 29 additions & 1 deletion cobigen-eclipse/cobigen-eclipse-test/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,30 +1,52 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Automatic-Module-Name: com.devonfw.cobigen.eclipse.test
Bundle-Name: CobiGen Eclipse Plug-In Tests
Bundle-SymbolicName: com.devonfw.cobigen.eclipse.test;singleton:=true
Bundle-Version: 2021.12.007.qualifier
Bundle-Vendor: devonfw
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: lib/annotations.jar,
Bundle-ClassPath: .,
lib/annotations.jar,
lib/ant.jar,
lib/ant-nodeps.jar,
lib/assertj-core.jar,
lib/awaitility.jar,
lib/byte-buddy.jar,
lib/byte-buddy-agent.jar,
lib/checker-qual.jar,
lib/com.devonfw.cobigen.eclipse.jar,
lib/commons-compiler.jar,
lib/commons-compress.jar,
lib/commons-io.jar,
lib/commons-jxpath.jar,
lib/commons-lang3.jar,
lib/core.jar,
lib/core-api.jar,
lib/core-externalprocess-api.jar,
lib/core-test.jar,
lib/error_prone_annotations.jar,
lib/failureaccess.jar,
lib/gson.jar,
lib/guava.jar,
lib/hamcrest.jar,
lib/hamcrest-core.jar,
lib/istack-commons-runtime.jar,
lib/j2objc-annotations.jar,
lib/jackson-annotations.jar,
lib/jackson-core.jar,
lib/jackson-databind.jar,
lib/jakarta.activation.jar,
lib/jakarta.xml.bind-api.jar,
lib/janino.jar,
lib/javaplugin-model.jar,
lib/java-sizeof.jar,
lib/javassist.jar,
lib/javax.inject.jar,
lib/jaxb-core.jar,
lib/jaxb-impl.jar,
lib/jaxen.jar,
lib/jcl-over-slf4j.jar,
lib/jsr305.jar,
lib/junit.jar,
Expand All @@ -36,15 +58,21 @@ Bundle-ClassPath: lib/annotations.jar,
lib/log4j-over-slf4j.jar,
lib/logback-classic.jar,
lib/logback-core.jar,
lib/maven-model.jar,
lib/mmm-base.jar,
lib/mockito-core.jar,
lib/objenesis.jar,
lib/okhttp.jar,
lib/okio.jar,
lib/okio-jvm.jar,
lib/orika-core.jar,
lib/paranamer.jar,
lib/plexus-cipher.jar,
lib/plexus-sec-dispatcher.jar,
lib/plexus-utils.jar,
lib/slf4j-api.jar,
lib/system-lambda.jar,
lib/txw2.jar,
lib/xmlunit.jar,
lib/zt-exec.jar
Require-Bundle: org.eclipse.swtbot.junit4_x;bundle-version="2.4.0",
Expand Down
33 changes: 31 additions & 2 deletions cobigen-eclipse/cobigen-eclipse-test/build.properties
Original file line number Diff line number Diff line change
@@ -1,25 +1,47 @@
output.. = bin/
bin.includes = META-INF/,\
output.. = eclipse-target/classes/
source.. = src/main/java/
bin.includes = .,\
META-INF/,\
plugin.xml,\
lib/annotations.jar,\
lib/ant.jar,\
lib/ant-nodeps.jar,\
lib/assertj-core.jar,\
lib/awaitility.jar,\
lib/byte-buddy.jar,\
lib/byte-buddy-agent.jar,\
lib/checker-qual.jar,\
lib/com.devonfw.cobigen.eclipse.jar,\
lib/commons-compiler.jar,\
lib/commons-compress.jar,\
lib/commons-io.jar,\
lib/commons-jxpath.jar,\
lib/commons-lang3.jar,\
lib/core.jar,\
lib/core-api.jar,\
lib/core-externalprocess-api.jar,\
lib/core-test.jar,\
lib/error_prone_annotations.jar,\
lib/failureaccess.jar,\
lib/gson.jar,\
lib/guava.jar,\
lib/hamcrest.jar,\
lib/hamcrest-core.jar,\
lib/istack-commons-runtime.jar,\
lib/j2objc-annotations.jar,\
lib/jackson-annotations.jar,\
lib/jackson-core.jar,\
lib/jackson-databind.jar,\
lib/jakarta.activation.jar,\
lib/jakarta.xml.bind-api.jar,\
lib/janino.jar,\
lib/javaplugin-model.jar,\
lib/java-sizeof.jar,\
lib/javassist.jar,\
lib/javax.inject.jar,\
lib/jaxb-core.jar,\
lib/jaxb-impl.jar,\
lib/jaxen.jar,\
lib/jcl-over-slf4j.jar,\
lib/jsr305.jar,\
lib/junit.jar,\
Expand All @@ -31,14 +53,21 @@ bin.includes = META-INF/,\
lib/log4j-over-slf4j.jar,\
lib/logback-classic.jar,\
lib/logback-core.jar,\
lib/maven-model.jar,\
lib/mmm-base.jar,\
lib/mockito-core.jar,\
lib/objenesis.jar,\
lib/okhttp.jar,\
lib/okio.jar,\
lib/okio-jvm.jar,\
lib/orika-core.jar,\
lib/paranamer.jar,\
lib/plexus-cipher.jar,\
lib/plexus-sec-dispatcher.jar,\
lib/plexus-utils.jar,\
lib/slf4j-api.jar,\
lib/system-lambda.jar,\
lib/txw2.jar,\
lib/xmlunit.jar,\
lib/zt-exec.jar

135 changes: 12 additions & 123 deletions cobigen-eclipse/cobigen-eclipse-test/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<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">
<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>
<artifactId>com.devonfw.cobigen.eclipse.test</artifactId>
<name>CobiGen - Eclipse Plug-In E2E Test</name>
Expand Down Expand Up @@ -114,131 +116,18 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>p2-installable-unit</type>
<id>org.eclipse.m2e.feature.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>p2-installable-unit</type>
<id>com.devonfw.cobigen.eclipse.feature.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>p2-installable-unit</type>
<id>com.devonfw.cobigen.htmlplugin</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>p2-installable-unit</type>
<id>com.devonfw.cobigen.javaplugin</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>p2-installable-unit</type>
<id>com.devonfw.cobigen.jsonplugin</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>p2-installable-unit</type>
<id>com.devonfw.cobigen.propertyplugin</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>p2-installable-unit</type>
<id>com.devonfw.cobigen.textmerger</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>p2-installable-unit</type>
<id>com.devonfw.cobigen.tsplugin</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>p2-installable-unit</type>
<id>com.devonfw.cobigen.xmlplugin</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>p2-installable-unit</type>
<id>com.devonfw.cobigen.openapiplugin</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>p2-installable-unit</type>
<id>com.devonfw.cobigen.tempeng-freemarker</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>p2-installable-unit</type>
<id>com.devonfw.cobigen.tempeng-velocity</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
<target>
<artifact>
<groupId>${project.groupId}</groupId>
<artifactId>cobigen-eclipse-releng</artifactId>
<version>${revision}</version>
<relativePath>../cobigen-eclipse-releng/pom.xml</relativePath>
</artifact>
</target>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>swtbot</id>
<url>http://download.eclipse.org/technology/swtbot/releases/latest/</url>
<layout>p2</layout>
</repository>
<repository>
<id>htmlplugin</id>
<url>file:///${maven.multiModuleProjectDirectory}/cobigen-plugins/cobigen-htmlplugin/target/repository</url>
<layout>p2</layout>
</repository>
<repository>
<id>javaplugin</id>
<url>file:///${maven.multiModuleProjectDirectory}/cobigen-plugins/cobigen-javaplugin-parent/cobigen-javaplugin/target/repository</url>
<layout>p2</layout>
</repository>
<repository>
<id>jsonplugin</id>
<url>file:///${maven.multiModuleProjectDirectory}/cobigen-plugins/cobigen-jsonplugin/target/repository</url>
<layout>p2</layout>
</repository>
<repository>
<id>openapiplugin</id>
<url>file:///${maven.multiModuleProjectDirectory}/cobigen-plugins/cobigen-openapiplugin-parent/cobigen-openapiplugin/target/repository</url>
<layout>p2</layout>
</repository>
<repository>
<id>propertyplugin</id>
<url>file:///${maven.multiModuleProjectDirectory}/cobigen-plugins/cobigen-propertyplugin/target/repository</url>
<layout>p2</layout>
</repository>
<repository>
<id>freemarker</id>
<url>file:///${maven.multiModuleProjectDirectory}/cobigen-plugins/cobigen-templateengines/cobigen-tempeng-freemarker/target/repository</url>
<layout>p2</layout>
</repository>
<repository>
<id>velocity</id>
<url>file:///${maven.multiModuleProjectDirectory}/cobigen-plugins/cobigen-templateengines/cobigen-tempeng-velocity/target/repository</url>
<layout>p2</layout>
</repository>
<repository>
<id>textmerger</id>
<url>file:///${maven.multiModuleProjectDirectory}/cobigen-plugins/cobigen-textmerger/target/repository</url>
<layout>p2</layout>
</repository>
<repository>
<id>tsplugin</id>
<url>file:///${maven.multiModuleProjectDirectory}/cobigen-plugins/cobigen-tsplugin/target/repository</url>
<layout>p2</layout>
</repository>
<repository>
<id>xmlplugin</id>
<url>file:///${maven.multiModuleProjectDirectory}/cobigen-plugins/cobigen-xmlplugin/target/repository</url>
<layout>p2</layout>
</repository>
</repositories>
</profile>
</profiles>
</project>
</project>
Loading

0 comments on commit ebd5dec

Please sign in to comment.