Last change
on this file since 18853 was 18853, checked in by ak19, 15 years ago |
Instead of calling the GSI-Makefile, this class now calls gsicontrol.sh
|
File size:
515 bytes
|
Line | |
---|
1 | package org.greenstone.server;
|
---|
2 |
|
---|
3 | import org.greenstone.server.RunTarget;
|
---|
4 |
|
---|
5 | public class RunMake extends RunTarget
|
---|
6 | {
|
---|
7 |
|
---|
8 | public RunMake()
|
---|
9 | {
|
---|
10 | super();
|
---|
11 |
|
---|
12 | targetSuccess = "MAKE SUCCESSFUL";
|
---|
13 | targetFailed = "MAKE FAILED";
|
---|
14 | targetFinished = "MAKE DONE";
|
---|
15 | }
|
---|
16 |
|
---|
17 |
|
---|
18 | public void setTargetCmd(String target)
|
---|
19 | {
|
---|
20 | String osName = System.getProperty("os.name");
|
---|
21 | if (osName.startsWith("Windows")) {
|
---|
22 | targetCmd = "fakemake.bat " + target;
|
---|
23 | } else {
|
---|
24 | targetCmd = "./gsicontrol.sh " + target;
|
---|
25 | }
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.