This file contains hidden or 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
BASE=1.19 # or whatever; last release compatible with targeted core or other deps | |
BASETAG=mystuff-${BASE} # or as per http://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html#tagNameFormat | |
FIX=abcd1234 # whatever the backportable fix was, in master or somewhere newer than $BASE | |
git checkout -b ${BASE}.x $(git log --reverse --ancestry-path --pretty=%H ${BASETAG}..master | head -1) | |
# or for JEP-305 (“Incrementals”) use: mvn versions:set-property -Dproperty=revision -DnewVersion=${BASE}.1 | |
mvn versions:set -DnewVersion=${BASE}.1-SNAPSHOT -DgenerateBackupPoms=false | |
git commit -a -m "Prepare for ${BASE}.1" | |
git push -u origin ${BASE}.x | |
git cherry-pick -x -m1 $FIX | |
mvn -B release:{prepare,perform} |
This file contains hidden or 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
#!/bin/sh | |
# oc-postgre-backup | |
# creates a backup file for a postgre database running on an openshift pod | |
# ------------------ | |
# requires: | |
# - oc - openshift client, allowing connecting to the postgre pod | |
# - pg_dump - part of the postgresql package, allowing creating the dump file from the database | |
# ------------------ | |
# arguments: |
This file contains hidden or 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
clic:mvn --maven-reference com.worldline.clic:example.remote-shell.myconfig:1.0.0-SNAPSHOT --generate-pom --maven-command antrun:run -Dpassphrase=mySecretPassphrase -Dusername=myself -Dcommand='uname -a' |
This file contains hidden or 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
clic:mvn --maven-reference com.worldline.clic:example.remote-shell:1.0.0-SNAPSHOT --generate-pom --maven-command antrun:run -Dhost=my-host -Dport=22 -Dkeyfile=/path/to/id_rsa -Dpassphrase=mySecretPassphrase -Dusername=myself -Dcommand='uname -a' |
This file contains hidden or 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
<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.worldline.clic</groupId> | |
<artifactId>example.remote-shell</artifactId> | |
<version>[1.0.0-SNAPSHOT,)</version> | |
</parent> | |
This file contains hidden or 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
<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.worldline.clic</groupId> | |
<artifactId>example.remote-shell</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<name>Remote Shell Example</name> | |
This file contains hidden or 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
package com.sample.demo.commands; | |
import com.sample.demo.Messages; | |
import com.worldline.clic.commands.AbstractCommand; | |
import com.worldline.clic.commands.CommandContext; | |
/** | |
* Just an example of a command... | |
* | |
* @author aneveux |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<?eclipse version="3.4"?> | |
<plugin> | |
<extension | |
point="com.worldline.clic.commands"> | |
<command | |
description="Just an example of a command you could develop..." | |
id="example:hello" | |
implementation="com.sample.demo.commands.HelloCommand"> | |
</command> |
This file contains hidden or 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
package com.acme.sample.commands; | |
import com.acme.sample.Messages; | |
import com.worldline.clic.commands.AbstractCommand; | |
import com.worldline.clic.commands.CommandContext; | |
/** | |
* Just an example of a command... | |
* | |
* @author aneveux |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<?eclipse version="3.4"?> | |
<plugin> | |
<extension | |
point="com.worldline.clic.commands"> | |
<command | |
description="Just an example of a command you could develop..." | |
id="example:hello" | |
implementation="com.acme.sample.commands.HelloCommand"> | |
</command> |
NewerOlder