Skip to content

Commit

Permalink
TCS rebrand
Browse files Browse the repository at this point in the history
  • Loading branch information
mar3kl committed Dec 19, 2023
1 parent 3de1857 commit 361e040
Show file tree
Hide file tree
Showing 19 changed files with 95 additions and 97 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ abstract class BaseMojo extends AbstractMojo {
*/
protected static String LIVEVIEW_TYPE = "ep-liveview-fragment";
/**
* TIBCO Cloud Streaming packaging and type
* Streaming Web flow packaging and type
*/
protected static String TCS_TYPE = "ep-tcs-fragment";
protected static String TCS_TYPE = "ep-sw-fragment";
/**
* system property for reports
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/*******************************************************************************
*
* COPYRIGHT
* Copyright 2019-2020 TIBCO Software Inc. ALL RIGHTS RESERVED.
* TIBCO Software Inc. Confidential Information
* Copyright (c) 2019-2023 Cloud Software Group, Inc. All Rights Reserved. Confidential & Proprietary.
*
*******************************************************************************/
package com.tibco.ep.buildmavenplugin;
Expand All @@ -14,7 +13,7 @@
import static org.apache.maven.plugins.annotations.LifecyclePhase.PACKAGE;

/**
* <p>Build a TCS fragment</p>
* <p>Build a Streaming Web flow fragment</p>
*
* <p>The packaging rules are as follows :-</p>
* <ol>
Expand Down Expand Up @@ -42,14 +41,14 @@
* from the nar AOL values (http://maven-nar.github.io/aol.html) to internal
* values.</p>
*
* <p>The generated filename is &lt;artifactId&gt;-&lt;version&gt;-ep-tcs-fragment.zip</p>
* <p>The generated filename is &lt;artifactId&gt;-&lt;version&gt;-ep-sw-fragment.zip</p>
*/
@Mojo(name = "package-tcs-fragment", defaultPhase = PACKAGE, requiresDependencyResolution = ResolutionScope.RUNTIME, threadSafe = true)
public class PackageTCSFragmentMojo extends BasePackageMojo {
@Mojo(name = "package-sw-fragment", defaultPhase = PACKAGE, requiresDependencyResolution = ResolutionScope.RUNTIME, threadSafe = true)
public class PackageSWFragmentMojo extends BasePackageMojo {

@Override
public void execute() throws MojoExecutionException {
getLog().debug("Creating TCS fragment");
getLog().debug("Creating Streaming Web flow fragment");

prechecks();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<goal>generate-test-eventflow</goal>
<goal>package-liveview-fragment</goal>
<goal>package-eventflow-fragment</goal>
<goal>package-tcs-fragment</goal>
<goal>package-sw-fragment</goal>
<goal>package-application</goal>
</goals>
</pluginExecutionFilter>
Expand Down
8 changes: 4 additions & 4 deletions ep-maven/src/main/resources/META-INF/plexus/components.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@

<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>ep-tcs-fragment</role-hint>
<role-hint>ep-sw-fragment</role-hint>
<implementation>
org.apache.maven.artifact.handler.DefaultArtifactHandler
</implementation>
<configuration>
<type>ep-tcs-fragment</type>
<type>ep-sw-fragment</type>
<extension>zip</extension>
<language>java</language>
<addedToClasspath>true</addedToClasspath>
Expand Down Expand Up @@ -312,7 +312,7 @@

<component>
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
<role-hint>ep-tcs-fragment</role-hint>
<role-hint>ep-sw-fragment</role-hint>
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
<configuration>
<lifecycles>
Expand Down Expand Up @@ -345,7 +345,7 @@
org.apache.maven.plugins:maven-compiler-plugin:testCompile
</test-compile>
<package>
${project.groupId}:${project.artifactId}:${project.version}:package-tcs-fragment
${project.groupId}:${project.artifactId}:${project.version}:package-sw-fragment
</package>
<install>
org.apache.maven.plugins:maven-install-plugin:install
Expand Down
6 changes: 3 additions & 3 deletions ep-maven/src/site/markdown/goals.md.vm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The maven goals available are :

* [com.tibco.ep:ep-maven-plugin:test-eventflow-fragment](${context.get("site.ep-maven-plugin.url")}/test-eventflow-fragment-mojo.html)

* [com.tibco.ep:ep-maven-plugin:package-tcs-fragment](${context.get("site.ep-maven-plugin.url")}/package-tcs-fragment-mojo.html)
* [com.tibco.ep:ep-maven-plugin:package-sw-fragment](${context.get("site.ep-maven-plugin.url")}/package-sw-fragment-mojo.html)

* [com.tibco.ep:ep-maven-plugin:package-liveview-fragment](${context.get("site.ep-maven-plugin.url")}/package-liveview-fragment-mojo.html)

Expand Down Expand Up @@ -124,7 +124,7 @@ Clean lifecycle :-
| pre-clean | [com.tibco.ep:ep-maven-plugin:install-product](${context.get("site.ep-maven-plugin.url")}/install-product-mojo.html)
| clean | <br>[com.tibco.ep:ep-maven-plugin:stop-nodes](${context.get("site.ep-maven-plugin.url")}/stop-nodes-mojo.html),</br><br>[org.apache.maven.plugins:maven-clean-plugin:clean](https://maven.apache.org/plugins/maven-clean-plugin/clean-mojo.html)</br>

* Packaging **ep-tcs-fragment**
* Packaging **ep-sw-fragment**

Default lifecycle :

Expand All @@ -135,7 +135,7 @@ Default lifecycle :
| compile | [org.apache.maven.plugins:maven-compiler-plugin:compile](https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html)
| process-test-resources | <br>[org.apache.maven.plugins:maven-resources-plugin:testResources](https://maven.apache.org/plugins/maven-resources-plugin/)</br>,<br>[org.apache.maven.plugins:maven-compiler-plugin:testCompile](https://maven.apache.org/plugins/maven-compiler-plugin/testCompile-mojo.html)</br><br>[com.tibco.ep:ep-maven-plugin:generate-main-eventflow](${context.get("site.ep-maven-plugin.url")}/generate-main-eventflow-mojo.html),</br>
| test-compile | [org.apache.maven.plugins:maven-compiler-plugin:testCompile](https://maven.apache.org/plugins/maven-compiler-plugin/testCompile-mojo.html)
| package | [com.tibco.ep:ep-maven-plugin:package-tcs-fragment](${context.get("site.ep-maven-plugin.url")}/package-tcs-fragment-mojo.html)
| package | [com.tibco.ep:ep-maven-plugin:package-sw-fragment](${context.get("site.ep-maven-plugin.url")}/package-sw-fragment-mojo.html)
| install | [org.apache.maven.plugins:maven-install-plugin:install](https://maven.apache.org/plugins/maven-install-plugin/install-mojo.html)
| deploy | [org.apache.maven.plugins:maven-deploy-plugin:deploy](https://maven.apache.org/plugins/maven-deploy-plugin/)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TIBCO Cloud Streaming fragment examples
# Streaming Web flow fragment examples

* [Directory structure](#directory-structure)
* [Basic build and install](#basic-build-and-install)
Expand All @@ -8,9 +8,9 @@

# Directory structure

The recommended TIBCO Cloud Streaming directory structure is :
The recommended Spotfire Streaming directory structure is :

![EventFlow directory structure](uml/tcs-structure.svg)
![EventFlow directory structure](uml/sw-structure.svg)

Note that the default source directory is set by the plugin to
src/main/eventflow.
Expand All @@ -31,15 +31,15 @@ repository, a TIBCO Cloud Streaming fragment.
<modelVersion>4.0.0</modelVersion>

<groupId>com.tibco.ep</groupId>
<artifactId>tcsfrag</artifactId>
<packaging>ep-tcs-fragment</packaging>
<artifactId>swfrag</artifactId>
<packaging>ep-sw-fragment</packaging>
<version>1.0.0</version>
<name>hello world</name>

<!-- common definitions for this version of StreamBase -->
<parent>
<groupId>com.tibco.ep.sb.parent</groupId>
<artifactId>ep-tcs-fragment</artifactId>
<artifactId>ep-sw-fragment</artifactId>
<version>${sbrtVersion}</version>
</parent>

Expand All @@ -54,8 +54,8 @@ maven to perform the following steps :
installed. If its not, maven will download the archive and the plugin
will extract into $TIBCO_EP_HOME.

2. Uses [package-tcs-fragment](${context.get("site.ep-maven-plugin.url")}/package-tcs-fragment-mojo.html) to create
a TIBCO Cloud Streaming fragment zip file in the build directory (by default, set to target)
2. Uses [package-sw-fragment](${context.get("site.ep-maven-plugin.url")}/package-sw-fragment-mojo.html) to create
a Streaming Web flow fragment zip file in the build directory (by default, set to target)
and attaches it to the build.

3. Uses the standard maven plugin [maven-install-plugin:install](https://maven.apache.org/plugins/maven-install-plugin/install-mojo.html)
Expand All @@ -68,30 +68,30 @@ $ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TCS Fragment - GoldyLocks 3.0.0
[INFO] Building Streaming Web Flow Fragment - GoldyLocks 3.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- ep-maven-plugin:1.0.0:install-product (default-install-product-1) @ goldylocks ---
[INFO] com.tibco.ep.thirdparty:tibco-sb_osxx86_64:zip:7.6.0:test already installed
[INFO]
[INFO] --- ep-maven-plugin:1.3.1-SNAPSHOT:package-tcs-fragment (default-package-tcs-fragment) @ tcs ---
[INFO] Building zip: /Users/markl/examples/tcs/target/tcs-10.5.0-SNAPSHOT-ep-tcs-fragment.zip
[INFO] --- ep-maven-plugin:1.3.1-SNAPSHOT:package-sw-fragment (default-package-sw-fragment) @ sw ---
[INFO] Building zip: /Users/me/examples/sw/target/sw-10.5.0-SNAPSHOT-ep-sw-fragment.zip
[INFO]
[INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ tcs >>>
[INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ sw >>>
[INFO]
[INFO] --- ep-maven-plugin:1.3.1-SNAPSHOT:install-product (default-install-product-1) @ tcs ---
[INFO] com.tibco.ep.sb.rt:platform_osxx86_64:zip:10.5.0-SNAPSHOT:test already installed manually to /Users/markl/work/sb10dist
[INFO] --- ep-maven-plugin:1.3.1-SNAPSHOT:install-product (default-install-product-1) @ sw ---
[INFO] com.tibco.ep.sb.rt:platform_osxx86_64:zip:10.5.0-SNAPSHOT:test already installed manually to /Users/me/work/sb10dist
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create-timestamp (default) @ goldylocks ---
[INFO]
[INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ tcs ---
[INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ sw ---
[INFO]
[INFO] --- maven-javadoc-plugin:3.0.1:jar (attach-javadocs) @ tcs ---
[INFO] --- maven-javadoc-plugin:3.0.1:jar (attach-javadocs) @ sw ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ tcs ---
[INFO] Installing /Users/markl/examples/tcs/target/tcs-10.5.0-SNAPSHOT-ep-tcs-fragment.zip to /Users/markl/workspace/BUILD/repository/com/tibco/example/tcs/10.5.0-SNAPSHOT/tcs-10.5.0-SNAPSHOT.zip
[INFO] Installing /Users/markl/examples/tcs/pom.xml to /Users/markl/workspace/BUILD/repository/com/tibco/example/tcs/10.5.0-SNAPSHOT/tcs-10.5.0-SNAPSHOT.pom
[INFO] Installing /Users/markl/examples/tcs/target/tcs-10.5.0-SNAPSHOT-sources.jar to /Users/markl/workspace/BUILD/repository/com/tibco/example/tcs/10.5.0-SNAPSHOT/tcs-10.5.0-SNAPSHOT-sources.jar
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ sw ---
[INFO] Installing /Users/me/examples/sw/target/sw-10.5.0-SNAPSHOT-ep-sw-fragment.zip to /Users/me/workspace/BUILD/repository/com/tibco/example/sw/10.5.0-SNAPSHOT/sw-10.5.0-SNAPSHOT.zip
[INFO] Installing /Users/me/examples/sw/pom.xml to /Users/me/workspace/BUILD/repository/com/tibco/example/sw/10.5.0-SNAPSHOT/sw-10.5.0-SNAPSHOT.pom
[INFO] Installing /Users/me/examples/sw/target/sw-10.5.0-SNAPSHOT-sources.jar to /Users/me/workspace/BUILD/repository/com/tibco/example/sw/10.5.0-SNAPSHOT/sw-10.5.0-SNAPSHOT-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<h>460</h>
</coordinates>
<panel_attributes>type=Package
ep-tcs-fragment - pom.xml
ep-sw-fragment - pom.xml

src
main
configurations - HOCON configuration files, including TCS flow definition
configurations - HOCON configuration files, including Streaming Web flow definition
resources - HOCON schemas, Logback configurations
test
configurations - HOCON test configuration files
Expand Down
16 changes: 8 additions & 8 deletions ep-maven/src/site/markdown/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The maven plugin supports the following packaging types :

* **ep-liveview-fragment** - LiveView fragment

* **ep-tcs-fragment** - TIBCO Cloud Streaming fragment
* **ep-sw-fragment** - Streaming Web flow fragment

* **ep-application** - Application archive

Expand Down Expand Up @@ -246,24 +246,24 @@ This is sufficient to build the eventflow fragment, unit test using sbunit on
a default environment and install the fragment to the local maven repository
for use by other modules.

A TIBCO Cloud Streaming fragment module has a packaging type of
**ep-tcs-fragment**, a list of project dependencies and build rules.
A Spotfire Streaming Web flow fragment module has a packaging type of
**ep-sw-fragment**, a list of project dependencies and build rules.

``` xml
<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>

<groupId>com.tibco.ep.dtmexamples.eventflowfragment</groupId>
<artifactId>my-tcs-project</artifactId>
<packaging>ep-tcs-fragment</packaging>
<artifactId>my-sw-project</artifactId>
<packaging>ep-sw-fragment</packaging>
<version>3.0.0</version>
<name>TCS Fragment - my-tcs-project</name>
<name>Streaming Web Flow Fragment - my-sw-project</name>

<!-- common definitions for this version of StreamBase -->
<parent>
<groupId>com.tibco.ep.sb.parent</groupId>
<artifactId>ep-tcs-fragment</artifactId>
<artifactId>ep-sw-fragment</artifactId>
<version>${sbrtVersion}</version>
</parent>

Expand All @@ -282,7 +282,7 @@ A TIBCO Cloud Streaming fragment module has a packaging type of
</project>
```

This is sufficient to build the TCS fragment and install the fragment to the local maven
This is sufficient to build the Streaming Web flow fragment and install the fragment to the local maven
repository for use by other modules.


Expand Down
4 changes: 2 additions & 2 deletions ep-maven/src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<item name="Java fragment examples" href="java_examples.html" />
<item name="Java jar examples" href="java_jar_examples.html" />
<item name="EventFlow fragment examples" href="eventflow_examples.html" />
<item name="TIBCO Cloud Streaming fragment examples" href="tcs_examples.html" />
<item name="Streaming Web flow fragment examples" href="sw_examples.html" />
<item name="LiveView fragment examples" href="liveview_examples.html" />
<item name="Application examples" href="application_examples.html" />
<item name="CI examples" href="contint_examples.html" />
Expand All @@ -74,7 +74,7 @@
<item name="LiveView - compile" href="compile-liveview-fragment-mojo.html" />
<item name="LiveView - package" href="package-liveview-fragment-mojo.html" />
<item name="LiveView - unit test" href="test-liveview-fragment-mojo.html" />
<item name="TIBCO Cloud Streaming - package" href="package-tcs-fragment-mojo.html" />
<item name="Streaming Web - package" href="package-sw-fragment-mojo.html" />
<item name="Application - package" href="package-application-mojo.html" />
<item name="Manage - start nodes" href="start-nodes-mojo.html" />
<item name="Manage - stop nodes" href="stop-nodes-mojo.html" />
Expand Down
Loading

0 comments on commit 361e040

Please sign in to comment.