Skip to content

Commit b4ae971

Browse files
committed
Initialize update site
1 parent 74486af commit b4ae971

File tree

16 files changed

+378
-20
lines changed

16 files changed

+378
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target/
2+
bin/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>org.eclipse.lsp4e.freemarker.feature</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.pde.FeatureBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
21+
<nature>org.eclipse.pde.FeatureNature</nature>
22+
</natures>
23+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin.includes = feature.xml,\
2+
feature.properties
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name=Freemarker LSP4E (Experimental)
2+
description=Freemarker based on TM4E and LSP4E
3+
copyright=Copyright (c) 2018 Angelo ZERR and others.\
4+
All rights reserved. This program and the accompanying materials\
5+
are made available under the terms of the Eclipse Public License v1.0\
6+
which accompanies this distribution, and is available at\
7+
http://www.eclipse.org/legal/epl-v10.html
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<feature
3+
id="org.eclipse.lsp4e.freemarker.feature"
4+
label="%name"
5+
version="1.0.0.qualifier"
6+
provider-name="Angelo ZERR"
7+
license-feature="org.eclipse.license"
8+
license-feature-version="0.0.0">
9+
10+
<description>
11+
%description
12+
</description>
13+
14+
<copyright>
15+
%copyright
16+
</copyright>
17+
18+
<license url="%licenseURL">
19+
%license
20+
</license>
21+
22+
<plugin
23+
id="org.eclipse.lsp4e.freemarker"
24+
download-size="0"
25+
install-size="0"
26+
version="0.0.0"
27+
unpack="false"/>
28+
29+
</feature>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<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">
2+
<modelVersion>4.0.0</modelVersion>
3+
<artifactId>org.eclipse.lsp4e.freemarker.feature</artifactId>
4+
<parent>
5+
<groupId>org.eclipse.lsp4e.freemarker</groupId>
6+
<artifactId>org.eclipse.lsp4e.freemarker.parent</artifactId>
7+
<version>1.0.0-SNAPSHOT</version>
8+
</parent>
9+
<packaging>eclipse-feature</packaging>
10+
</project>

org.eclipse.lsp4e.freemarker/META-INF/MANIFEST.MF

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Bundle-Localization: plugin
66
Bundle-SymbolicName: org.eclipse.lsp4e.freemarker;singleton:=true
77
Bundle-Version: 1.0.0.qualifier
88
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
9-
Require-Bundle: org.eclipse.lsp4e;bundle-version="0.6.0",
10-
org.eclipse.core.runtime;bundle-version="3.13.0",
9+
Require-Bundle: org.eclipse.lsp4e,
10+
org.eclipse.core.runtime,
1111
org.eclipse.ui.workbench
1212
Bundle-Activator: org.eclipse.lsp4e.freemarker.Activator
1313
Bundle-ActivationPolicy: lazy

org.eclipse.lsp4e.freemarker/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<artifactId>org.eclipse.lsp4e.freemarker</artifactId>
55
<packaging>eclipse-plugin</packaging>
66
<parent>
7-
<groupId>org.eclipse.lsp4e-freemarker</groupId>
8-
<version>0.1.0-SNAPSHOT</version>
9-
<artifactId>org.eclipse.lsp4e-freemarker.parent</artifactId>
7+
<groupId>org.eclipse.lsp4e.freemarker</groupId>
8+
<version>1.0.0-SNAPSHOT</version>
9+
<artifactId>org.eclipse.lsp4e.freemarker.parent</artifactId>
1010
</parent>
1111
</project>

pom.xml

+42-15
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
<groupId>org.eclipse.lsp4e-freemarker</groupId>
5-
<artifactId>org.eclipse.lsp4e-freemarker.parent</artifactId>
6-
<version>0.1.0-SNAPSHOT</version>
4+
<groupId>org.eclipse.lsp4e.freemarker</groupId>
5+
<artifactId>org.eclipse.lsp4e.freemarker.parent</artifactId>
6+
<version>1.0.0-SNAPSHOT</version>
77
<packaging>pom</packaging>
88

99
<organization>
@@ -21,8 +21,24 @@
2121
</licenses>
2222
<modules>
2323
<module>org.eclipse.lsp4e.freemarker</module>
24+
<module>org.eclipse.lsp4e.freemarker.feature</module>
25+
<module>repository</module>
26+
<module>target-platform</module>
2427
</modules>
2528

29+
<repositories>
30+
<repository>
31+
<id>photon</id>
32+
<layout>p2</layout>
33+
<url>http://download.eclipse.org/eclipse/updates/4.8-I-builds</url>
34+
</repository>
35+
<repository>
36+
<id>license-feature</id>
37+
<url>http://download.eclipse.org/cbi/updates/license/</url>
38+
<layout>p2</layout>
39+
</repository>
40+
</repositories>
41+
2642
<scm>
2743
<connection>scm:git:https://github.com/angelozerr/lsp4e-freemarker.git</connection>
2844
<developerConnection>scm:git:https://github.com/angelozerr/lsp4e-freemarker.git</developerConnection>
@@ -123,18 +139,29 @@
123139
</plugin>
124140
</plugins>
125141
</build>
126-
<repositories>
127-
<repository>
128-
<id>cloudbees</id>
129-
<snapshots>
130-
<enabled>true</enabled>
131-
</snapshots>
132-
<releases>
133-
<enabled>false</enabled>
134-
</releases>
135-
<url>http://repository-opensagres.forge.cloudbees.com/snapshot/</url>
136-
</repository>
137-
</repositories>
142+
143+
<pluginRepositories>
144+
<pluginRepository>
145+
<id>cbi</id>
146+
<url>https://repo.eclipse.org/content/groups/cbi</url>
147+
<snapshots><enabled>true</enabled></snapshots>
148+
</pluginRepository>
149+
<pluginRepository>
150+
<id>jboss</id>
151+
<url>https://repository.jboss.org/</url>
152+
<snapshots><enabled>true</enabled></snapshots>
153+
</pluginRepository>
154+
</pluginRepositories>
155+
156+
<distributionManagement>
157+
<snapshotRepository>
158+
<id>jboss-snapshots-repository</id>
159+
<name>JBoss Snapshots Repository</name>
160+
<url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
161+
<uniqueVersion>false</uniqueVersion>
162+
</snapshotRepository>
163+
</distributionManagement>
164+
138165
<name>Eclipse Plugin for Freemarker - Parent</name>
139166
<description>Integration of the Freemarker Language Server with LSP4E.</description>
140167
</project>

pushToBintray.sh

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#!/bin/bash
2+
#Sample Usage: pushToBintray.sh username apikey owner repo package version pathToP2Repo
3+
API=https://api.bintray.com
4+
BINTRAY_USER=$1
5+
BINTRAY_API_KEY=$2
6+
BINTRAY_OWNER=$3
7+
BINTRAY_REPO=$4
8+
PCK_NAME=$5
9+
PCK_VERSION=$6
10+
PATH_TO_REPOSITORY=$7
11+
12+
function main() {
13+
deploy_updatesite
14+
}
15+
16+
function deploy_updatesite() {
17+
echo "${BINTRAY_USER}"
18+
echo "${BINTRAY_API_KEY}"
19+
echo "${BINTRAY_OWNER}"
20+
echo "${BINTRAY_REPO}"
21+
echo "${PCK_NAME}"
22+
echo "${PCK_VERSION}"
23+
echo "${PATH_TO_REPOSITORY}"
24+
25+
if [ ! -z "$PATH_TO_REPOSITORY" ]; then
26+
cd $PATH_TO_REPOSITORY
27+
fi
28+
29+
30+
FILES=./*
31+
BINARYDIR=./binary/*
32+
PLUGINDIR=./plugins/*
33+
FEATUREDIR=./features/*
34+
35+
for f in $FILES;
36+
do
37+
if [ ! -d $f ]; then
38+
echo "Processing $f file..."
39+
if [[ "$f" == *content.jar ]] || [[ "$f" == *artifacts.jar ]]
40+
then
41+
echo "Uploading p2 metadata file directly to the repository"
42+
curl -X PUT -T $f -u ${BINTRAY_USER}:${BINTRAY_API_KEY} https://api.bintray.com/content/${BINTRAY_OWNER}/${BINTRAY_REPO}/$f;publish=0
43+
else
44+
curl -X PUT -T $f -u ${BINTRAY_USER}:${BINTRAY_API_KEY} https://api.bintray.com/content/${BINTRAY_OWNER}/${BINTRAY_REPO}/${PCK_NAME}/${PCK_VERSION}/$f;publish=0
45+
fi
46+
echo ""
47+
fi
48+
done
49+
50+
echo "Processing features dir $FEATUREDIR file..."
51+
for f in $FEATUREDIR;
52+
do
53+
echo "Processing feature: $f file..."
54+
curl -X PUT -T $f -u ${BINTRAY_USER}:${BINTRAY_API_KEY} https://api.bintray.com/content/${BINTRAY_OWNER}/${BINTRAY_REPO}/${PCK_NAME}/${PCK_VERSION}/$f;publish=0
55+
echo ""
56+
done
57+
58+
echo "Processing plugin dir $PLUGINDIR file..."
59+
60+
for f in $PLUGINDIR;
61+
do
62+
# take action on each file. $f store current file name
63+
echo "Processing plugin: $f file..."
64+
curl -X PUT -T $f -u ${BINTRAY_USER}:${BINTRAY_API_KEY} https://api.bintray.com/content/${BINTRAY_OWNER}/${BINTRAY_REPO}/${PCK_NAME}/${PCK_VERSION}/$f;publish=0
65+
echo ""
66+
done
67+
68+
echo "Processing binary dir $BINARYDIR file..."
69+
70+
echo "Publishing the new version"
71+
curl -X POST -u ${BINTRAY_USER}:${BINTRAY_API_KEY} https://api.bintray.com/content/${BINTRAY_OWNER}/${BINTRAY_REPO}/${PCK_NAME}/${PCK_VERSION}/publish -d "{ \"discard\": \"false\" }"
72+
73+
}
74+
75+
76+
main "$@"

repository/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

repository/.project

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>repository</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.m2e.core.maven2Builder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
16+
</natures>
17+
</projectDescription>

repository/category.xml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<site>
3+
<feature id="tm-feature" version="0.0.0">
4+
<category name="Dependencies"/>
5+
</feature>
6+
<feature url="features/org.eclipse.lsp4e.freemarker.feature_1.0.0.qualifier.jar" id="org.eclipse.lsp4e.freemarker.feature" version="1.0.0.qualifier">
7+
<category name="Freemarker LSP4E"/>
8+
</feature>
9+
<bundle id="org.eclipse.ui.genericeditor" version="0.0.0">
10+
<category name="Dependencies"/>
11+
</bundle>
12+
<bundle id="org.apache.commons.io" version="0.0.0">
13+
<category name="Dependencies"/>
14+
</bundle>
15+
<bundle id="org.joni" version="2.1.11.v20170306-1742">
16+
<category name="Dependencies"/>
17+
</bundle>
18+
<bundle id="org.jcodings" version="1.0.18.v20170306-1742">
19+
<category name="Dependencies"/>
20+
</bundle>
21+
<!--<bundle id="org.objectweb.asm" version="5.2.0.v20170126-0011">
22+
<category name="Dependencies"/>
23+
</bundle>-->
24+
<bundle id="org.eclipse.lsp4e" version="0.0.0">
25+
<category name="Dependencies"/>
26+
</bundle>
27+
<bundle id="org.eclipse.lsp4j" version="0.0.0">
28+
<category name="Dependencies"/>
29+
</bundle>
30+
<bundle id="org.eclipse.lsp4j.jsonrpc" version="0.0.0">
31+
<category name="Dependencies"/>
32+
</bundle>
33+
<bundle id="com.google.gson" version="2.7.0.v20170129-0911">
34+
<category name="Dependencies"/>
35+
</bundle>
36+
<bundle id="org.eclipse.mylyn.commons.core" version="0.0.0">
37+
<category name="Dependencies"/>
38+
</bundle>
39+
<bundle id="org.eclipse.mylyn.commons.notifications.core" version="0.0.0">
40+
<category name="Dependencies"/>
41+
</bundle>
42+
<bundle id="org.eclipse.mylyn.commons.notifications.ui" version="0.0.0">
43+
<category name="Dependencies"/>
44+
</bundle>
45+
<bundle id="org.eclipse.mylyn.commons.screenshots" version="0.0.0">
46+
<category name="Dependencies"/>
47+
</bundle>
48+
<bundle id="org.eclipse.mylyn.commons.ui" version="0.0.0">
49+
<category name="Dependencies"/>
50+
</bundle>
51+
<bundle id="org.eclipse.mylyn.commons.workbench" version="0.0.0">
52+
<category name="Dependencies"/>
53+
</bundle>
54+
<bundle id="org.eclipse.mylyn.wikitext" version="0.0.0">
55+
<category name="Dependencies"/>
56+
</bundle>
57+
<bundle id="org.eclipse.mylyn.wikitext.markdown" version="0.0.0">
58+
<category name="Dependencies"/>
59+
</bundle>
60+
<bundle id="com.google.guava" version="0.0.0">
61+
<category name="Dependencies"/>
62+
</bundle>
63+
<bundle id="org.apache.commons.lang" version="2.6.0.v201404270220">
64+
<category name="Dependencies"/>
65+
</bundle>
66+
<bundle id="com.google.guava" version="21.0.0.v20170206-1425">
67+
<category name="Dependencies"/>
68+
</bundle>
69+
<bundle id="org.eclipse.xtext.xbase.lib" version="0.0.0">
70+
<category name="Dependencies"/>
71+
</bundle>
72+
<category-def name="Freemarker LSP4E" label="Freemarker in Eclipse IDE"/>
73+
<category-def name="Dependencies" label="Dependencies"/>
74+
<repository-reference location="http://download.eclipse.org/lsp4e/snapshots" enabled="true" />
75+
<repository-reference location="http://download.eclipse.org/tm4e/snapshots" enabled="true" />
76+
</site>

0 commit comments

Comments
 (0)