-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #435 from vmware/bugfix/427-missing-exec-package
[vrdt,packages] (#427) Restore missing `exec` package required for `Run vRO Action` VScode command
- Loading branch information
Showing
8 changed files
with
210 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# macOS | ||
.DS_Store | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
# Maven | ||
target/ | ||
|
||
# VSCode | ||
.vscode/ | ||
|
||
# IntelliJ IDEA | ||
out/ | ||
dist/ | ||
.idea/ | ||
*.iml | ||
|
||
# Eclipse | ||
.settings/ | ||
.project | ||
.classpath | ||
|
||
# Sonar | ||
.sonarlint/ | ||
|
||
# vRO local hint info and logs | ||
.o11n/ | ||
|
||
# vRO Package Meta Inf - Autogenerated | ||
**/META-INF/dunes-meta-inf.xml | ||
|
||
# Ignore release script output files | ||
release.properties | ||
*xml.releaseBackup | ||
package.json | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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>com.vmware.pscoe.o11n</groupId> | ||
<artifactId>xml-package</artifactId> | ||
<version>${revision}</version> | ||
<relativePath>../../maven/base-package/xml-package/pom.xml</relativePath> | ||
</parent> | ||
|
||
<groupId>com.vmware.pscoe.o11n</groupId> | ||
<artifactId>exec</artifactId> | ||
<packaging>package</packaging> | ||
|
||
<licenses> | ||
<license> | ||
<name>BSD-2 License</name> | ||
<url>https://github.com/vmware/build-tools-for-vmware-aria/tree/main/licenses/bsd2_license</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
|
||
<scm> | ||
<developerConnection>${scmDeveloperConnection}</developerConnection> | ||
</scm> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>flatten-maven-plugin</artifactId> | ||
<inherited>false</inherited> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
9 changes: 9 additions & 0 deletions
9
packages/exec/src/main/resources/Workflow/PSCoE/Library/vRO/Exec/Run Script.element_info.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> | ||
<properties> | ||
<comment>Exported from PSCoE o11n-convert</comment> | ||
<entry key="categoryPath">PSCoE.Library.vRO.Exec</entry> | ||
<entry key="name">Run Script</entry> | ||
<entry key="type">Workflow</entry> | ||
<entry key="id">98568979-76ed-4a4a-854b-1e730e2ef4f1</entry> | ||
</properties> |
60 changes: 60 additions & 0 deletions
60
packages/exec/src/main/resources/Workflow/PSCoE/Library/vRO/Exec/Run Script.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<workflow xmlns="http://vmware.com/vco/workflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://vmware.com/vco/workflow http://vmware.com/vco/workflow/Workflow-v4.xsd" root-name="item1" object-name="workflow:name=generic" id="98568979-76ed-4a4a-854b-1e730e2ef4f1" version="1.1.0" api-version="6.0.0" allowed-operations="evf" restartMode="1" resumeFromFailedMode="0"> | ||
<display-name><![CDATA[Run Script]]></display-name> | ||
<position y="50.0" x="100.0"/> | ||
<input> | ||
<param name="script" type="string"/> | ||
<param name="printInOutput" type="boolean"/> | ||
</input> | ||
<output> | ||
<param name="output" type="string"/> | ||
</output> | ||
<workflow-item name="item0" type="end" end-mode="0"> | ||
<position y="45.40909090909091" x="384.5"/> | ||
</workflow-item> | ||
<workflow-item name="item1" out-name="item0" type="task"> | ||
<display-name><![CDATA[Scriptable task]]></display-name> | ||
<script encoded="false"><![CDATA[if (printInOutput) { | ||
output = ""; | ||
function wrap(original, severity) { | ||
return function(message) { | ||
var timestamp = new Date().toISOString(); | ||
output += "[" + timestamp + "] [" + severity + "] " + message + "\n"; | ||
original(message); | ||
} | ||
} | ||
System.debug = wrap(System.debug, "debug"); | ||
System.log = wrap(System.log, "info"); | ||
System.warn = wrap(System.warn, "warning"); | ||
System.error = wrap(System.error, "error"); | ||
try { | ||
eval(script); | ||
} catch (e) { | ||
System.error(e.message); | ||
} | ||
} else { | ||
eval(script); | ||
}]]></script> | ||
<in-binding> | ||
<bind name="script" type="string" export-name="script"/> | ||
<bind name="printInOutput" type="boolean" export-name="printInOutput"/> | ||
</in-binding> | ||
<out-binding> | ||
<bind name="output" type="string" export-name="output"/> | ||
</out-binding> | ||
<position y="55.40909090909091" x="204.5"/> | ||
</workflow-item> | ||
<presentation> | ||
<p-param name="script"> | ||
<desc><![CDATA[script]]></desc> | ||
<p-qual kind="static" name="mandatory" type="boolean"><![CDATA[true]]></p-qual> | ||
<p-qual name="textInput" type="void"><![CDATA[__NULL__]]></p-qual> | ||
</p-param> | ||
<p-param name="printInOutput"> | ||
<desc><![CDATA[printInOutput]]></desc> | ||
</p-param> | ||
</presentation> | ||
</workflow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> | ||
<properties> | ||
<comment></comment> | ||
<entry key="pkg-description"></entry> | ||
<entry key="pkg-name">${groupId}.${artifactId}-${project.version}</entry> | ||
<entry key="used-plugins"></entry> | ||
<entry key="pkg-owner"></entry> | ||
<entry key="pkg-id">1923972837134578978903412456577823587</entry> | ||
</properties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> | ||
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> | ||
<artifactId>iac</artifactId> | ||
<groupId>com.vmware.pscoe</groupId> | ||
<version>${revision}</version> | ||
</parent> | ||
|
||
<groupId>com.vmware.pscoe.iac</groupId> | ||
<artifactId>packages</artifactId> | ||
<packaging>pom</packaging> | ||
<groupId>com.vmware.pscoe.iac</groupId> | ||
<artifactId>packages</artifactId> | ||
<packaging>pom</packaging> | ||
|
||
<modules> | ||
<module>ecmascript</module> | ||
<module>polyglot-wrapper</module> | ||
</modules> | ||
<modules> | ||
<module>ecmascript</module> | ||
<module>exec</module> | ||
<module>polyglot-wrapper</module> | ||
</modules> | ||
|
||
<properties> | ||
<main.basedir>${project.parent.basedir}</main.basedir> | ||
<maven.deploy.skip>true</maven.deploy.skip> | ||
</properties> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>2.5.3</version> | ||
<configuration> | ||
<autoVersionSubmodules>true</autoVersionSubmodules> | ||
<tagNameFormat>v@{project.version}</tagNameFormat> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<scm> | ||
<developerConnection>scm:git:ssh://[email protected]:vmware/build-tools-for-vmware-aria.git</developerConnection> | ||
<tag>HEAD</tag> | ||
</scm> | ||
<properties> | ||
<main.basedir>${project.parent.basedir}</main.basedir> | ||
<maven.deploy.skip>true</maven.deploy.skip> | ||
</properties> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>2.5.3</version> | ||
<configuration> | ||
<autoVersionSubmodules>true</autoVersionSubmodules> | ||
<tagNameFormat>v@{project.version}</tagNameFormat> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<scm> | ||
<developerConnection>scm:git:ssh://[email protected]:vmware/build-tools-for-vmware-aria.git</developerConnection> | ||
<tag>HEAD</tag> | ||
</scm> | ||
</project> |