Skip to content

Commit

Permalink
GWT
Browse files Browse the repository at this point in the history
  • Loading branch information
witek committed Oct 1, 2014
1 parent 9f89b78 commit 971a6ea
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
<classpathentry exported="true" kind="lib" path="lib/commons-logging-1.1.1.jar" sourcepath="lib/src/commons-logging-1.1.1-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/tidy.jar"/>
<classpathentry exported="true" kind="lib" path="lib/httpunit-1.6.2.jar" sourcepath="lib/src/httpunit-1.6.2-src.zip"/>
<classpathentry exported="true" kind="lib" path="lib/jfreechart-1.0.9.jar" sourcepath="lib/src/jfreechart-src-1.0.9.zip"/>
<classpathentry exported="true" kind="lib" path="lib/jcip-annotations.jar" sourcepath="lib/src/jcip-annotations-src.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jcommon-1.0.0.jar"/>
<classpathentry exported="true" kind="lib" path="lib/gwt-user.jar"/>
<classpathentry exported="true" kind="lib" path="lib/testng-5.8.jar" sourcepath="lib/src/testng-5.8.src.zip"/>
<classpathentry exported="true" kind="lib" path="lib/bsh-2.0b4.jar"/>
Expand Down Expand Up @@ -51,5 +49,7 @@
<classpathentry exported="true" kind="lib" path="lib/itext-xtra-5.5.2.jar"/>
<classpathentry exported="true" kind="lib" path="lib/itextpdf-5.5.2.jar" sourcepath="lib/src/itextpdf-5.5.2-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/itext-asian-5.2.0.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jcommon-1.0.23.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jfreechart-1.0.19.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
2 changes: 2 additions & 0 deletions src/main/java/ilarkesto/base/Proc.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ public synchronized void start() {
public synchronized void destroy() {
if (process == null) throw new RuntimeException("Process not started yet.");
if (!isRunning()) return;
if (outputGobbler != null) outputGobbler.close();
if (errorGobbler != null) errorGobbler.close();
process.destroy();
getReturnCode();
cleanup();
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/ilarkesto/base/Sys.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* Copyright 2011 Witoslaw Koczewsi <[email protected]>, Artjom Kochtchi
*
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero
* General Public License as published by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details.
*
*
* You should have received a copy of the GNU General Public License along with this program. If not, see
* <http://www.gnu.org/licenses/>.
*/
Expand Down
36 changes: 36 additions & 0 deletions src/main/java/ilarkesto/integration/jfreechart/JFreeChartUtil.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright 2011 Witoslaw Koczewsi <[email protected]>
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero
* General Public License as published by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details.
*
* You should have received a copy of the GNU Affero General Public License along with this program. If not,
* see <http://www.gnu.org/licenses/>.
*/
package ilarkesto.integration.jfreechart;

import ilarkesto.json.JsonObject;

import org.jfree.data.general.DefaultPieDataset;
import org.jfree.data.general.PieDataset;

public class JFreeChartUtil {

public static PieDataset createPieDataset(Iterable<JsonObject> values, String keyProperty, String valueProperty) {
DefaultPieDataset dataset = new DefaultPieDataset();
for (JsonObject jValue : values) {
String key = jValue.getString(keyProperty);
if (key == null) continue;
Number value = jValue.getNumber(valueProperty);
if (value == null) continue;
dataset.setValue(key, value);
}
return dataset;
}

}
7 changes: 4 additions & 3 deletions src/main/java/ilarkesto/webapp/GwtSuperDevMode.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* Copyright 2011 Witoslaw Koczewsi <[email protected]>
*
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero
* General Public License as published by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details.
*
*
* You should have received a copy of the GNU Affero General Public License along with this program. If not,
* see <http://www.gnu.org/licenses/>.
*/
Expand Down Expand Up @@ -101,6 +101,7 @@ public void startCodeServer() {
}

public void stopCodeServer() {
log.info("Stopping CodeServer");
if (webServer != null) {
try {
webServer.stop();
Expand Down

0 comments on commit 971a6ea

Please sign in to comment.