summaryrefslogtreecommitdiff
path: root/README.md
blob: 82d473784ce97a8bfd65b4e7eb1e69f3699092b1 (plain)
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
## Bash Usage

add to `~/.profile`

```bash
function __env_<name>() { # replace <name>
   // add commands, examples:
   __activator oraclejdk8 idea-iu2016 groovy-bin-2.4.5
   export FOO=bar
}

# to use dmenu-software.sh
export PATH=$PATH:/opt/scripts/bin/

# at the end!
source /opt/scripts/lib/activate.inc.sh
```

### Example

```bash
function __env_ideajava8() {
    __activator oraclejdk8 idea-iu2016 groovy-bin-2.4.5
    __activator gwt-chromium cern-scripts
    export TNS_ADMIN=/home/yfischer/.cache/tnsnames/admin_localhost
    export JAVA_OPTS="-Doracle.net.tns_admin=$TNS_ADMIN"
    export GRADLE_OPTS="-Doracle.net.tns_admin=$TNS_ADMIN"
}
function __env_fwk24() {
    __activator oraclejdk7
    __activator gwt-chromium
    __activator idea-iu2016
    __activator cern-scripts
    export PATH=/opt/grails2.2.1/bin:$PATH
    export TNS_ADMIN=/home/yfischer/.cache/tnsnames/admin_localhost
    export JAVA_OPTS="-Doracle.net.tns_admin=$TNS_ADMIN"
    export GRADLE_OPTS="-Doracle.net.tns_admin=$TNS_ADMIN"
}
```

## Build packages

```
# ./gradlew packages:jvmtop:buildDeb
# dpkg -i packages/jvmtop/build/distributions/jvmtop*deb
```