Skip to content

Commit

Permalink
feat: added CLI tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasRentzCAU committed Aug 16, 2024
1 parent e8c403d commit 6fbcceb
Show file tree
Hide file tree
Showing 53 changed files with 1,614 additions and 1,038 deletions.
4 changes: 2 additions & 2 deletions build/de.cau.cs.kieler.spviz.repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<name>Kieler Software Project Visualization Repository</name>

<parent>
<groupId>de.cau.cs.kieler.spviz</groupId>
<artifactId>parent</artifactId>
<groupId>de.cau.cs.kieler</groupId>
<artifactId>spviz-parent</artifactId>
<version>0.3.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
Expand Down
4 changes: 2 additions & 2 deletions build/de.cau.cs.kieler.spviz.targetplatform/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<name>Software Project Visualization Target Platform</name>

<parent>
<groupId>de.cau.cs.kieler.spviz</groupId>
<artifactId>parent</artifactId>
<groupId>de.cau.cs.kieler</groupId>
<artifactId>spviz-parent</artifactId>
<version>0.3.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
Expand Down
16 changes: 11 additions & 5 deletions build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,25 @@
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>de.cau.cs.kieler.spviz</groupId>
<artifactId>parent</artifactId>
<groupId>de.cau.cs.kieler</groupId>
<artifactId>spviz-parent</artifactId>
<version>0.3.1-SNAPSHOT</version>
<packaging>pom</packaging>


<!-- Define a few properties used throughout all build profiles. -->
<properties>
<tycho-version>2.7.3</tycho-version>
<tycho-version>2.7.5</tycho-version>
<xtext-version>2.33.0</xtext-version>
<xtend-version>2.33.0</xtend-version>
<targetJdk>17</targetJdk>

<!-- Non-breakable space, as normal spaces are trimmed. -->
<sourceFeatureLabelSuffix>&#xA0;(Sources)</sourceFeatureLabelSuffix>

<maven.compiler.source>17</maven.compiler.source>

<maven.compiler.target>17</maven.compiler.target>

<!-- guarantee that we use utf8 for compilation, this is especially required due to xtend's template symbols («) when running maven on windows. -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -25,7 +30,7 @@

<profiles>
<profile>
<id>repo</id>
<id>all</id>

<activation>
<activeByDefault>true</activeByDefault>
Expand All @@ -39,6 +44,7 @@
<module>../plugins/de.cau.cs.kieler.spviz.spvizmodel</module>
<module>../plugins/de.cau.cs.kieler.spviz.spvizmodel.ide</module>
<module>../plugins/de.cau.cs.kieler.spviz.spvizmodel.ui</module>
<module>../cli/de.cau.cs.kieler.spviz.cli</module>
<module>../features/de.cau.cs.kieler.spviz.feature</module>
<module>../features/de.cau.cs.kieler.spviz.ui.feature</module>
<!-- <module>../plugins/de.cau.cs.kieler.spviz.spviz.tests</module> --> <!-- You requested to install 'org.eclipse.equinox.p2.iu; org.junit.jupiter.api [5.0.0,6.0.0)' but it could not be found -->
Expand Down Expand Up @@ -70,7 +76,7 @@
<configuration>
<target>
<artifact>
<groupId>de.cau.cs.kieler.spviz</groupId>
<groupId>de.cau.cs.kieler</groupId>
<artifactId>de.cau.cs.kieler.spviz.targetplatform</artifactId>
<version>${project.version}</version>
</artifact>
Expand Down
21 changes: 21 additions & 0 deletions cli/de.cau.cs.kieler.spviz.cli/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry including="**/*.java" kind="src" output="target/classes" path="src">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="xtend-gen"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
29 changes: 29 additions & 0 deletions cli/de.cau.cs.kieler.spviz.cli/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>de.cau.cs.kieler.spviz.cli</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
</natures>
</projectDescription>
4 changes: 4 additions & 0 deletions cli/de.cau.cs.kieler.spviz.cli/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source.. = src/,\
xtend-gen/
bin.includes = .
bin.excludes = **/*.xtend
141 changes: 141 additions & 0 deletions cli/de.cau.cs.kieler.spviz.cli/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.cau.cs.kieler</groupId>
<artifactId>spviz-parent</artifactId>
<version>0.3.1-SNAPSHOT</version>
<relativePath>../../build/pom.xml</relativePath>
</parent>

<artifactId>de.cau.cs.kieler.spviz.cli</artifactId>

<dependencies>
<dependency>
<groupId>de.cau.cs.kieler</groupId>
<artifactId>de.cau.cs.kieler.spviz.spviz</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>de.cau.cs.kieler</groupId>
<artifactId>de.cau.cs.kieler.spviz.spvizmodel</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
<version>4.7.6</version>
</dependency>
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.codegen</artifactId>
<version>2.23.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.14</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtend</groupId>
<artifactId>org.eclipse.xtend.lib</artifactId>
<version>${xtend-version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.ide</artifactId>
<version>${xtext-version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xbase.lib</artifactId>
<version>${xtext-version}</version>
</dependency>
</dependencies>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<!-- Compile Xtend code -->
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
</plugin>

<!-- Build an uber jar with Maven Shade -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>de.cau.cs.kieler.spviz.cli.SPVizCLI</mainClass>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>plugin.properties</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
<addHeader>false</addHeader>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>**/*._trace</exclude>
<exclude>**/*.ecore</exclude>
<exclude>**/*.g</exclude>
<exclude>**/*.genmodel</exclude>
<exclude>**/*.mwe2</exclude>
<exclude>**/*.xsd</exclude>
<exclude>**/*.xtext</exclude>
<exclude>*.profile</exclude>
<exclude>*.html</exclude>
<exclude>.api_description</exclude>
<exclude>.genmodel</exclude>
<exclude>.options</exclude>
<exclude>about.*</exclude>
<exclude>about_files/*</exclude>
<exclude>fragment.properties</exclude>
<exclude>META-INF/*.inf</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/INDEX.LIST</exclude>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>modeling32.png</exclude>
<exclude>OSGI-INF/l10n/bundle.properties</exclude>
<exclude>plugin.xml</exclude>
<exclude>profile.list</exclude>
<exclude>schema/*.exsd</exclude>
<exclude>systembundle.properties</exclude>
<exclude>xtext32.png</exclude>
</excludes>
</filter>
<filter>
<artifact>org.eclipse.platform:*</artifact>
<excludes>
<exclude>**/*.png</exclude>
</excludes>
</filter>
</filters>
<shadedArtifactAttached>true</shadedArtifactAttached>
<finalName>spviz-cli</finalName>
<minimizeJar>false</minimizeJar>
</configuration>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit 6fbcceb

Please sign in to comment.