Skip to content

Commit

Permalink
Merge pull request #99 from diverse-project/fix_wizard_template_for_g…
Browse files Browse the repository at this point in the history
…emoc_3.6.0

Fix wizard template for gemoc 3.6.0
  • Loading branch information
dvojtise authored May 5, 2023
2 parents 326839c + f668d34 commit e01ba0d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
7 changes: 7 additions & 0 deletions k3.eclipse/fr.inria.diverse.k3.eclipse.root/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ from the root of the repository
```
ant -Denv.WORKSPACE=`pwd` -Dkey.file=~/.ssh/kermeta_bot/id_rsa -f k3.eclipse/fr.inria.diverse.k3.eclipse.root/promotion_build.xml
```


some more simple script to do almost the same (must run from the root of the repo)
```sh
./k3.eclipse/fr.inria.diverse.k3.eclipse.root/promotion_build.sh ~/.ssh/kermeta_bot/id_rsa

```
30 changes: 30 additions & 0 deletions k3.eclipse/fr.inria.diverse.k3.eclipse.root/promotion_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
# Check if KEY_FILE argument was provided
if [ $# -eq 0 ]
then
echo "Please provide the path to the SSH key file as an argument."
exit 1
fi

set -x

WORKSPACE=$(pwd)
UPDATESITE_REPOSITORY="${WORKSPACE}/k3.eclipse/fr.inria.diverse.k3.p2updatesite/target/site"
DEPLOY_SERVER="kermeta.org"
DEPLOY_USER="web-kermeta"
DEPLOY_PATH="/home/web/apache/sites/kermeta.org/htdocs/k3"
TODAY_UK=$(date +%Y-%m-%d)
KEY_FILE="$1"

chmod -R g+w "${UPDATESITE_REPOSITORY}"

ssh -i "${KEY_FILE}" "${DEPLOY_USER}@${DEPLOY_SERVER}" "rm -Rf ${DEPLOY_PATH}/update; \
mkdir ${DEPLOY_PATH}/update; \
rm -Rf ${DEPLOY_PATH}/update_${TODAY_UK}; \
mkdir ${DEPLOY_PATH}/update_${TODAY_UK};"

echo "Uploading to ${DEPLOY_SERVER}:${DEPLOY_PATH}/update"
scp -r -i "${KEY_FILE}" "${UPDATESITE_REPOSITORY}"/* "${DEPLOY_USER}@${DEPLOY_SERVER}:${DEPLOY_PATH}/update"

echo "Uploading to ${DEPLOY_SERVER}:${DEPLOY_PATH}/update_${TODAY_UK}"
scp -r -i "${KEY_FILE}" "${UPDATESITE_REPOSITORY}"/* "${DEPLOY_USER}@${DEPLOY_SERVER}:${DEPLOY_PATH}/update_${TODAY_UK}"
4 changes: 2 additions & 2 deletions k3.eclipse/fr.inria.diverse.k3.ui.templates/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
Inria - initial API and implementation
-->
<plugin>
<extension point="org.eclipse.gemoc.commons.eclipse.pde.templates">
<extension point="org.eclipse.gemoc.commons.eclipse.pde.ui.templates">
<template class="fr.inria.diverse.k3.ui.templates.k3al.MiniAspectSampleTemplate" contributingId="fr.inria.diverse.k3.ui.templates.template1" id="fr.inria.diverse.k3.ui.templates.mini_aspect_sample_template" name="Mini Aspect Sample"/>
<template class="fr.inria.diverse.k3.ui.templates.k3al.MiniEcoreAspectSampleTemplate" contributingId="fr.inria.diverse.k3.ui.templates.template1" id="fr.inria.diverse.k3.ui.templates.mini_ecore_aspect_sample_template" name="Mini Ecore Aspect Sample"/>
<template class="fr.inria.diverse.k3.ui.templates.k3al.UserEcoreBasicAspectTemplate" contributingId="fr.inria.diverse.k3.ui.templates.template1" id="fr.inria.diverse.k3.ui.templates.user_ecore_basic_aspects_template" name="User Ecore Basic Aspects"/>
<template class="fr.inria.diverse.k3.ui.templates.k3al.UserEcoreBasicAspectWithMelangeTemplate" contributingId="fr.inria.diverse.k3.ui.templates.template1" id="fr.inria.diverse.k3.ui.templates.user_ecore_basic_aspects_with_melange_template" name="User Ecore Basic Aspects with Melange"/>
</extension>
<extension point="org.eclipse.gemoc.commons.eclipse.pde.projectContent">
<extension point="org.eclipse.gemoc.commons.eclipse.pde.ui.projectContent">
<wizard class="fr.inria.diverse.k3.ui.templates.k3al.MiniAspectSampleNewWizard" id="fr.inria.diverse.k3.ui.templates.projectContent.MiniAspectSample" name="Mini Aspect Sample" targetPluginId="fr.inria.diverse.k3.ui">
<description>
This template will generate a sample aspect class on top of a standard java class (java.io.File) and generate a main class using this aspect.
Expand Down

0 comments on commit e01ba0d

Please sign in to comment.