From bd660003f416bdf8c283fd73674e6e7ee574c382 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Tue, 19 Sep 2017 18:31:23 +0200 Subject: [PATCH] Added standalone module --- .../com.minres.rdl.standalone/.classpath | 28 +++ .../com.minres.rdl.standalone/.project | 24 +++ .../org.eclipse.core.resources.prefs | 2 + .../.settings/org.eclipse.jdt.core.prefs | 5 + .../org.eclipse.jdt.groovy.core.prefs | 2 + .../.settings/org.eclipse.m2e.core.prefs | 4 + .../com.minres.rdl.standalone/assemble.groovy | 20 ++ .../com.minres.rdl.standalone/category.xml | 5 + .../com.minres.rdl.standalone/pom.xml | 173 ++++++++++++++++++ com.minres.rdl.parent/pom.xml | 1 + 10 files changed, 264 insertions(+) create mode 100644 com.minres.rdl.parent/com.minres.rdl.standalone/.classpath create mode 100644 com.minres.rdl.parent/com.minres.rdl.standalone/.project create mode 100644 com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.core.resources.prefs create mode 100644 com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.jdt.core.prefs create mode 100644 com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.jdt.groovy.core.prefs create mode 100644 com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.m2e.core.prefs create mode 100644 com.minres.rdl.parent/com.minres.rdl.standalone/assemble.groovy create mode 100644 com.minres.rdl.parent/com.minres.rdl.standalone/category.xml create mode 100644 com.minres.rdl.parent/com.minres.rdl.standalone/pom.xml diff --git a/com.minres.rdl.parent/com.minres.rdl.standalone/.classpath b/com.minres.rdl.parent/com.minres.rdl.standalone/.classpath new file mode 100644 index 0000000..7ef76c3 --- /dev/null +++ b/com.minres.rdl.parent/com.minres.rdl.standalone/.classpath @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/com.minres.rdl.parent/com.minres.rdl.standalone/.project b/com.minres.rdl.parent/com.minres.rdl.standalone/.project new file mode 100644 index 0000000..d828b26 --- /dev/null +++ b/com.minres.rdl.parent/com.minres.rdl.standalone/.project @@ -0,0 +1,24 @@ + + + com.minres.rdl.standalone + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.groovy.core.groovyNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.core.resources.prefs b/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.jdt.core.prefs b/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..abec6ca --- /dev/null +++ b/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.jdt.groovy.core.prefs b/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.jdt.groovy.core.prefs new file mode 100644 index 0000000..74af1ba --- /dev/null +++ b/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.jdt.groovy.core.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +groovy.compiler.level=25 diff --git a/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.m2e.core.prefs b/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/com.minres.rdl.parent/com.minres.rdl.standalone/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/com.minres.rdl.parent/com.minres.rdl.standalone/assemble.groovy b/com.minres.rdl.parent/com.minres.rdl.standalone/assemble.groovy new file mode 100644 index 0000000..5ea2a9c --- /dev/null +++ b/com.minres.rdl.parent/com.minres.rdl.standalone/assemble.groovy @@ -0,0 +1,20 @@ +import static groovy.io.FileType.FILES + +// Collect all jars. +def jars = [] +def root = new File(project.getBasedir(), 'target/classes') +def libs = new File(project.getBasedir(), 'target/classes/lib') + +libs.eachFileRecurse (FILES) { file -> + jars << root.toURI().relativize(file.toURI()).toString() +} + +// Write the manifest file. +def manifest = new File(project.getBasedir(), 'target/classes/META-INF/MANIFEST.MF') + +manifest.write '' + +manifest << 'Manifest-Version: 1.0\n' +manifest << 'Class-Path: . ' + jars.join(' ') + '\n' +manifest << 'Rsrc-Main-Class: com.minres.rdl.generator.Main\n' +manifest << 'Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader\n' \ No newline at end of file diff --git a/com.minres.rdl.parent/com.minres.rdl.standalone/category.xml b/com.minres.rdl.parent/com.minres.rdl.standalone/category.xml new file mode 100644 index 0000000..064bc16 --- /dev/null +++ b/com.minres.rdl.parent/com.minres.rdl.standalone/category.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/com.minres.rdl.parent/com.minres.rdl.standalone/pom.xml b/com.minres.rdl.parent/com.minres.rdl.standalone/pom.xml new file mode 100644 index 0000000..76b23c7 --- /dev/null +++ b/com.minres.rdl.parent/com.minres.rdl.standalone/pom.xml @@ -0,0 +1,173 @@ + + 4.0.0 + com.minres.rdl.standalone + eclipse-repository + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-clean-plugin + + + [2.5,) + + + clean + + + + + + + + + + + + + + + org.eclipse.tycho + tycho-p2-repository-plugin + ${tycho-version} + + true + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.0.1 + + + unpack + package + + unpack + + + + + org.raisercostin + eclipse-jarinjarloader + 1.3 + jar + false + ${project.build.directory}/classes + + + com.minres.rdl + com.minres.rdl + 1.0.0-SNAPSHOT + jar + false + ${project.build.directory}/classes + + + + + + + + org.apache.maven.plugins + maven-resources-plugin + 3.0.2 + + + copy-resources + package + + copy-resources + + + ${project.build.directory}/classes/lib + + + ${project.build.directory}/repository/plugins + + + + + + + + com.alexecollins.maven.plugin + script-maven-plugin + 1.0.0 + + + package + + execute + + + groovy + assemble.groovy + + + + + + org.codehaus.groovy + groovy-bsf + 2.4.3 + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.8 + + + package + + run + + + + + + + + + + + + + + + + + jcenter-bintray + Bintray JCenter Maven Repository + default + https://jcenter.bintray.com/ + + true + + + false + + + + + com.minres.rdl.parent + com.minres.rdl + 1.0.0-SNAPSHOT + + \ No newline at end of file diff --git a/com.minres.rdl.parent/pom.xml b/com.minres.rdl.parent/pom.xml index 6b0a372..4731ffa 100644 --- a/com.minres.rdl.parent/pom.xml +++ b/com.minres.rdl.parent/pom.xml @@ -25,6 +25,7 @@ com.minres.rdl.product com.minres.rdl.product.feature com.minres.rdl.platform.feature + com.minres.rdl.standalone