This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
.codenvy.json
96 lines (96 loc) · 2.53 KB
/
.codenvy.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"v": "4.0",
"policies" : {
"create" : "perUser"
},
"workspace": {
"defaultEnv": "java",
"environments": [
{
"name": "java",
"machineConfigs": [
{
"limits": {
"ram": 1000
},
"name": "ws-machine",
"type": "docker",
"source": {
"location": "http://beta.codenvy.com/api/recipe/recipeb69bo9xp141dveu9/script",
"type": "recipe"
},
"dev": true
}
]
}
],
"projects": [
{
"links": [],
"name": "web-java-spring",
"attributes": {
"language": [
"java"
]
},
"type": "maven",
"source": {
"location": "https://github.com/che-samples/web-java-spring.git",
"type": "git",
"parameters": {}
},
"modules": [],
"path": "/web-java-spring",
"problems": [],
"mixins": [
"git"
]
}
],
"name": "java",
"attributes": {},
"commands": [
{
"commandLine": "mvn -f ${current.project.path} clean install && cp ${current.project.path}/target/*.war $TOMCAT_HOME/webapps/ROOT.war",
"name": "web-java-spring: build",
"attributes": {
"previewUrl": ""
},
"type": "mvn"
},
{
"commandLine": "$TOMCAT_HOME/bin/catalina.sh run",
"name": "web-java-spring: run tomcat",
"attributes": {
"previewUrl": "http://${server.port.8080}"
},
"type": "custom"
},
{
"commandLine": "$TOMCAT_HOME/bin/catalina.sh stop",
"name": "web-java-spring: stop tomcat",
"attributes": {
"previewUrl": ""
},
"type": "custom"
},
{
"commandLine": "mvn -f ${current.project.path} clean install && cp ${current.project.path}/target/*.war $TOMCAT_HOME/webapps/ROOT.war && $TOMCAT_HOME/bin/catalina.sh run",
"name": "web-java-spring: build and run",
"attributes": {
"previewUrl": "http://${server.port.8080}"
},
"type": "mvn"
},
{
"commandLine": "mvn -f ${current.project.path} clean install && cp ${current.project.path}/target/*.war $TOMCAT_HOME/webapps/ROOT.war && $TOMCAT_HOME/bin/catalina.sh jpda run",
"name": "web-java-spring: debug",
"attributes": {
"previewUrl": "http://${server.port.8080}"
},
"type": "mvn"
}
],
"links": []
}
}